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

Compatible to use with Sublime Text Dev builds #113

Closed
prassee opened this issue Nov 13, 2020 · 14 comments
Closed

Compatible to use with Sublime Text Dev builds #113

prassee opened this issue Nov 13, 2020 · 14 comments
Labels

Comments

@prassee
Copy link

prassee commented Nov 13, 2020

I have tried to use this with latest dev builds ST4 , I can install it but could not start or connect to any jupyter server.

@prassee prassee changed the title Compatible to use with latest Dev builds Compatible to use with Sublime Text Dev builds Nov 13, 2020
@sschuhmann sschuhmann added the bug label Nov 15, 2020
@sschuhmann
Copy link
Collaborator

Thanks for the report.

Could you please provide a log of the plugin?

@prassee
Copy link
Author

prassee commented Nov 16, 2020

Actually , I could not connect to any kernel i.e the command prompt (ctrl+shift+p) does not list the option Helium: connect kernel.

@sschuhmann
Copy link
Collaborator

Thank you for the information. This could be realted to #61. How did you install Jupyter Notebooks?
To ensure there is no compatibility problem, could you provide us the startup output of sublime text? This would help to identify any problems related to the new version

@prassee
Copy link
Author

prassee commented Nov 16, 2020

installed Jupyter notebooks via pip command. BTW where I could find ST's logs.

@sschuhmann
Copy link
Collaborator

Can you execute jupyter-notebook in you default terminal? Just to clarify, you are not using WSL?

You can find outpyt under View/Show Console

The output of the Helium plugin would help to identify where the problem occurs

@prassee
Copy link
Author

prassee commented Nov 17, 2020

I'm on linux and I can execue jupyter-notebook from terminal.
Below is the error found ST log's startup.

Traceback (most recent call last):
  File "/data/cellar/sublime_text/Lib/python38/sublime_plugin.py", line 312, in reload_plugin
    m = importlib.import_module(modulename)
  File "./python3.8/importlib/__init__.py", line 127, in import_module
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 808, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/data/sysConfigs/sublime-text/Installed Packages/Helium.sublime-package/helium.py", line 26, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "/data/sysConfigs/sublime-text/Installed Packages/Helium.sublime-package/lib/client/jupyter_client/__init__.py", line 4, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "/data/sysConfigs/sublime-text/Installed Packages/Helium.sublime-package/lib/client/jupyter_client/connect.py", line 23, in <module>
ModuleNotFoundError: No module named 'zmq'

@prassee
Copy link
Author

prassee commented Nov 17, 2020

Following my previous comment, I have reinstalled the extension and this is the log I got.,

Traceback (most recent call last):
  File "/data/cellar/sublime_text/Lib/python38/sublime_plugin.py", line 312, in reload_plugin
    m = importlib.import_module(modulename)
  File "./python3.8/importlib/__init__.py", line 127, in import_module
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 808, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/data/sysConfigs/sublime-text/Installed Packages/Helium.sublime-package/helium.py", line 26, in <module>
  File "<frozen zipimport>", line 241, in load_module
  File "<frozen zipimport>", line 709, in _get_module_code
  File "<frozen zipimport>", line 548, in _get_data
zipimport.ZipImportError: bad local file header: '/data/sysConfigs/sublime-text/Installed Packages/Helium.sublime-package'

@sschuhmann
Copy link
Collaborator

Thank you for providing the logs!

I have opened a project for compatibility with Sublime Text 4. However, since ST4 is still in alpha stage, some major bug regarding ST3 will be higher in priority

@RaffeYang
Copy link

same here,it doesn't work with ST4

@ghost
Copy link

ghost commented Feb 27, 2021

any update on this !!!

@sschuhmann
Copy link
Collaborator

There haven't been any news on that yet. I hope I can find the time to look into it soon.
Until the official release of Sublime 4 there should be a solution for this

@rwols
Copy link

rwols commented Feb 28, 2021

I'm fairly certain all you need to do is git revert f46447a (unless you started using py38 functionality in the meantime)

Came here from sublimehq/sublime_text#3974

@prassee
Copy link
Author

prassee commented Mar 2, 2021

I'm fairly certain all you need to do is git revert f46447a (unless you started using py38 functionality in the meantime)

Came here from sublimehq/sublime_text#3974

Your suggestion helped , I cloned this repo and reverted to the said commit copied to the "Packages" folder and most of the features work now. I use this extension to connect to IJulia kernel.
Thanks

@sschuhmann
Copy link
Collaborator

@rwols Thank you very much for the suggestion!

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

No branches or pull requests

4 participants