SublimeText / Helium

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

paramiko dependecy #51

Open klonuo opened 6 years ago

klonuo commented 6 years ago

Hi,

first of all, thanks for making this nice plugin :)

I use latest ST3 on Windows 10, and used git to install hermes instead package manager. However it fails for me at paramiko, which is only set as a dependency for Windows, and AFAIK it's used by pyzmq as optional package. After removing paramiko line, everything seems to work as expected.

Cheers

ngr-t commented 6 years ago

Thank you for reporting.

The reason why paramiko is included in dependencies is that Hermes calls open_tunnel() function, which uses paramiko as default in Windows, when it connects to remote kernels.

I think Package Control: Satisfy Dependencies command will install paramiko if you have the cloned repository in package directory (I'm not sure what did you do to install the package by git).

klonuo commented 6 years ago

Ok, so this is the error I get when I start ST3:

Package Control: Installing 1 missing dependency
Package Control: The dependency "paramiko" is either not available on this platform or for this version of Sublime Text
Package Control: Installed missing dependency paramiko
Package Control: No updated packages
error: Package Control

1 missing dependency was just installed. Sublime Text should be restarted, otherwise one or more of the installed packages may not function properly.

After restart, it just repeats again. I then removed paramiko from dependencies and plugin works just fine.

ngr-t commented 6 years ago

Thank you for the detail. So it looks Package Control tried to satisfy dependencies but could not. It's unintended. Could you tell me the version (build number) of your Sublime? I'll look into it this weekend.

ngr-t commented 6 years ago

https://github.com/wbond/package_control_channel/blob/master/repository/dependencies.json says that currently paramiko dependency is only for OSX. I overlooked that, sorry. I think paramiko dependency should work on Windows because it's entirely implemented in Python. I'll talk with sublime-paramiko maintainer.

klonuo commented 6 years ago

I use ST build 3174

Thanks

sschuhmann commented 5 years ago

I experience the same problem, but installing the package through package control.

As @klonuo mentioned, the paraminko package seems only be available for OSX right now. This could be caused by the dependeny to pycrypto, which depends on msv c++.

It would be awesome to have this awesome plugin working on windows :)

Aethylred commented 4 years ago

Hermes is dependent on pyzmq which is dependent on paramiko, so always pops up an error dialogue on starting Sublime, and some of Herme's functions (ones that rely on ssh) just don't work.

The paramkio package is exclusive to OSX and not available for Linux or Windows.

ngr-t commented 4 years ago

I'm sincerely sorry about leaving this problem.

@sschuhmann

This could be caused by the dependeny to pycrypto, which depends on msv c++.

It should not be collect. This package does not use original paramiko which can be installed from pip, but a sublime dependency version which is sublime-paramiko . If you are not familiar with dependencies in ST3 plugin, https://packagecontrol.io/docs/dependencies should help you.

The author of sublime-paramiko omitted dependency on pycrypt and use ECDSA module instead. It's pure Python implemented, so it should work on Windows and Linux too. Just the author had not tested this module on other platforms than OSX so marked it only works on OSX. He will receive PR that fixes it when it's confirmed to run on other platforms. But it's not unclear for me how to confirm them to work on other platforms and it's left unresolved.

sschuhmann commented 4 years ago

There were some changes in the sublime-paraminko package, mentioning also some dependencies for windows plattforms. This could mean it's now also available on windows hosts. I'll test it the next time I have access to a windows machine