Calysto / octave_kernel

An Octave kernel for IPython
BSD 3-Clause "New" or "Revised" License
453 stars 66 forks source link

FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\vivepate\\AppData\\Local\\Temp\\_MEI104322\\octave_kernel\\kernel.json' #165

Open vivekpatel99 opened 4 years ago

vivekpatel99 commented 4 years ago

I am trying to generate exe file using pyinstaller. My python script is working completely fine but my new generated exe file via pyinstaller is showing me the following error. Can you please help me to solve following error? thank you in advanced.

Traceback (most recent call last): File "main.py", line 11, in from oct2py import octave File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "c:\users\vivepate\appdata\local\continuum\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module exec(bytecode, module.dict) File "site-packages\oct2py__init.py", line 26, in File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "c:\users\vivepate\appdata\local\continuum\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module exec(bytecode, module.dict) File "site-packages\oct2py\core.py", line 15, in File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "c:\users\vivepate\appdata\local\continuum\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module exec(bytecode, module.dict__) File "site-packages\octave_kernel__init.py", line 5, in File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "c:\users\vivepate\appdata\local\continuum\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module exec(bytecode, module.dict__) File "site-packages\octave_kernel\kernel.py", line 52, in File "site-packages\octave_kernel\kernel.py", line 58, in OctaveKernel File "site-packages\octave_kernel\kernel.py", line 46, in get_kernel_json FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\vivepate\AppData\Local\Temp\_MEI104322\octave_kernel\kernel.json' [8952] Failed to execute script main

blink1073 commented 4 years ago

Hi @vivekpatel99, I'm not sure how that would happen. Looking at the code, I'd expect it to look in site-packages\octave_kernel, unless PyInstaller is somehow affecting __file__.

msiemionCalistapw commented 1 year ago

I ran into a similar error... mine is FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\msiemion\AppData\Local\Temp\_MEI232162\splink\files\chart_defs\profile_data.json'

has anyone figured out the reasoning for this issue yet?