-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Unresolved imports #8337
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
Comments
This is best asked on Stack Overflow, but in this specific case you need to set If you would like us to try to automatically handle this case for you then you can 👍 #924. |
I've added an environment variable definition for I do not have the same issue if I run lines of code with |
@nickcorona ah, so you're saying the Run Python button doesn't include what's in the |
Uh oh!
There was an error while loading. Please reload this page.
The python extension doesn't manage path correctly.
Example project
Importing config.py from scoring.py with
from src import config.py
doesn't work. It will return the following error:ModuleNotFoundError: No module named 'src'
I know other people at work with the exact same issue. And we've not been able to come up with a solution other than adding the project absolute path the settings.json file (which I feel you shouldn't have to do to run a script).
The text was updated successfully, but these errors were encountered: