quinnj / Sublime-IJulia

An IJulia Frontend for Sublime Text 3
90 stars 16 forks source link

REPL Issue on Windows #26

Closed jlepird closed 10 years ago

jlepird commented 10 years ago

I'm running 32 bit Sublime Text3 on windows 8.1, and when I run the Open IJulia command, nothing happens, but I get this mess of output from the sublime terminal window:

Traceback (most recent call last):
  File "C:\Program Files (x86)\Sublime Text 3\sublime_plugin.py", line 157, in on_api_ready
    m.plugin_loaded()
  File "KernelManager in C:\Users\John\AppData\Roaming\Sublime Text 3\Installed Packages\IJulia.sublime-package", line 16, in plugin_loaded
  File "X/ctypes/__init__.py", line 431, in LoadLibrary
  File "X/ctypes/__init__.py", line 353, in __init__
OSError: [WinError 193] %1 is not a valid Win32 application
Package Control: Skipping automatic upgrade, last run at 2014-02-11 21:50:01, next run at 2014-02-11 22:50:01 or after
Starting IJulia backend...
Command Executed: julia-readline.exe  C:/Users/John/.julia/IJulia/src/kernel.jl "C:\Users\John\AppData\Roaming\Sublime Text 3\Packages/User/profile-0.json"
Traceback (most recent call last):
  File "IJulia in C:\Users\John\AppData\Roaming\Sublime Text 3\Installed Packages\IJulia.sublime-package", line 53, in start_kernel
  File "KernelManager in C:\Users\John\AppData\Roaming\Sublime Text 3\Installed Packages\IJulia.sublime-package", line 213, in __init__
  File "KernelManager in C:\Users\John\AppData\Roaming\Sublime Text 3\Installed Packages\IJulia.sublime-package", line 104, in __init__
NameError: global name 'zmq' is not defined
Traceback (most recent call last):
  File "IJulia in C:\Users\John\AppData\Roaming\Sublime Text 3\Installed Packages\IJulia.sublime-package", line 189, in execute
AttributeError: 'IJuliaView' object has no attribute 'kernel'
Traceback (most recent call last):
  File "C:\Program Files (x86)\Sublime Text 3\sublime_plugin.py", line 231, in on_close
    callback.on_close(v)
  File "IJulia in C:\Users\John\AppData\Roaming\Sublime Text 3\Installed Packages\IJulia.sublime-package", line 400, in on_close
  File "IJulia in C:\Users\John\AppData\Roaming\Sublime Text 3\Installed Packages\IJulia.sublime-package", line 78, in on_close
AttributeError: 'IJuliaView' object has no attribute 'kernel'
Writing file /C/Users/John/AppData/Roaming/Sublime Text 3/Packages/User/Sublime-IJulia.sublime-settings with encoding UTF-8 (atomic)
reloading Packages/User/Sublime-IJulia.sublime-settings
Starting IJulia backend...
Command Executed: julia-readline.exe  C:/Users/John/.julia/IJulia/src/kernel.jl "C:\Users\John\AppData\Roaming\Sublime Text 3\Packages/User/profile-1.json"
Traceback (most recent call last):
  File "IJulia in C:\Users\John\AppData\Roaming\Sublime Text 3\Installed Packages\IJulia.sublime-package", line 53, in start_kernel
  File "KernelManager in C:\Users\John\AppData\Roaming\Sublime Text 3\Installed Packages\IJulia.sublime-package", line 213, in __init__
  File "KernelManager in C:\Users\John\AppData\Roaming\Sublime Text 3\Installed Packages\IJulia.sublime-package", line 104, in __init__
NameError: global name 'zmq' is not defined

All the Julia syntax seems to be working fine, but then if I try to evaluate something with Shift-Enter, I get this error:

Traceback (most recent call last):
  File "IJulia in C:\Users\John\AppData\Roaming\Sublime Text 3\Installed Packages\IJulia.sublime-package", line 189, in execute
AttributeError: 'IJuliaView' object has no attribute 'kernel'

Any suggestions? Thanks!

quinnj commented 10 years ago

Yeah, you're ZMQ library is not being found correctly. You'll need to check the value of the zmq_shared_library field in your settings file and make sure it's pointed exactly to the right ZMQ shared library when you installed IJulia from within Julia (i.e Pkg.add("IJulia"). My worry is that it's somehow picking up a 64-bit version of ZMQ, because "OSError: [WinError 193] %1 is not a valid Win32 application" usually means bit-incompatibility.

jlepird commented 10 years ago

Ah okay, I had some issues installing the 64 bit version, so I tried to use the 32 bit instead with my 64 bit Julia. I'll open another issue with the 64 bit problems, but this specific issue is closed.

On Tue, Feb 11, 2014 at 7:38 AM, Jacob Quinn notifications@github.comwrote:

Yeah, you're ZMQ library is not being found correctly. You'll need to check the value of the zmq_shared_library field in your settings file and make sure it's pointed exactly to the right ZMQ shared library when you installed IJulia from within Julia (i.e Pkg.add("IJulia"). My worry is that it's somehow picking up a 64-bit version of ZMQ, because "OSError: [WinError 193] %1 is not a valid Win32 application" usually means bit-incompatibility.

Reply to this email directly or view it on GitHubhttps://github.com/karbarcca/Sublime-IJulia/issues/26#issuecomment-34750229 .