Helium icon indicating copy to clipboard operation
Helium copied to clipboard

paramiko dependecy

Open klonuo opened this issue 6 years ago • 9 comments

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

klonuo avatar Sep 19 '18 18:09 klonuo

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).

ngr-t avatar Sep 20 '18 05:09 ngr-t

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.

klonuo avatar Sep 20 '18 16:09 klonuo

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 avatar Sep 21 '18 01:09 ngr-t

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.

ngr-t avatar Sep 21 '18 03:09 ngr-t

I use ST build 3174

Thanks

klonuo avatar Sep 22 '18 00:09 klonuo

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 :)

sschuhmann avatar Apr 17 '19 09:04 sschuhmann

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.

Aethylred avatar Oct 20 '19 22:10 Aethylred

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.

ngr-t avatar Oct 23 '19 03:10 ngr-t

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

sschuhmann avatar Feb 29 '20 21:02 sschuhmann