Skip to content
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

[WinError 193] %1 is not a valid Win32 application #189

Open
mpiorczynski opened this issue Mar 19, 2021 · 3 comments
Open

[WinError 193] %1 is not a valid Win32 application #189

mpiorczynski opened this issue Mar 19, 2021 · 3 comments

Comments

@mpiorczynski
Copy link

mpiorczynski commented Mar 19, 2021

D:\Python>jupyter kernelspec list
Available kernels:
octave D:\anaconda3\share\jupyter\kernels\octave
python3 D:\anaconda3\share\jupyter\kernels\python3

D:\Python>python -m octave_kernel.check
Octave kernel v0.32.0
Metakernel v0.27.5
Python v3.8.3 (default, Jul 2 2020, 17:30:36) [MSC v.1916 64 bit (AMD64)]
Python path: D:\anaconda3\python.exe

Connecting to Octave...
Can't load 'D:\anaconda3\lib\site-packages\metakernel\magics\shell_magic.py': error: <pexpect.popen_spawn.PopenSpawn object at 0x0000002143D51640>
searcher: searcher_re:
0: re.compile('\r\n')
1: EOF
<pexpect.popen_spawn.PopenSpawn object at 0x0000002143D51640>
searcher: searcher_re:
0: re.compile('\r\n')
1: EOF
Octave connection established
[WinError 193] %1 is not a valid Win32 application

I already have Octave installed on my Windows laptop and I have set OCTAVE_EXECUTABLE to octave-cli in the environment variables.
How to fix it?

@leo-smi
Copy link

leo-smi commented Mar 24, 2021

I have the same problem on windows 7 64x
image

@AnonymoZ
Copy link

AnonymoZ commented Oct 7, 2021

The same problem. Until @Calysto decides to fix.. my full traceback is as such:

My links first:
OCTAVE_EXECUTABLE
C:\Program Files\GNU Octave\Octave-6.3.0\mingw64\bin\octave-cli.exe
Path
C:\Program Files\GNU Octave\Octave-6.3.0\mingw64\bin

Traceback (most recent call last):
File "c:\users\oosman\appdata\local\programs\python\python37\lib\site-packages\ipykernel\kernelbase.py", line 352, in dispatch_shell
await result
File "c:\users\oosman\appdata\local\programs\python\python37\lib\site-packages\ipykernel\kernelbase.py", line 760, in kernel_info_request
content.update(self.kernel_info)
File "c:\users\oosman\appdata\local\programs\python\python37\lib\site-packages\ipykernel\kernelbase.py", line 753, in kernel_info
'language_info': self.language_info,
File "c:\users\oosman\appdata\local\programs\python\python37\lib\site-packages\octave_kernel\kernel.py", line 78, in language_info
'version': self.language_version,
File "c:\users\oosman\appdata\local\programs\python\python37\lib\site-packages\octave_kernel\kernel.py", line 69, in language_version
ver = self.octave_engine.eval('version', silent=True)
File "c:\users\oosman\appdata\local\programs\python\python37\lib\site-packages\octave_kernel\kernel.py", line 96, in octave_engine
logger=self.log)
File "c:\users\oosman\appdata\local\programs\python\python37\lib\site-packages\octave_kernel\kernel.py", line 173, in init
self.repl = self._create_repl()
File "c:\users\oosman\appdata\local\programs\python\python37\lib\site-packages\octave_kernel\kernel.py", line 392, in _create_repl
force_prompt_on_continuation=True)
File "c:\users\oosman\appdata\local\programs\python\python37\lib\site-packages\metakernel\replwrap.py", line 63, in init
encoding="utf-8")
File "c:\users\oosman\appdata\local\programs\python\python37\lib\site-packages\metakernel\pexpect.py", line 32, in spawn
encoding=encoding, codec_errors=codec_errors)
File "c:\users\oosman\appdata\local\programs\python\python37\lib\site-packages\pexpect\popen_spawn.py", line 53, in init
self.proc = subprocess.Popen(cmd, **kwargs)
File "c:\users\oosman\appdata\local\programs\python\python37\lib\subprocess.py", line 775, in init
restore_signals, start_new_session)
File "c:\users\oosman\appdata\local\programs\python\python37\lib\subprocess.py", line 1178, in _execute_child
startupinfo)

OSError: [WinError 193] %1 is not a valid Win32 application

@AnonymoZ
Copy link

AnonymoZ commented Oct 7, 2021

Hey, The Problem is Solved! @Calysto made the Kernel for Octave 5.2.0. Now Octave 6.2.0 is out, and does not support Calysto's Kernel.

Please downgrade your Octave to 5.2.0 (if it doesn't bother you!) And reconnect Path and Octave_Executable the way you would Octave 6.2.0

🚀 🚀 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants