SublimeText / Helium

Let Sublime Text talk with Jupyter.
Other
236 stars 15 forks source link

Not working on ST4 - Mac M1 #146

Closed idr4n closed 3 months ago

idr4n commented 2 years ago

Hi,

For some reason, Helium is not working on my Mac-M1 machine, while on my Mac-Intel it does works as expected. Both of them are running the latest MacOS version (Monterrey) and the configuration is the same (it is actually shared between both machines).

Is there any reason to expect that Helium would not work on Apple silicon, or the reason should be something else?

Thanks in advance!

harnoorSingh-wtpmi commented 2 years ago

Hi,

I think I have this problem too. For you is the issue that you don't see a 'connect kernel' command for Helium?

Phil-T1 commented 2 years ago

Hi,

I'm having this issue too - no connect option in the command palette.

Thanks,

Phil.

harnoorSingh-wtpmi commented 2 years ago

It's a ST4 issue. I've solved it by downloading ST3 and using that whenever I want to use Helium. It works great for me. It doesn't seem like Helium has been altered for implementation in ST4. You can download ST3 using this link: https://www.sublimetext.com/3
It will always ask you to update whenever you open it but just always cancel that since it'll just download another instance of ST4. Hope this helps!

Phil-T1 commented 2 years ago

Thanks! I'll give that a try fir now and hope the dev sorts it out soon 😀

Phil.

cgahr commented 2 years ago

It's a ST4 issue. I've solved it by downloading ST3 and using that whenever I want to use Helium. It works great for me. It doesn't seem like Helium has been altered for implementation in ST4. You can download ST3 using this link: https://www.sublimetext.com/3 It will always ask you to update whenever you open it but just always cancel that since it'll just download another instance of ST4. Hope this helps!

That's in fact not true. Helium should work with ST4. However I know that there are some problems with getting Helium to run with ST4.

Could you try ST4 with Helium again? And if it doesn't work, could you send me the output of the ST4 console?

caenrigen commented 1 year ago

FYI not working for me either with ST4, macOSVentura, MacBook M1 Pro

Running into this issue:

environment variables loaded using: /bin/zsh -l
reloading python 3.3 plugin 0_package_control_loader.00-package_control
reloading plugin Default.arithmetic
reloading python 3.3 plugin 0_package_control_loader.01-python-six
reloading plugin Default.auto_indent_tag
reloading plugin Default.block
reloading python 3.3 plugin 0_package_control_loader.10-pexpect
reloading python 3.3 plugin 0_package_control_loader.40-ptyprocess
reloading python 3.3 plugin 0_package_control_loader.50-dateutil
reloading python 3.3 plugin 0_package_control_loader.50-enum
reloading python 3.3 plugin 0_package_control_loader.50-pyzmq
reloading python 3.3 plugin Helium.helium
reloading plugin Default.colors
reloading plugin Default.comment
reloading plugin Default.convert_color_scheme
reloading plugin Default.convert_syntax
reloading plugin Default.copy_path
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.html_print
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py", line 308, in reload_plugin
    m = importlib.import_module(modulename)
  File "./python3.3/importlib/__init__.py", line 90, in import_module
reloading plugin Default.indentation
  File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py", line 1692, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "/Users/victor/Library/Application Support/Sublime Text/Installed Packages/Helium.sublime-package/helium.py", line 25, in <module>
  File "/Users/victor/Library/Application Support/Sublime Text/Installed Packages/Helium.sublime-package/lib/client/jupyter_client/__init__.py", line 4, in <module>
  File "/Users/victor/Library/Application Support/Sublime Text/Installed Packages/Helium.sublime-package/lib/client/jupyter_client/connect.py", line 23, in <module>
ImportError: No module named 'zmq'

the pyzmq was installed but for some reason it is not being "picked up"

ajvogel-motus commented 1 year ago

For me it doesn't even come up as an option to install from "Install Packages".

mattwidmann commented 1 year ago

The version of pyzmq used by Package Control only has an Intel native binary; it's missing one for Apple silicon. This prevents it from being loaded into the native Sublime Text 4 application. It's from https://github.com/packagecontrol/pyzmq, which hasn't had an update for a few years.

A couple of notes:

yaroslavyaroslav commented 3 months ago

@sschuhmann Not sure if you're still maintaining this, but there's good news: the issue is fixed, by updating pyzmq to 26.0.3 in PC channel and by adding tornado into it as an new implementation of IOLoop. So I was able to run this plugin locally on my M1 mac with a slightly fix of the code itself, which is provided (not by me) https://github.com/sschuhmann/Helium/pull/152