79099400

Date: 2024-10-17 18:31:47
Score: 3
Natty:
Report link

I have the same issue with python 3.12.6 using pyinstaller 5.13.2. I using an older version of pyinstaller because of the way the pkging structure changed after 5.13.2

The issue was: The numpy.libs dll are missing in the executable pkg created by pyinstaller. The dlls are under: \Lib\site-packages\numpy.libs

The Fix: You can either manually copy the numpy.libs folder into the pkg after pyinstaller or modify your spec file to include those files

n_f=[]
for files in glob(sys.prefix + r'\Lib\site-packages\numpy.libs\*.*'):
    f2 = files,"numpy.libs"
    n_f.append(f2)
all_files.extend(n_f)

and then set datas = all_files in the Analysis

a = Analysis(['examples.py'],pathex=['/Developer/PItests/minimal'],binaries=None,datas=all_files,hiddenimports=[],hookspath=None,runtime_hooks=None,excludes=None)

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same issue
  • Low reputation (0.5):
Posted by: Vivian Yung