-
Notifications
You must be signed in to change notification settings - Fork 926
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
Issues Following PyCharm Setup Instructions #3055
Comments
If you run this from your terminal does it fails too? how about You mentioned It would be helpful if you can provide |
to @noklam 's point can you post a screenshot of your run config? |
Not sure if this is the correct configuration, AFAIK it should be pointing to See this: |
I was going off the same page, but it instructs us to replace that script path with the output from the following:
|
And to confirm, I can point the script path to
|
There's something wrong with the PYTHONPATH in this environment. When We have to determine if it's our instructions that create this problem or something in your environment.
Yeah I don't think users should run Python scripts from the .venv like that. If anything, the script should end up doing |
Bingo! That last comment of yours seems to have fixed the issue: changing the docs that point to using the following script: Now I can run the config in both So seems this should just be a quick update to the PyCharm part of the docs...? |
Glad this helped @CF-FHB-X ! 🙌🏽 Too many hours spent fighting Python path issues made me an expert... 😄 Turning this into a documentation issue. |
Would you like to send a PR yourself? |
Sure thing! Prob won't be until later today or tomorrow, but I'll definitely make those changes! Thanks for the help isolating them! |
This issue is as good as closed as we're just waiting for DCO signoff to merge. So I'm closing it |
Description
Instructions for PyCharm Run/Debug Configuration no longer seem to be working when using PyCharm's
Run
button (throwsImportError
inrich
). Oddly enough, though, it works if you use PyCharm'sDebug
button.Context
Setting up new kedro projects seems to be running into this error. The previous project we had set up a few weeks ago seems to be working fine.
Steps to Reproduce
kedro new
(on Windows)py -m venv .venv
(NB: we're not usingconda
- just vanillavenv
from the std library)pip install -s src\requirements.txt
kedro run
Expected Result
It should run as per usual.
Actual Result
Instead we're getting
ImportError
fromrich
:Your Environment
See previous note about using venv instead of conda (for a whole slew of reasons that I'll spare you from, conda isn't an option for us)
The text was updated successfully, but these errors were encountered: