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
ModuleNotFoundError: No module named 'numpy.random.common' #4363
Comments
i have updated numpy from 1.17.0 to 1.16.4 and now everything works. why? is pyinstaller need to be upgraded? thank you for your help. |
Looks like the numpy hook need an update. |
I experience the same issue and have tried every option I'm aware of, i.e. forcing import in the spec file, modifying setup.py, adding hook file, using --hidden-import flag, changing numpy version - but the error occurs persistently. |
i think, i would like to see the final developed pyinstaller version with the list of the library version that works properly with that pyinstaller version. for example: developed pyinstaller version 4.0.0 works the following libraries and below versions: numpy 1.16.4, pandas 0.23.4, etc. this will allow me to get the right libraries version for development and final deployment - saving many hours of testing for everyone! or, let us know how to update any library pyinstaller hook properly - this could be a simple solution? let's wait for the pyinstaller team to take care about this issue. thanks all for your feedback! |
See tests/rqeuirements-libraries.txt
Since you are the OP and expect us to solve this, I'm closing this. We are not your service-crew. |
thank you very much for your support. |
This was mentioned in Numpy issue #numpy/numpy#14163. Looks like it will be fixed in update 1.17.1. For now, a quick workaround is to include this at the top of your script: import numpy.random.common
import numpy.random.bounded_integers
import numpy.random.entropy |
You're overreacting. This is an issue that many PyInstaller users are experiencing with a key python library: Please get over your personal squabble with @ebonat and let us know what you in collaboration with the user community can do to fix this. Without users your library will not survive. This issue needs to be reopened. Thanks for your feedback. |
hi all, i agreed with @awa5114. let's work together to fix this issue. for me, pyinstaller is one of if time is needed for testing, i'll do it for sure. just let me know how can i help? thank you very much for all your support. |
hello all I currently have the same issue with numpy
I tried to add the following on the top of the file.py to be compiled:
But it didn't help and I still get the the message:
Do you have any idea what else could be done? Many thanks in advance for your support and maintaining the package |
@bjce That's not this issue. You're just muddling virtual environments. Check your code works with |
Many thanks @bwoodsend!! Out of interest: with the information I gave you how did you figure out that that was the problem?? |
Mixing up venvs is probably the 2nd most common issue reported here (the 1st being hidden imports). |
In my case the problem was with |
With:
python file
exe file created without no errors
run the exe file and got the error:
thanks for your help!
The text was updated successfully, but these errors were encountered: