• zoteca

    @JonB Thanks for the reply.

    So I tried what you suggested, edited pip,py, removed and installed paramiko, and still got same error re: multi-back ends.

    So I was a bit cobfused. When I install paramiko I noticed it uses cryptography package not pycrypto. I did in fact try manually installing pycrypto previously and got a setup error, which your pip patch does indeed fix.

    But a brief googling revealed that pycrypto is for paramiko 1.x & what the plain install is doing is installing paramiko 2.0. So I asked myself is that the problem? Indeed it was. Installing version 1.17 of paramiko made everything work perfectly, and I didn't even need your patch to manually install pycrypto, since the bundled version works fine.

    Anyway, thanks so much for your help and for putting me on right path to solve the problem, even inadvertently.

    Hopefully future versions support paramiko 2.0 since I understand cryptography is a more secure library :)

    posted in Pythonista read more
  • zoteca

    @ywangd FYI it's broken again.

    Just installed pythonista on my new iPad Pro 9.7. I can run ssh-keygen fine out of the box, but then when I do "ssh -h" I get the pip error at top of this thread (although no attempt to install paramiko). If I then manually install paramiko (and manually setuptools for otherwise I get an error) when I run ssh-keygen or try to ssh to a server I get the following error:

    " Multibackend cannot be initialized with no backends. If you are seeing this error when trying to use default_backend() please try uninstalling and reinstalling cryptography."

    Needless to say reinstalling cryptography does not help. There are obviously are some conflicts between different packages & stuff just isn't working.

    The problem exists w/ & w/o installing the pip patch - I installed/uninstalled pythonista multiple times to try different variants of installation methods of stash, paramiko etc

    posted in Pythonista read more
  • zoteca

    @ywangd First thanks so much for making such an amazing add on to Pythonista and working to keep it functional.

    Since I haven't done much yet, I deleted Pythonista, reinstalled, add the tools, installed stash. Then I did self update and had to manually pip install paramiko and pyte. Restarted and then did ssh.

    Yay, it works!!!!

    Thanks again for the add on tool and your help!!

    posted in Pythonista read more
  • zoteca

    Just purchased Pythonista and first thing I did was install Stash via the Pythonista Tools plugin so I presume I have the latest version. I tried running ssh with password and got an error:

    usage: pip.py [-h] [--verbose] sub-command ...
    pip.py: error: unrecognized arguments: 0.4.10
    usage: pip.py [-h] [--verbose] sub-command ...
    pip.py: error: unrecognized arguments: 1.16.0
    Please restart Pythonista for changes to take full effect

    So I thought that's strange why am I getting pip error. I thought perhaps my password is weird and/or there is no .ssh directory so I did a keygen and copies the public key to a server that works that way. Got same exact error. So I started investigating on this site and read that Paramiko gets updated and you need to restart Pythonista which explains the last line.

    So I restarted, tried again same error. So I tried manually installing paramiko and this is what I got:

    [~/Documents]$ pip install paramiko
    Querying PyPI ...
    Downloading package ...
    Opening: https://pypi.python.org/packages/source/p/paramiko/paramiko-1.16.0.tar.gz
    Save as: /private/var/mobile/Containers/Data/Application/AB28F53F-7AD6-44D0-8845-45EF52848C92/tmp/paramiko-1.16.0.tar.gz (1335094 bytes)
    1335094 [100.00%]
    Extracting archive file ...
    Archive extracted.
    Running setup file ...
    stash: <type 'exceptions.ValueError'>: substring not found

    So my guess is the problem is paramiko. Any help would be greatly appreciated.

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!