octave_kernel icon indicating copy to clipboard operation
octave_kernel copied to clipboard

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

Open vivekpatel99 opened this issue 5 years ago • 2 comments

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

vivekpatel99 avatar Jan 07 '20 11:01 vivekpatel99

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__.

blink1073 avatar Jan 07 '20 22:01 blink1073

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?

msiemionCalistapw avatar May 30 '23 16:05 msiemionCalistapw