snoack / ssh4py Goto Github PK
View Code? Open in Web Editor NEWPython bindings for libssh2
License: GNU Lesser General Public License v2.1
Python bindings for libssh2
License: GNU Lesser General Public License v2.1
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.
The blog post which is linked to on your Github front page seems to be hidden:
When I click on the link I get a "Permission Denied" page.
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(
^~~~~~~~~~~~~~~~~~~~~~~~
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,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.