-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[BUG] App doesn't work when ran from a different directory #1889
Comments
Are you passing |
Yea... |
Weird. Seems we must run the main.py from outside of the module/package. |
Appreciate the information
…On Thu, Apr 4, 2024 at 23:36 Sean ***@***.***> wrote:
Weird. Seems we must run the main.py from outside of the module/package.
In this case, there is no issue if import the app in main.py and then run
it as app.run(host='127.0.0.1', port=8000, debug=True).
—
Reply to this email directly, view it on GitHub
<#1889 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARDMQUIYPHXE2ZGLZIU2LZ3Y3ZA5DAVCNFSM5L4MTTE2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBTHEYDIOJRG4YQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe your context
if frontend related, tell us your Browser, Version and OS
Describe the bug
I have a files directory like this
So now, when I run the main.py from the root directory in VSCode (since I have opened the whole folder in VSCode), it stops running with the following output
I have never experienced this issue with either PyWebIO or Flask
Expected behavior
It should run the file normally without any error
Screenshots
The text was updated successfully, but these errors were encountered: