-
-
Notifications
You must be signed in to change notification settings - Fork 58
How to debug dependency not installed? #179
-
My app fails on run with ModuleNotFoundError: No module named 'numpy'.
I suspect numpy is failing to install for python 3.13.
How can I debug or get verbose info for the dependency installation phase?
Beta Was this translation helpful? Give feedback.
All reactions
Looking at fakesnow and the pyproject.toml, it seems like numpy is not listed as a dependency. If I actually just create a fresh virtual environment, install fakesnow from pip and then open python and import it, I get the same error. This would be the same way that PyApp runs the import.
Hope this helps!
Replies: 2 comments 3 replies
-
Can you provide some more information on how you are creating the app (env. variables, project structure)? How do you declare the requirements?
Beta Was this translation helpful? Give feedback.
All reactions
-
I’m just using
PYAPP_PROJECT_NAME=fakesnow
PYAPP_PROJECT_VERSION=0.9.27
Beta Was this translation helpful? Give feedback.
All reactions
-
Looking at fakesnow and the pyproject.toml, it seems like numpy is not listed as a dependency. If I actually just create a fresh virtual environment, install fakesnow from pip and then open python and import it, I get the same error. This would be the same way that PyApp runs the import.
Hope this helps!
Beta Was this translation helpful? Give feedback.
All reactions
-
Thank you for looking into this! I realise now I had numpy installed already in my virtualenv, so wasn't seeing this when testing the install from pip 🤦
Beta Was this translation helpful? Give feedback.
All reactions
-
Awesome, glad it works. No worries, easy to overlook such things, especially when your in the depth of it.
Beta Was this translation helpful? Give feedback.
All reactions
-
❤️ 1