PyCharm displays module imports as erroneous even though they work fine #98
-
Hey all. Since everything is working, it's not a big issue, but it's rather irritating. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello! I think it might be an issue with how PyCharm is adding the virtual environment to a repo. Make sure that you have a local virtual environment configuration, by adding a [virtualenvs]
path = ".venv"
in-project = true Run This will install the dependencies, and make the environment aware of the bases and components folders. PyCharm will ask about what interpreter to use when opening a Python file. Make sure to choose the local one in the Everything should now be set up correctly for PyCharm! The docs have also been updated with this information. Thank you for posting this here @betterthanever2! |
Beta Was this translation helpful? Give feedback.
Hello!
I think it might be an issue with how PyCharm is adding the virtual environment to a repo.
Make sure that you have a local virtual environment configuration, by adding a
poetry.toml
to the top folder with the content:Run
poetry install
in a shell.This will install the dependencies, and make the environment aware of the bases and components folders. PyCharm will ask about what interpreter to use when opening a Python file. Make sure to choose the local one in the
.venv
folder.Everything should now be set up correctly for PyCharm!
The docs have also been updated with this information. Thank you for posting this here @betterthanever2!