8000 BUG: pyinstaller fails with python 3.8, numpy 1.18 · Issue #15299 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: pyinstaller fails with python 3.8, numpy 1.18 #15299

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

Closed
teddcp opened this issue Jan 9, 2020 · 4 comments
Closed

BUG: pyinstaller fails with python 3.8, numpy 1.18 #15299

teddcp opened this issue Jan 9, 2020 · 4 comments
Labels
31 - Third-party binaries Install/import issues other than Anaconda-specific

Comments

@teddcp
Copy link
teddcp commented Jan 9, 2020

hi all,

i am trying to make an exe file using pyinstaller. while clicking on the exe file, its giving me fatal error with stating 'unable to open the exe'. So i checked in cmd line , there is the issue with numpy.
Then i uninstalled and installed it again, nut still the issue is there.

Reproducing code example:

After opeing the exe file, error is :

image

while making the exe file using pyinstaller command :

image

Error message:

54028 INFO: Looking for dynamic libraries
55761 WARNING: lib not found: libopenblas.SVHFG5YE3RK3Z27NVFUDAPL2O3W6IMXW.gfortran-win32.dll dependency of c:\users\debasis.panda\appdata\local\programs\python\python38-32\lib\site-packages\numpy\core_multiarray_umath.cp38-win32.pyd
56379 WARNING: lib not found: libopenblas.SVHFG5YE3RK3Z27NVFUDAPL2O3W6IMXW.gfortran-win32.dll dependency of c:\users\debasis.panda\appdata\local\programs\python\python38-32\lib\site-packages\numpy\linalg_umath_linalg.cp38-win32.pyd
56450 WARNING: lib not found: libopenblas.SVHFG5YE3RK3Z27NVFUDAPL2O3W6IMXW.gfortran-win32.dll dependency of c:\users\debasis.panda\appdata\local\programs\python\python38-32\lib\site-packages\numpy\linalg\lapack_lite.cp38-win32.pyd

Numpy/Python version information:

python - 3.8
numpy -1.18.1

@mattip
Copy link
Member
mattip commented Jan 9, 2020

This is likely an issue with pyinstaller not copying the dlls from python into the final installation, maybe related to the new python/numpy versions. Maybe related to gh-14807.
It seems pyinstaller changed the hook for numpy in pyinstaller/pyinstaller#4593, you might have more luck if you try a HEAD version of pyinstaller.

@mattip mattip changed the title lib not found in numpy\core\_multiarray_umath.cp38-win32.pyd BUG: fails with python 3.8, numpy 1.18 Jan 9, 2020
@mattip mattip added the 31 - Third-party binaries Install/import issues other than Anaconda-specific label Jan 9, 2020
@h6197627
Copy link
Contributor

I think it is Python 3.8 problem - somehow it does not respect PATH env variable.
I am using Numpy with Intel MKL for Windows taken from https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy. It comes with whole distribution of MKL library in DLLs folder packaged to Numpy wheel. Considering that I am using MKL from C++ code as well, I am having standalone installation, so I prefer to delete packaged version and to use standalone added to PATH env variable.
What I found right now, is that in Python 3.8 I can't do it anymore - it does not respect my PATH variable settings and importing Numpy results in error as for topic starter.
I tried to uninstall Python 3.8.1 and install Python 3.7.6 and Numpy 1.18.1 is working as expected successfully loading my standalone MKL dlls.
Also with Python 3.8.1 I tried to move MKL libraries into C:\Windows\System32 directory, that way it also successfully imports Numpy. I guess it looks into default directories only, without using user's custom settings.

@teddcp
Copy link
Author
teddcp commented Jan 10, 2020

so i uninstall python 3.8 and again install a previous version, it will work??

@mattip mattip changed the title BUG: fails with python 3.8, numpy 1.18 BUG: pyinstaller fails with python 3.8, numpy 1.18 Jul 13, 2020
@mattip
Copy link
Member
mattip commented Jul 13, 2020

Closing due to inaction, please reopen if needed.

@mattip mattip closed this as completed Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
31 - Third-party binaries Install/import issues other than Anaconda-specific
Projects
None yet
Development

No branches or pull requests

3 participants
0