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

From source builds do not include embedded libssh2 in package #51

Closed
dan-blanchard opened this issue Dec 7, 2018 · 0 comments
Closed

Comments

@dan-blanchard
Copy link

dan-blanchard commented Dec 7, 2018

Bug reports

Steps to reproduce:

  1. Run pip install ssh2-python on Travis when using PyPy. (I have tried with both 2.7 and 3.5 versions of PyPy 6.0.
  2. In the pypy interpreter, try to run from ssh2.session import Session.
  3.  from ssh2.session import Session
     E   ImportError: unable to load extension module '/home/travis/virtualenv/pypy2.7-6.0.0/
     site-packages/ssh2/session.pypy-41.so': libssh2.so.1: cannot open shared object file: 
     No such file or directory
    

I also tried installing the libssh2-1-dev package on Travis first, and got a slightly different error message:

ImportError: unable to load extension module '/home/travis/virtualenv/pypy2.7-6.0.0/
             site-packages/ssh2/session.pypy-41.so': /home/travis/virtualenv/pypy2.7-6.0.0/site-
             packages/ssh2/session.pypy-41.so: undefined symbol: libssh2_session_set_last_error

Expected behaviour: Able to import Session properly in PyPy.

Actual behaviour: Exceptions above.

Additional info: Ubuntu 16.04. You can see multiple failed attempts on Travis (as part of a project that was trying to use parallel-ssh here and here.

@pkittenis pkittenis changed the title Does not build properly with PyPy From source builds do not include embedded libssh2 in package Dec 10, 2018
pkittenis added a commit that referenced this issue Dec 10, 2018
Added python 3.7 target to travis cfg. Removed OSX 6.4 builds from travis cfg - deprecated by travis-ci.
pkittenis added a commit that referenced this issue Dec 10, 2018
Added python 3.7 target to travis cfg. Removed OSX 6.4 builds from travis cfg - deprecated by travis-ci.
Updated changelog.
Red-M pushed a commit to Red-M/ssh2-python that referenced this issue Jun 27, 2020
Added python 3.7 target to travis cfg. Removed OSX 6.4 builds from travis cfg - deprecated by travis-ci.
Updated changelog.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants