strawberry icon indicating copy to clipboard operation
strawberry copied to clipboard

Issues on windows (?)

Open patrick91 opened this issue 2 years ago • 1 comments

We got this bug report on our docs page:

Cannot get this to run on Windows. When I issue the 'strawberry server schema' command in git bash, it just hangs and there is no message about a running server. Sure enough, the http://0.0.0.0:8000/graphql site cannot be reached.

We have tests for windows, so in theory this should work, would anyone be willing to check? maybe we can improve docs.

I wonder why it hangs

patrick91 avatar May 19 '22 01:05 patrick91

Just took a look at this in a VM. First I noticed that run the python command itself hangs. Running Python via winpty python as suggested on stackoverflow resolved that issue. The same solution works for strawberry as well, just run winpty strawberry server app and the debug-server runs as expected.

Note that this workaround is not needed when PowerShell is used

DoctorJohn avatar May 27 '22 09:05 DoctorJohn

Is this still an issue?

jkimbo avatar Oct 11 '22 14:10 jkimbo

@jkimbo I don't think so, let's close for now 😊

patrick91 avatar Oct 11 '22 14:10 patrick91

It's on my list of things I want to add to our docs. Could help some windows users.

DoctorJohn avatar Oct 11 '22 16:10 DoctorJohn