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

Win64 NameError: global name 'zmq' is not defined #83

Open
SannaF opened this issue May 17, 2016 · 0 comments
Open

Win64 NameError: global name 'zmq' is not defined #83

SannaF opened this issue May 17, 2016 · 0 comments

Comments

@SannaF
Copy link

SannaF commented May 17, 2016

Hi, I'm trying to run Sublime-IJulia on Sublime Text 3 (all on Windows 7, 64 bit), but run into two issues:
Upon start of Sublime, I get the following console output:

DPI scale: 1.25
startup, version: 3114 windows x32 channel: stable
executable: /C/Program Files (x86)/Sublime Text 3/sublime_text.exe
working dir: /C/Program Files (x86)/Sublime Text 3
packages path: /C/Users/Susanne/AppData/Roaming/Sublime Text 3/Packages
state path: /C/Users/Susanne/AppData/Roaming/Sublime Text 3/Local
zip path: /C/Program Files (x86)/Sublime Text 3/Packages
zip path: /C/Users/Susanne/AppData/Roaming/Sublime Text 3/Installed Packages
ignored_packages: ["Vintage"]
pre session restore time: 0.109109
startup time: 0.137109
first paint time: 0.138109
first paint time: 0.138109
reloading plugin Default.auto_indent_tag
reloading plugin Default.block
reloading plugin Default.comment
reloading plugin Default.convert_syntax
reloading plugin Default.copy_path
reloading plugin Default.delete_word
reloading plugin Default.detect_indentation
reloading plugin Default.duplicate_line
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_context_url
reloading plugin Default.open_file_settings
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.profile
reloading plugin Default.quick_panel
reloading plugin Default.run_syntax_tests
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.show_scope_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.swap_line
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.trim_trailing_white_space
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin 0_package_control_loader.00-package_control
reloading plugin 0_package_control_loader.02-bz2
reloading plugin 1Self.1self
reloading plugin 1Self.1selfOpenDashboardCommand
reloading plugin Package Control.1_reloader
reloading plugin Package Control.2_bootstrap
reloading plugin Package Control.Package Control
reloading plugin IJulia.init
reloading plugin IJulia.IJulia
reloading plugin IJulia.JuliaSyntax
reloading plugin IJulia.Kernel
plugins loaded
Initializing 1self plugin
C:\Users\Susanne\AppData\Roaming\Sublime Text 3\Packages\IJulia/windeps/
Traceback (most recent call last):
File "C:\Program Files (x86)\Sublime Text 3\sublime_plugin.py", line 162, in on_api_ready
m.plugin_loaded()
File "C:\Users\Susanne\AppData\Roaming\Sublime Text 3\Packages\IJulia\Kernel.py", line 22, in plugin_loaded
zmq = cdll.LoadLibrary(zmq_lib)
File "./python3.3/ctypes/init.py", line 431, in LoadLibrary
File "./python3.3/ctypes/init.py", line 353, in init
OSError: [WinError 193] %1 ist keine zulässige Win32-Anwendung
Package Control: No updated packages

where I am worried about
OSError: [WinError 193] %1 ist keine zulässige Win32-Anwendung

When I open a new IJulia console with Ctrl+shift+p, I get

Starting IJulia backend...
Command Executed: C:/Users/Susanne/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Julia 0.4.5 C:/Users/Susanne/.julia/v0.4/IJulia/src/kernel.jl "C:\Users\Susanne\AppData\Roaming\Sublime Text 3\Packages/User/profile-1.json"
Traceback (most recent call last):
File "C:\Users\Susanne\AppData\Roaming\Sublime Text 3\Packages\IJulia\IJulia.py", line 51, in start_kernel
self.kernel = Kernel.Kernel(self.id,self.cmd,self)
File "C:\Users\Susanne\AppData\Roaming\Sublime Text 3\Packages\IJulia\Kernel.py", line 245, in init
self.context = Context()
File "C:\Users\Susanne\AppData\Roaming\Sublime Text 3\Packages\IJulia\Kernel.py", line 112, in init
self.ptr = zmq.zmq_ctx_new()
NameError: global name 'zmq' is not defined

I also tried the following (see different issue) command sequence in the console;
from ctypes import *
zmq = cdll.LoadLibrary("C:/Users/Susanne/.julia/v0.4/WinRPM/deps/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libzmq.dll")

and again got the message that something is not a valid Win32-application:
Traceback (most recent call last):
File "", line 1, in
File "./python3.3/ctypes/init.py", line 431, in LoadLibrary
File "./python3.3/ctypes/init.py", line 353, in init
OSError: [WinError 193] %1 ist keine zulässige Win32-Anwendung

Do you have any idea what to fix??

Many thanks and cheers!

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

1 participant