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

Error: UnsupportedProtocol: protocol 'ssh' is not supported, when trying from google-colab #12

Closed
yuvval opened this issue Mar 10, 2018 · 1 comment
Labels
bug something does not work invalid issue is not a valid issue

Comments

@yuvval
Copy link

yuvval commented Mar 10, 2018

Hi,

I tried to use fs.sshfs with a google-colab notebook, but I get the following error
UnsupportedProtocol: protocol 'ssh' is not supported

Installing the package was successful (console output pasted below).

To reproduce, type the following commands (except for replacing the address with a proper host)

!pip install fs.sshfs
import fs
my_fs = fs.open_fs("ssh://[user[:password]@]host[:port]/[directory]")

Thank you for your help

Here is a dump of the pip install console output


Collecting fs.sshfs
  Downloading fs.sshfs-0.8.0-py2.py3-none-any.whl
Requirement already satisfied: configparser~=3.2; python_version < "3" in /usr/local/lib/python2.7/dist-packages (from fs.sshfs)
Requirement already satisfied: six~=1.10 in /usr/local/lib/python2.7/dist-packages (from fs.sshfs)
Collecting fs~=2.0.7 (from fs.sshfs)
  Downloading fs-2.0.18-py2.py3-none-any.whl (106kB)
    100% |████████████████████████████████| 112kB 4.5MB/s 
Collecting paramiko~=2.0 (from fs.sshfs)
  Downloading paramiko-2.4.0-py2.py3-none-any.whl (192kB)
    100% |████████████████████████████████| 194kB 3.3MB/s 
Requirement already satisfied: pytz in /usr/local/lib/python2.7/dist-packages (from fs~=2.0.7->fs.sshfs)
Requirement already satisfied: enum34~=1.1.6; python_version < "3.4" in /usr/local/lib/python2.7/dist-packages (from fs~=2.0.7->fs.sshfs)
Collecting appdirs~=1.4.3 (from fs~=2.0.7->fs.sshfs)
  Downloading appdirs-1.4.3-py2.py3-none-any.whl
Requirement already satisfied: setuptools in /usr/lib/python2.7/dist-packages (from fs~=2.0.7->fs.sshfs)
Collecting cryptography>=1.5 (from paramiko~=2.0->fs.sshfs)
  Downloading cryptography-2.1.4-cp27-cp27mu-manylinux1_x86_64.whl (2.2MB)
    100% |████████████████████████████████| 2.2MB 478kB/s 
Collecting pynacl>=1.0.1 (from paramiko~=2.0->fs.sshfs)
  Downloading PyNaCl-1.2.1-cp27-cp27mu-manylinux1_x86_64.whl (696kB)
    100% |████████████████████████████████| 706kB 1.6MB/s 
Requirement already satisfied: pyasn1>=0.1.7 in /usr/local/lib/python2.7/dist-packages (from paramiko~=2.0->fs.sshfs)
Collecting bcrypt>=3.1.3 (from paramiko~=2.0->fs.sshfs)
  Downloading bcrypt-3.1.4-cp27-cp27mu-manylinux1_x86_64.whl (57kB)
    100% |████████████████████████████████| 61kB 9.7MB/s 
Collecting cffi>=1.7; platform_python_implementation != "PyPy" (from cryptography>=1.5->paramiko~=2.0->fs.sshfs)
  Downloading cffi-1.11.5-cp27-cp27mu-manylinux1_x86_64.whl (407kB)
    100% |████████████████████████████████| 409kB 2.9MB/s 
Requirement already satisfied: idna>=2.1 in /usr/local/lib/python2.7/dist-packages (from cryptography>=1.5->paramiko~=2.0->fs.sshfs)
Collecting asn1crypto>=0.21.0 (from cryptography>=1.5->paramiko~=2.0->fs.sshfs)
  Downloading asn1crypto-0.24.0-py2.py3-none-any.whl (101kB)
    100% |████████████████████████████████| 102kB 7.4MB/s 
Collecting ipaddress; python_version < "3" (from cryptography>=1.5->paramiko~=2.0->fs.sshfs)
  Downloading ipaddress-1.0.19.tar.gz
Collecting pycparser (from cffi>=1.7; platform_python_implementation != "PyPy"->cryptography>=1.5->paramiko~=2.0->fs.sshfs)
  Downloading pycparser-2.18.tar.gz (245kB)
    100% |████████████████████████████████| 256kB 3.9MB/s 
Building wheels for collected packages: ipaddress, pycparser
  Running setup.py bdist_wheel for ipaddress ... -� �done
  Stored in directory: /content/.cache/pip/wheels/d7/6b/69/666188e8101897abb2e115d408d139a372bdf6bfa7abb5aef5
  Running setup.py bdist_wheel for pycparser ... -� �\� �done
  Stored in directory: /content/.cache/pip/wheels/95/14/9a/5e7b9024459d2a6600aaa64e0ba485325aff7a9ac7489db1b6
Successfully built ipaddress pycparser
Installing collected packages: appdirs, fs, pycparser, cffi, asn1crypto, ipaddress, cryptography, pynacl, bcrypt, paramiko, fs.sshfs
Successfully installed appdirs-1.4.3 asn1crypto-0.24.0 bcrypt-3.1.4 cffi-1.11.5 cryptography-2.1.4 fs-2.0.18 fs.sshfs-0.8.0 ipaddress-1.0.19 paramiko-2.4.0 pycparser-2.18 pynacl-1.2.1

@althonos
Copy link
Owner

althonos commented May 9, 2018

@yuvval : I tested today and it worked for me, do you still encounter this issue ?

@althonos althonos added the bug something does not work label May 9, 2018
@althonos althonos added the invalid issue is not a valid issue label May 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something does not work invalid issue is not a valid issue
Projects
None yet
Development

No branches or pull requests

2 participants