-
-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"bad interpreter: No such file or directory" error if virtual env is in a folder with whitespaces #496
Comments
This didn't replicate for me. |
It might depend on the computer used. I replicated the error in a debian docker container too. Feel free to try it with any other OS. |
Right, but what you’re showing me there isn’t a Python traceback. Not at all clear that it’s a uvicorn issue rather than some other environment problem. It’d be worth installing other python based command line tools too, and trying those for comparison. |
The cause of the problem is a shebang with whitespaces.
It seems that the python project had this issue for years (see virtualenv, issue 53) and fixed it somehow. |
Ok, thanks. That script isn’t related by uvicorn. You might want to make sure you’ve got recent pip and virtual events versions. |
replicate the error
(1) install a virtual env in a folder with whitespaces
(2) main.py
(3) Try to start server
Error message
my guess
I guess you are using something like
instead of
somewhere
The text was updated successfully, but these errors were encountered: