PyInstaller one-dir executable throwing a scipy.stats error!

78 views
Skip to first unread message

Debabrata Sarkar

unread,
Feb 9, 2023, 9:41:55 AM2/9/23
to PyInstaller
Hi,

Pyinstaller-freezed (one-dir) executable is throwing the following scipy.stats  error on the console, though completing the program/task (scipy.stats) correctly. Importing not the entire scipy module, but seceral (8) of its functions. Original unfreezed version (program.py) has, however, no such issues; working perfectly, without the following Traceback.

Traceback (most recent call last):

  File "_sobol.pyx", line 71, in scipy.stats._sobol.get_poly_vinit

  File "_sobol.pyx", line 143, in scipy.stats._sobol._initialize_direction_numbers

  File "numpy/lib/npyio.py", line 405, in load


_sobol_direction_numbers.npz'

Exception ignored in: 'scipy.stats._sobol._initialize_v'

Traceback (most recent call last):

  File "_sobol.pyx", line 71, in scipy.stats._sobol.get_poly_vinit

  File "_sobol.pyx", line 143, in scipy.stats._sobol._initialize_direction_numbers

  File "numpy/lib/npyio.py", line 405, in load

Any idea?

Regards.

Debabrata Sarkar

unread,
Feb 13, 2023, 7:18:17 AM2/13/23
to PyInstaller
Hi,

In continuation of my above message,  setting "sys.tracebacklimit = 0" could avoid the referred TraceBack, but PyInstaller 5.8 is now giving the following FileNotFoundError with scipy.stats, though competing the task correctly; no such error message while running the 'program.py' w/o freezing with PyInstaller 5.8.

FileNotFoundError: [Errno 2] No such file or directory: '/Users/debabrata/Myprograms/program_dist/dist/program/scipy/stats/_sobol_direction_numbers.npz'

Exception ignored in: 'scipy.stats._sobol._initialize_v'

FileNotFoundError: [Errno 2] No such file or directory: '/Users/debabrata/Myprograms/program_dist/dist/program/scipy/stats/_sobol_direction_numbers.npz' 

How can I avoid this scipy.stats FileNotFoundError message (vis-a-vis Exception)?

Any help will be greatly appreciated.

Regards.
Reply all
Reply to author
Forward
0 new messages