-
Notifications
You must be signed in to change notification settings - Fork 16
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
NameError: global name 'zmq' is not defined #11
Comments
Hmmm....if you open up julia and type |
If it's not, |
I have the same problem. I set
where but I still get
|
A few things to try to see what's going on here:
And let me know what it outputs. |
Can you both also confirm that you're using Sublime Text 3? (instead of Sublime Text 2). I haven't tested anything on ST2 and can't guarantee it'll work at all. |
Kevin I am using ST3. I tried what you asked:
and it seems that in the console the zmq class is correctly instantiated. In |
Ok, something else to try. Open up the sublime console (ctrl+~, cmd+` on mac). Type
and let me know what the output looks like. If it looks like it runs, you may also try opening the console too (ctrl+shift+p, type "open ijulia"). |
The problem wasn't related with Sublime-IJulia. The issue was that ST3 plugin_host.exe was arising a system error because somehow couldn't find some MinGW dlls it need (e.g. libgcc_s_seh-1.dll ). Once this solved Sublime-IJulia appears to be working great! Thank you |
I get the same error on Ubuntu with ST3: NameError: global name 'zmq' is not defined |
during the installation the following error pops up: OSError: /home/myname/.julia/ZMQ/deps/usr/lib/libzmq: cannot open shared object file: No such file or directory |
Glad it's working for you @AntonioSaragga! @tobiassalz, feel free to try some of the suggestions above and the instructions in the README. Otherwise, I'm dusting off my old ubuntu box tonight to do some more debugging. |
zmq = cdll.LoadLibrary("/home/myname/.julia/ZMQ/deps/usr/lib/libzmq") again throws the same OSError |
If you open up julia from the terminal and type |
It pits out exactly the directory that I specify in this command. On 22.01.2014, at 12:10, Jacob Quinn notifications@github.com wrote: If you open up julia from the terminal and type using ZMQ; ZMQ.zmq, what — |
If you're not able to get the cdll.LoadLibrary call to work, then you either don't have the actual shared library or there's a path issue of some kind (type, spaces off, off by a directory, etc). I'm not sure what else to tell you there. If you have python on your machine, you can open it up and try the same commands to see if they work or not. You may also check that you're specifying the library extension correctly. I know sometimes on Linux the shared library is |
I was having the same issue as @tobiassalz on Ubuntu. Adding the ".so" extension to the zmq shared library path seems to have fixed it. Opening a new IJulia console shows a julia banner and |
thank you! the .so has resolved it for me too |
@karbarcca I got it working now, using
It started. After that, it starts just fine from command palette without going through the console. thank you! |
@gragusa, I think you may have a slightly outdated Sublime Text. The |
@karbarcca Yes you are right. I got it working on a different machine that did not have ST3 installed---so I did a fresh install. In summary, with I will keep testing it and let you know whether I have other problem. |
I'm getting the following error for IJulia on Sublime Text 3 Beta (Windows 64). The package ZMQ is installed.
Starting IJulia backend...
Command Executed: C:/julia/usr/bin/julia C:\Users\Tony/.julia/IJulia/src/kernel.jl "C:\Users\Tony\AppData\Roaming\Sublime Text 3\Packages/User/profile-3.json"
Traceback (most recent call last):
File "IJulia in C:\Users\Tony\AppData\Roaming\Sublime Text 3\Installed Packages\IJulia.sublime-package", line 54, in start_kernel
File "KernelManager in C:\Users\Tony\AppData\Roaming\Sublime Text 3\Installed Packages\IJulia.sublime-package", line 218, in init
File "KernelManager in C:\Users\Tony\AppData\Roaming\Sublime Text 3\Installed Packages\IJulia.sublime-package", line 104, in init
NameError: global name 'zmq' is not defined
The text was updated successfully, but these errors were encountered: