Error when using playwright (robotframework)

When I run a .robot file that uses the browser library the test fails with this error in the logs

Calling method '_start_suite' of listener 'Browser' failed: Could not connect to the playwright process at port 52161

I have already installed playwright with this command “npx playwright install” and run “rfbrowser init”