Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to debug dependency not installed? #179

Answered by trappitsch
tekumara asked this question in Q&A
Discussion options

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?

You must be logged in to vote

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

Comment options

Can you provide some more information on how you are creating the app (env. variables, project structure)? How do you declare the requirements?

You must be logged in to vote
1 reply
Comment options

I’m just using

PYAPP_PROJECT_NAME=fakesnow
PYAPP_PROJECT_VERSION=0.9.27

Comment options

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!

You must be logged in to vote
2 replies
Comment options

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 🤦

Comment options

Awesome, glad it works. No worries, easy to overlook such things, especially when your in the depth of it.

Answer selected by ofek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /