ModuleNotFoundError: No module named 'cattrs.converters' #323
byteinsight
started this conversation in
General
Replies: 1 comment 2 replies
-
I need some more clarification from you regarding this problem. When you refer to a "django venv", do you mean a "normal" python venv? How do you create that venv? What is "a standard project in Python" for you? Regarding specifically PyCharm, your solution is odd. You should not need to go through PyCharms settings. When the correct virtual interpreter is selected, the associated venv should be active in PyCharms terminal and a normal pip install should work. If you use pip install in a system terminal outside of PyCharm, you need to activate the correct venv yourself. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to use FastF1 within a python/django venv I'm developing in Pycharm.
If I create a standard project in Python and import FastF1 I can run the simplest example no problem.
If I import FastF1 within the Django venv the error described is immediate.
ModuleNotFoundError: No module named 'cattrs.converters'
The modules are all present and of the same versions. Are there any known issues with this approach? It seems very odd.
Thanks.
SOLUTION. Packages must be installed via the File > Settings > Project > Python Interpreter and not via PIP and the terminal provided in the IDE.
Beta Was this translation helpful? Give feedback.
All reactions