Giter Site home page Giter Site logo

ssh4py's People

Contributors

facade-zz avatar ptjm avatar snoack avatar vianney avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ssh4py's Issues

PyPI

Thanks for the great work on this. Have you considered making it available as a package on PyPI? I'd like to add it as a dependency for my own project.

session.c: uncompatible argument 3 type of 'PyString_AsStringAndSize' function

There is reported a warning on 64-bit systems related to PyString_AsStringAndSize function, as argument 3 type has changed since Python 2.5 (have a look at https://docs.python.org/2/c-api/string.html):

gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fPIC -DMODULE_VERSION="0.7.1" -I/usr/include/python2.7 -c src/session.c -o build/temp.linux-x86_64-2.7/src/session.o
src/session.c: In function 'passwd_changereq_callback':
src/session.c:190:41: warning: passing argument 3 of 'PyString_AsStringAndSize' from incompatible pointer type [-Wincompatible-pointer-types]
  ret = PyString_AsStringAndSize(rv, &s, newpw_len);
                                         ^~~~~~~~~
In file included from /usr/include/python2.7/Python.h:94:0,
                 from src/ssh2.h:28,
                 from src/session.c:21:
/usr/include/python2.7/stringobject.h:172:17: note: expected 'Py_ssize_t * {aka long int *}' but argument is of type 'int *'
 PyAPI_FUNC(int) PyString_AsStringAndSize(
                 ^~~~~~~~~~~~~~~~~~~~~~~~

Bug: undefined symbol: PyCObject_FromVoidPtr

Hi. If this isn't right place to do this, delete this post. I'm a brazillian developer, computer engineering student of 3rd period at State University of Campinas (Unicamp), Brazil, and python developer at Itautec Inc. I want to help with development, and as first contribution:
I tryed to install git version at Arch Linux 64bits, with own PKGBUILD, libssh2=1.2.7, zlib=1.2.5 and python=3.2, and got this error on python import libssh2:
>>> import libssh2
Traceback (most recent call last):
File "", line 1, in
ImportError: /usr/lib/python3.2/site-packages/libssh2.cpython-32mu.so: undefined symbol: PyCObject_FromVoidPtr

Unfortunatelly, I'm not a expert on C python extensions, and can't fix this bug. Thanks very much. Att,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.