Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
parallel-ssh 1.2.1.post1 wheel compilation failures
----------------------------------------
Failed building wheel for parallel-ssh
Running setup.py clean for parallel-ssh
Failed to build parallel-ssh
Installing collected packages: parallel-ssh, setuptools, certifi, urllib3, chardet, ply
Found existing installation: parallel-ssh 1.2.0
Uninstalling parallel-ssh-1.2.0:
Successfully uninstalled parallel-ssh-1.2.0
Running setup.py install for parallel-ssh ... error
Complete output from command /Users/dan/.pyenv/versions/miniconda3-latest/envs/streamparse3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/h6/389yk8291lj2h9q9020105p00000gn/T/pip-build-eu8bdpha/parallel-ssh/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/h6/389yk8291lj2h9q9020105p00000gn/T/pip-31jq3nnx-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.6
creating build/lib.macosx-10.9-x86_64-3.6/pssh
copying pssh/pssh2_client.py -> build/lib.macosx-10.9-x86_64-3.6/pssh
copying pssh/_version.py -> build/lib.macosx-10.9-x86_64-3.6/pssh
copying pssh/constants.py -> build/lib.macosx-10.9-x86_64-3.6/pssh
copying pssh/__init__.py -> build/lib.macosx-10.9-x86_64-3.6/pssh
copying pssh/ssh2_client.py -> build/lib.macosx-10.9-x86_64-3.6/pssh
copying pssh/utils.py -> build/lib.macosx-10.9-x86_64-3.6/pssh
copying pssh/agent.py -> build/lib.macosx-10.9-x86_64-3.6/pssh
copying pssh/pssh_client.py -> build/lib.macosx-10.9-x86_64-3.6/pssh
copying pssh/exceptions.py -> build/lib.macosx-10.9-x86_64-3.6/pssh
copying pssh/base_pssh.py -> build/lib.macosx-10.9-x86_64-3.6/pssh
copying pssh/ssh_client.py -> build/lib.macosx-10.9-x86_64-3.6/pssh
copying pssh/output.py -> build/lib.macosx-10.9-x86_64-3.6/pssh
creating build/lib.macosx-10.9-x86_64-3.6/pssh/native
copying pssh/native/__init__.py -> build/lib.macosx-10.9-x86_64-3.6/pssh/native
running build_ext
cythoning pssh/native/_ssh2.pyx to pssh/native/_ssh2.c
Error compiling Cython file:
------------------------------------------------------------
...
from libc.stdlib cimport malloc, free
from libc.stdio cimport fopen, fclose, fwrite, fread, FILE
from gevent.select import select
from ssh2.c_ssh2 cimport LIBSSH2_CHANNEL, LIBSSH2_SESSION_BLOCK_INBOUND, \
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:25:0: 'ssh2/c_ssh2.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
from libc.stdlib cimport malloc, free
from libc.stdio cimport fopen, fclose, fwrite, fread, FILE
from gevent.select import select
from ssh2.c_ssh2 cimport LIBSSH2_CHANNEL, LIBSSH2_SESSION_BLOCK_INBOUND, \
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:25:0: 'ssh2/c_ssh2/LIBSSH2_CHANNEL.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
from libc.stdlib cimport malloc, free
from libc.stdio cimport fopen, fclose, fwrite, fread, FILE
from gevent.select import select
from ssh2.c_ssh2 cimport LIBSSH2_CHANNEL, LIBSSH2_SESSION_BLOCK_INBOUND, \
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:25:0: 'ssh2/c_ssh2/LIBSSH2_SESSION_BLOCK_INBOUND.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
from libc.stdlib cimport malloc, free
from libc.stdio cimport fopen, fclose, fwrite, fread, FILE
from gevent.select import select
from ssh2.c_ssh2 cimport LIBSSH2_CHANNEL, LIBSSH2_SESSION_BLOCK_INBOUND, \
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:25:0: 'ssh2/c_ssh2/LIBSSH2_SESSION_BLOCK_OUTBOUND.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
from libc.stdlib cimport malloc, free
from libc.stdio cimport fopen, fclose, fwrite, fread, FILE
from gevent.select import select
from ssh2.c_ssh2 cimport LIBSSH2_CHANNEL, LIBSSH2_SESSION_BLOCK_INBOUND, \
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:25:0: 'ssh2/c_ssh2/LIBSSH2_SESSION.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
from libc.stdlib cimport malloc, free
from libc.stdio cimport fopen, fclose, fwrite, fread, FILE
from gevent.select import select
from ssh2.c_ssh2 cimport LIBSSH2_CHANNEL, LIBSSH2_SESSION_BLOCK_INBOUND, \
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:25:0: 'ssh2/c_ssh2/libssh2_session_block_directions.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
from libc.stdlib cimport malloc, free
from libc.stdio cimport fopen, fclose, fwrite, fread, FILE
from gevent.select import select
from ssh2.c_ssh2 cimport LIBSSH2_CHANNEL, LIBSSH2_SESSION_BLOCK_INBOUND, \
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:25:0: 'ssh2/c_ssh2/LIBSSH2_CHANNEL_WINDOW_DEFAULT.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
from libc.stdlib cimport malloc, free
from libc.stdio cimport fopen, fclose, fwrite, fread, FILE
from gevent.select import select
from ssh2.c_ssh2 cimport LIBSSH2_CHANNEL, LIBSSH2_SESSION_BLOCK_INBOUND, \
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:25:0: 'ssh2/c_ssh2/LIBSSH2_ERROR_EAGAIN.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
from ssh2.c_ssh2 cimport LIBSSH2_CHANNEL, LIBSSH2_SESSION_BLOCK_INBOUND, \
LIBSSH2_SESSION_BLOCK_OUTBOUND, LIBSSH2_SESSION, \
libssh2_session_block_directions, \
LIBSSH2_CHANNEL_WINDOW_DEFAULT, LIBSSH2_ERROR_EAGAIN
from ssh2.c_sftp cimport libssh2_sftp_read, libssh2_sftp_write, \
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:29:0: 'ssh2/c_sftp.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
from ssh2.c_ssh2 cimport LIBSSH2_CHANNEL, LIBSSH2_SESSION_BLOCK_INBOUND, \
LIBSSH2_SESSION_BLOCK_OUTBOUND, LIBSSH2_SESSION, \
libssh2_session_block_directions, \
LIBSSH2_CHANNEL_WINDOW_DEFAULT, LIBSSH2_ERROR_EAGAIN
from ssh2.c_sftp cimport libssh2_sftp_read, libssh2_sftp_write, \
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:29:0: 'ssh2/c_sftp/libssh2_sftp_read.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
from ssh2.c_ssh2 cimport LIBSSH2_CHANNEL, LIBSSH2_SESSION_BLOCK_INBOUND, \
LIBSSH2_SESSION_BLOCK_OUTBOUND, LIBSSH2_SESSION, \
libssh2_session_block_directions, \
LIBSSH2_CHANNEL_WINDOW_DEFAULT, LIBSSH2_ERROR_EAGAIN
from ssh2.c_sftp cimport libssh2_sftp_read, libssh2_sftp_write, \
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:29:0: 'ssh2/c_sftp/libssh2_sftp_write.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
from ssh2.c_ssh2 cimport LIBSSH2_CHANNEL, LIBSSH2_SESSION_BLOCK_INBOUND, \
LIBSSH2_SESSION_BLOCK_OUTBOUND, LIBSSH2_SESSION, \
libssh2_session_block_directions, \
LIBSSH2_CHANNEL_WINDOW_DEFAULT, LIBSSH2_ERROR_EAGAIN
from ssh2.c_sftp cimport libssh2_sftp_read, libssh2_sftp_write, \
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:29:0: 'ssh2/c_sftp/LIBSSH2_SFTP_HANDLE.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
LIBSSH2_SESSION_BLOCK_OUTBOUND, LIBSSH2_SESSION, \
libssh2_session_block_directions, \
LIBSSH2_CHANNEL_WINDOW_DEFAULT, LIBSSH2_ERROR_EAGAIN
from ssh2.c_sftp cimport libssh2_sftp_read, libssh2_sftp_write, \
LIBSSH2_SFTP_HANDLE
from ssh2.session cimport Session
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:31:0: 'ssh2/session.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
LIBSSH2_SESSION_BLOCK_OUTBOUND, LIBSSH2_SESSION, \
libssh2_session_block_directions, \
LIBSSH2_CHANNEL_WINDOW_DEFAULT, LIBSSH2_ERROR_EAGAIN
from ssh2.c_sftp cimport libssh2_sftp_read, libssh2_sftp_write, \
LIBSSH2_SFTP_HANDLE
from ssh2.session cimport Session
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:31:0: 'ssh2/session/Session.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
libssh2_session_block_directions, \
LIBSSH2_CHANNEL_WINDOW_DEFAULT, LIBSSH2_ERROR_EAGAIN
from ssh2.c_sftp cimport libssh2_sftp_read, libssh2_sftp_write, \
LIBSSH2_SFTP_HANDLE
from ssh2.session cimport Session
from ssh2.sftp_handle cimport SFTPHandle
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:32:0: 'ssh2/sftp_handle.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
libssh2_session_block_directions, \
LIBSSH2_CHANNEL_WINDOW_DEFAULT, LIBSSH2_ERROR_EAGAIN
from ssh2.c_sftp cimport libssh2_sftp_read, libssh2_sftp_write, \
LIBSSH2_SFTP_HANDLE
from ssh2.session cimport Session
from ssh2.sftp_handle cimport SFTPHandle
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:32:0: 'ssh2/sftp_handle/SFTPHandle.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
from ssh2.c_sftp cimport libssh2_sftp_read, libssh2_sftp_write, \
LIBSSH2_SFTP_HANDLE
from ssh2.session cimport Session
from ssh2.sftp_handle cimport SFTPHandle
from ssh2.exceptions import SFTPIOError
from ssh2.utils cimport to_bytes
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:34:0: 'ssh2/utils.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
from ssh2.c_sftp cimport libssh2_sftp_read, libssh2_sftp_write, \
LIBSSH2_SFTP_HANDLE
from ssh2.session cimport Session
from ssh2.sftp_handle cimport SFTPHandle
from ssh2.exceptions import SFTPIOError
from ssh2.utils cimport to_bytes
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:34:0: 'ssh2/utils/to_bytes.pxd' not found
Error compiling Cython file:
------------------------------------------------------------
...
cdef bytes LINESEP = b'\n'
def _read_output(Session session, read_func):
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:42:17: 'Session' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
if remainder_len > 0:
# Finished reading without finding ending linesep
yield remainder
def sftp_put(Session session, SFTPHandle handle,
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:78:13: 'Session' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
if remainder_len > 0:
# Finished reading without finding ending linesep
yield remainder
def sftp_put(Session session, SFTPHandle handle,
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:78:30: 'SFTPHandle' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
finally:
free(cbuf)
fclose(local_fh)
def sftp_get(Session session, SFTPHandle handle,
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:126:13: 'Session' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
finally:
free(cbuf)
fclose(local_fh)
def sftp_get(Session session, SFTPHandle handle,
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:126:30: 'SFTPHandle' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
fclose(local_fh)
if rc < 0 and rc != LIBSSH2_ERROR_EAGAIN:
raise SFTPIOError(rc)
cdef int _wait_select(int _socket, LIBSSH2_SESSION *_session,
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:164:35: 'LIBSSH2_SESSION' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
writefds = (_socket,) \
if (directions & LIBSSH2_SESSION_BLOCK_OUTBOUND) else ()
select(readfds, writefds, (), timeout=timeout)
def wait_select(Session session, timeout=None):
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:178:16: 'Session' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
def _read_output(Session session, read_func):
cdef Py_ssize_t _size
cdef bytes _data
cdef bytes remainder = b""
cdef Py_ssize_t remainder_len = 0
cdef LIBSSH2_SESSION *_session = session._session
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:47:9: 'LIBSSH2_SESSION' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
cdef FILE *local_fh
cdef int rc
cdef int nread
cdef char *cbuf
cdef char *ptr
cdef LIBSSH2_SFTP_HANDLE *_handle = handle._handle
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:88:9: 'LIBSSH2_SFTP_HANDLE' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
cdef int rc
cdef int nread
cdef char *cbuf
cdef char *ptr
cdef LIBSSH2_SFTP_HANDLE *_handle = handle._handle
cdef LIBSSH2_SESSION *_session = session._session
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:89:9: 'LIBSSH2_SESSION' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
cdef bytes b_local_file = to_bytes(local_file)
cdef char *_local_file = b_local_file
cdef FILE *local_fh
cdef int rc
cdef char *cbuf
cdef LIBSSH2_SFTP_HANDLE *_handle = handle._handle
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:134:9: 'LIBSSH2_SFTP_HANDLE' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
cdef char *_local_file = b_local_file
cdef FILE *local_fh
cdef int rc
cdef char *cbuf
cdef LIBSSH2_SFTP_HANDLE *_handle = handle._handle
cdef LIBSSH2_SESSION *_session = session._session
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:135:9: 'LIBSSH2_SESSION' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
if (directions & LIBSSH2_SESSION_BLOCK_OUTBOUND) else ()
select(readfds, writefds, (), timeout=timeout)
def wait_select(Session session, timeout=None):
cdef LIBSSH2_SESSION *_session = session._session
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:179:9: 'LIBSSH2_SESSION' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
# Finished reading without finding ending linesep
yield remainder
def sftp_put(Session session, SFTPHandle handle,
local_file, size_t buffer_maxlen=LIBSSH2_CHANNEL_WINDOW_DEFAULT):
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:79:46: 'LIBSSH2_CHANNEL_WINDOW_DEFAULT' is not a constant, variable or function identifier
Error compiling Cython file:
------------------------------------------------------------
...
free(cbuf)
fclose(local_fh)
def sftp_get(Session session, SFTPHandle handle,
local_file, size_t buffer_maxlen=LIBSSH2_CHANNEL_WINDOW_DEFAULT):
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:127:46: 'LIBSSH2_CHANNEL_WINDOW_DEFAULT' is not a constant, variable or function identifier
Error compiling Cython file:
------------------------------------------------------------
...
cdef LIBSSH2_SESSION *_session = session._session
cdef int _sock = session._sock
cdef size_t _pos = 0
cdef Py_ssize_t linesep
_size, _data = read_func()
while _size == LIBSSH2_ERROR_EAGAIN or _size > 0:
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:52:19: 'LIBSSH2_ERROR_EAGAIN' is not a constant, variable or function identifier
Error compiling Cython file:
------------------------------------------------------------
...
cdef int _sock = session._sock
cdef size_t _pos = 0
cdef Py_ssize_t linesep
_size, _data = read_func()
while _size == LIBSSH2_ERROR_EAGAIN or _size > 0:
if _size == LIBSSH2_ERROR_EAGAIN:
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:53:20: 'LIBSSH2_ERROR_EAGAIN' is not a constant, variable or function identifier
Error compiling Cython file:
------------------------------------------------------------
...
def sftp_put(Session session, SFTPHandle handle,
local_file, size_t buffer_maxlen=LIBSSH2_CHANNEL_WINDOW_DEFAULT):
"""Native function for reading from SFTP and writing to local file"""
cdef bytes b_local_file = to_bytes(local_file)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:81:30: 'to_bytes' is not a constant, variable or function identifier
Error compiling Cython file:
------------------------------------------------------------
...
if nread < 0:
with gil:
raise IOError
while nread > 0:
ptr = cbuf
rc = libssh2_sftp_write(_handle, ptr, nread)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:108:21: 'libssh2_sftp_write' is not a constant, variable or function identifier
Error compiling Cython file:
------------------------------------------------------------
...
with gil:
raise IOError
while nread > 0:
ptr = cbuf
rc = libssh2_sftp_write(_handle, ptr, nread)
while rc > 0 or rc == LIBSSH2_ERROR_EAGAIN:
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:109:38: 'LIBSSH2_ERROR_EAGAIN' is not a constant, variable or function identifier
Error compiling Cython file:
------------------------------------------------------------
...
raise IOError
while nread > 0:
ptr = cbuf
rc = libssh2_sftp_write(_handle, ptr, nread)
while rc > 0 or rc == LIBSSH2_ERROR_EAGAIN:
if rc == LIBSSH2_ERROR_EAGAIN:
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:110:29: 'LIBSSH2_ERROR_EAGAIN' is not a constant, variable or function identifier
Error compiling Cython file:
------------------------------------------------------------
...
with gil:
_wait_select(_sock, _session, None)
else:
ptr += rc
nread -= rc
rc = libssh2_sftp_write(_handle, ptr, nread)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:116:25: 'libssh2_sftp_write' is not a constant, variable or function identifier
Error compiling Cython file:
------------------------------------------------------------
...
def sftp_get(Session session, SFTPHandle handle,
local_file, size_t buffer_maxlen=LIBSSH2_CHANNEL_WINDOW_DEFAULT):
"""Native function for reading from local file and writing to SFTP"""
cdef bytes b_local_file = to_bytes(local_file)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:129:30: 'to_bytes' is not a constant, variable or function identifier
Error compiling Cython file:
------------------------------------------------------------
...
cbuf = <char *>malloc(sizeof(char) * buffer_maxlen)
if cbuf is NULL:
with gil:
raise MemoryError
try:
rc = libssh2_sftp_read(_handle, cbuf, buffer_maxlen)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:148:17: 'libssh2_sftp_read' is not a constant, variable or function identifier
Error compiling Cython file:
------------------------------------------------------------
...
if cbuf is NULL:
with gil:
raise MemoryError
try:
rc = libssh2_sftp_read(_handle, cbuf, buffer_maxlen)
while rc > 0 or rc == LIBSSH2_ERROR_EAGAIN:
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:149:34: 'LIBSSH2_ERROR_EAGAIN' is not a constant, variable or function identifier
Error compiling Cython file:
------------------------------------------------------------
...
with gil:
raise MemoryError
try:
rc = libssh2_sftp_read(_handle, cbuf, buffer_maxlen)
while rc > 0 or rc == LIBSSH2_ERROR_EAGAIN:
if rc == LIBSSH2_ERROR_EAGAIN:
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:150:25: 'LIBSSH2_ERROR_EAGAIN' is not a constant, variable or function identifier
Error compiling Cython file:
------------------------------------------------------------
...
with gil:
_wait_select(_sock, _session, None)
elif fwrite(cbuf, 1, rc, local_fh) < 0:
with gil:
raise IOError
rc = libssh2_sftp_read(_handle, cbuf, buffer_maxlen)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:156:21: 'libssh2_sftp_read' is not a constant, variable or function identifier
Error compiling Cython file:
------------------------------------------------------------
...
raise IOError
rc = libssh2_sftp_read(_handle, cbuf, buffer_maxlen)
finally:
free(cbuf)
fclose(local_fh)
if rc < 0 and rc != LIBSSH2_ERROR_EAGAIN:
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:160:24: 'LIBSSH2_ERROR_EAGAIN' is not a constant, variable or function identifier
Error compiling Cython file:
------------------------------------------------------------
...
raise SFTPIOError(rc)
cdef int _wait_select(int _socket, LIBSSH2_SESSION *_session,
timeout) except -1:
cdef int directions = libssh2_session_block_directions(
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:166:26: 'libssh2_session_block_directions' is not a constant, variable or function identifier
Error compiling Cython file:
------------------------------------------------------------
...
_session)
cdef tuple readfds, writefds
if directions == 0:
return 0
readfds = (_socket,) \
if (directions & LIBSSH2_SESSION_BLOCK_INBOUND) else ()
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:172:25: 'LIBSSH2_SESSION_BLOCK_INBOUND' is not a constant, variable or function identifier
Error compiling Cython file:
------------------------------------------------------------
...
if directions == 0:
return 0
readfds = (_socket,) \
if (directions & LIBSSH2_SESSION_BLOCK_INBOUND) else ()
writefds = (_socket,) \
if (directions & LIBSSH2_SESSION_BLOCK_OUTBOUND) else ()
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:174:25: 'LIBSSH2_SESSION_BLOCK_OUTBOUND' is not a constant, variable or function identifier
Error compiling Cython file:
------------------------------------------------------------
...
if nread < 0:
with gil:
raise IOError
while nread > 0:
ptr = cbuf
rc = libssh2_sftp_write(_handle, ptr, nread)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:108:39: Coercion from Python not allowed without the GIL
Error compiling Cython file:
------------------------------------------------------------
...
if nread < 0:
with gil:
raise IOError
while nread > 0:
ptr = cbuf
rc = libssh2_sftp_write(_handle, ptr, nread)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:108:39: Calling gil-requiring function not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
if nread < 0:
with gil:
raise IOError
while nread > 0:
ptr = cbuf
rc = libssh2_sftp_write(_handle, ptr, nread)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:108:21: Accessing Python global or builtin not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
if nread < 0:
with gil:
raise IOError
while nread > 0:
ptr = cbuf
rc = libssh2_sftp_write(_handle, ptr, nread)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:108:39: Constructing Python tuple not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
if nread < 0:
with gil:
raise IOError
while nread > 0:
ptr = cbuf
rc = libssh2_sftp_write(_handle, ptr, nread)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:108:40: Converting to Python object not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
if nread < 0:
with gil:
raise IOError
while nread > 0:
ptr = cbuf
rc = libssh2_sftp_write(_handle, ptr, nread)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:108:49: Converting to Python object not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
if nread < 0:
with gil:
raise IOError
while nread > 0:
ptr = cbuf
rc = libssh2_sftp_write(_handle, ptr, nread)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:108:54: Converting to Python object not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
with gil:
raise IOError
while nread > 0:
ptr = cbuf
rc = libssh2_sftp_write(_handle, ptr, nread)
while rc > 0 or rc == LIBSSH2_ERROR_EAGAIN:
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:109:35: Truth-testing Python object not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
with gil:
raise IOError
while nread > 0:
ptr = cbuf
rc = libssh2_sftp_write(_handle, ptr, nread)
while rc > 0 or rc == LIBSSH2_ERROR_EAGAIN:
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:109:35: Operation not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
with gil:
raise IOError
while nread > 0:
ptr = cbuf
rc = libssh2_sftp_write(_handle, ptr, nread)
while rc > 0 or rc == LIBSSH2_ERROR_EAGAIN:
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:109:32: Converting to Python object not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
with gil:
raise IOError
while nread > 0:
ptr = cbuf
rc = libssh2_sftp_write(_handle, ptr, nread)
while rc > 0 or rc == LIBSSH2_ERROR_EAGAIN:
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:109:38: Accessing Python global or builtin not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
raise IOError
while nread > 0:
ptr = cbuf
rc = libssh2_sftp_write(_handle, ptr, nread)
while rc > 0 or rc == LIBSSH2_ERROR_EAGAIN:
if rc == LIBSSH2_ERROR_EAGAIN:
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:110:26: Truth-testing Python object not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
raise IOError
while nread > 0:
ptr = cbuf
rc = libssh2_sftp_write(_handle, ptr, nread)
while rc > 0 or rc == LIBSSH2_ERROR_EAGAIN:
if rc == LIBSSH2_ERROR_EAGAIN:
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:110:26: Operation not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
raise IOError
while nread > 0:
ptr = cbuf
rc = libssh2_sftp_write(_handle, ptr, nread)
while rc > 0 or rc == LIBSSH2_ERROR_EAGAIN:
if rc == LIBSSH2_ERROR_EAGAIN:
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:110:23: Converting to Python object not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
raise IOError
while nread > 0:
ptr = cbuf
rc = libssh2_sftp_write(_handle, ptr, nread)
while rc > 0 or rc == LIBSSH2_ERROR_EAGAIN:
if rc == LIBSSH2_ERROR_EAGAIN:
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:110:29: Accessing Python global or builtin not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
with gil:
_wait_select(_sock, _session, None)
else:
ptr += rc
nread -= rc
rc = libssh2_sftp_write(_handle, ptr, nread)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:116:43: Coercion from Python not allowed without the GIL
Error compiling Cython file:
------------------------------------------------------------
...
with gil:
_wait_select(_sock, _session, None)
else:
ptr += rc
nread -= rc
rc = libssh2_sftp_write(_handle, ptr, nread)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:116:43: Calling gil-requiring function not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
with gil:
_wait_select(_sock, _session, None)
else:
ptr += rc
nread -= rc
rc = libssh2_sftp_write(_handle, ptr, nread)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:116:25: Accessing Python global or builtin not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
with gil:
_wait_select(_sock, _session, None)
else:
ptr += rc
nread -= rc
rc = libssh2_sftp_write(_handle, ptr, nread)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:116:43: Constructing Python tuple not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
with gil:
_wait_select(_sock, _session, None)
else:
ptr += rc
nread -= rc
rc = libssh2_sftp_write(_handle, ptr, nread)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:116:44: Converting to Python object not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
with gil:
_wait_select(_sock, _session, None)
else:
ptr += rc
nread -= rc
rc = libssh2_sftp_write(_handle, ptr, nread)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:116:53: Converting to Python object not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
with gil:
_wait_select(_sock, _session, None)
else:
ptr += rc
nread -= rc
rc = libssh2_sftp_write(_handle, ptr, nread)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:116:58: Converting to Python object not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
cbuf = <char *>malloc(sizeof(char) * buffer_maxlen)
if cbuf is NULL:
with gil:
raise MemoryError
try:
rc = libssh2_sftp_read(_handle, cbuf, buffer_maxlen)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:148:34: Coercion from Python not allowed without the GIL
Error compiling Cython file:
------------------------------------------------------------
...
cbuf = <char *>malloc(sizeof(char) * buffer_maxlen)
if cbuf is NULL:
with gil:
raise MemoryError
try:
rc = libssh2_sftp_read(_handle, cbuf, buffer_maxlen)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:148:34: Calling gil-requiring function not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
cbuf = <char *>malloc(sizeof(char) * buffer_maxlen)
if cbuf is NULL:
with gil:
raise MemoryError
try:
rc = libssh2_sftp_read(_handle, cbuf, buffer_maxlen)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:148:17: Accessing Python global or builtin not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
cbuf = <char *>malloc(sizeof(char) * buffer_maxlen)
if cbuf is NULL:
with gil:
raise MemoryError
try:
rc = libssh2_sftp_read(_handle, cbuf, buffer_maxlen)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:148:34: Constructing Python tuple not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
cbuf = <char *>malloc(sizeof(char) * buffer_maxlen)
if cbuf is NULL:
with gil:
raise MemoryError
try:
rc = libssh2_sftp_read(_handle, cbuf, buffer_maxlen)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:148:35: Converting to Python object not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
cbuf = <char *>malloc(sizeof(char) * buffer_maxlen)
if cbuf is NULL:
with gil:
raise MemoryError
try:
rc = libssh2_sftp_read(_handle, cbuf, buffer_maxlen)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:148:44: Converting to Python object not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
cbuf = <char *>malloc(sizeof(char) * buffer_maxlen)
if cbuf is NULL:
with gil:
raise MemoryError
try:
rc = libssh2_sftp_read(_handle, cbuf, buffer_maxlen)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:148:50: Converting to Python object not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
if cbuf is NULL:
with gil:
raise MemoryError
try:
rc = libssh2_sftp_read(_handle, cbuf, buffer_maxlen)
while rc > 0 or rc == LIBSSH2_ERROR_EAGAIN:
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:149:31: Truth-testing Python object not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
if cbuf is NULL:
with gil:
raise MemoryError
try:
rc = libssh2_sftp_read(_handle, cbuf, buffer_maxlen)
while rc > 0 or rc == LIBSSH2_ERROR_EAGAIN:
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:149:31: Operation not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
if cbuf is NULL:
with gil:
raise MemoryError
try:
rc = libssh2_sftp_read(_handle, cbuf, buffer_maxlen)
while rc > 0 or rc == LIBSSH2_ERROR_EAGAIN:
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:149:28: Converting to Python object not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
if cbuf is NULL:
with gil:
raise MemoryError
try:
rc = libssh2_sftp_read(_handle, cbuf, buffer_maxlen)
while rc > 0 or rc == LIBSSH2_ERROR_EAGAIN:
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:149:34: Accessing Python global or builtin not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
with gil:
raise MemoryError
try:
rc = libssh2_sftp_read(_handle, cbuf, buffer_maxlen)
while rc > 0 or rc == LIBSSH2_ERROR_EAGAIN:
if rc == LIBSSH2_ERROR_EAGAIN:
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:150:22: Truth-testing Python object not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
with gil:
raise MemoryError
try:
rc = libssh2_sftp_read(_handle, cbuf, buffer_maxlen)
while rc > 0 or rc == LIBSSH2_ERROR_EAGAIN:
if rc == LIBSSH2_ERROR_EAGAIN:
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:150:22: Operation not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
with gil:
raise MemoryError
try:
rc = libssh2_sftp_read(_handle, cbuf, buffer_maxlen)
while rc > 0 or rc == LIBSSH2_ERROR_EAGAIN:
if rc == LIBSSH2_ERROR_EAGAIN:
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:150:19: Converting to Python object not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
with gil:
raise MemoryError
try:
rc = libssh2_sftp_read(_handle, cbuf, buffer_maxlen)
while rc > 0 or rc == LIBSSH2_ERROR_EAGAIN:
if rc == LIBSSH2_ERROR_EAGAIN:
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:150:25: Accessing Python global or builtin not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
with gil:
_wait_select(_sock, _session, None)
elif fwrite(cbuf, 1, rc, local_fh) < 0:
with gil:
raise IOError
rc = libssh2_sftp_read(_handle, cbuf, buffer_maxlen)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:156:38: Coercion from Python not allowed without the GIL
Error compiling Cython file:
------------------------------------------------------------
...
with gil:
_wait_select(_sock, _session, None)
elif fwrite(cbuf, 1, rc, local_fh) < 0:
with gil:
raise IOError
rc = libssh2_sftp_read(_handle, cbuf, buffer_maxlen)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:156:38: Calling gil-requiring function not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
with gil:
_wait_select(_sock, _session, None)
elif fwrite(cbuf, 1, rc, local_fh) < 0:
with gil:
raise IOError
rc = libssh2_sftp_read(_handle, cbuf, buffer_maxlen)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:156:21: Accessing Python global or builtin not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
with gil:
_wait_select(_sock, _session, None)
elif fwrite(cbuf, 1, rc, local_fh) < 0:
with gil:
raise IOError
rc = libssh2_sftp_read(_handle, cbuf, buffer_maxlen)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:156:38: Constructing Python tuple not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
with gil:
_wait_select(_sock, _session, None)
elif fwrite(cbuf, 1, rc, local_fh) < 0:
with gil:
raise IOError
rc = libssh2_sftp_read(_handle, cbuf, buffer_maxlen)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:156:39: Converting to Python object not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
with gil:
_wait_select(_sock, _session, None)
elif fwrite(cbuf, 1, rc, local_fh) < 0:
with gil:
raise IOError
rc = libssh2_sftp_read(_handle, cbuf, buffer_maxlen)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:156:48: Converting to Python object not allowed without gil
Error compiling Cython file:
------------------------------------------------------------
...
with gil:
_wait_select(_sock, _session, None)
elif fwrite(cbuf, 1, rc, local_fh) < 0:
with gil:
raise IOError
rc = libssh2_sftp_read(_handle, cbuf, buffer_maxlen)
^
------------------------------------------------------------
pssh/native/_ssh2.pyx:156:54: Converting to Python object not allowed without gil
building 'pssh.native._ssh2' extension
creating build/temp.macosx-10.9-x86_64-3.6
creating build/temp.macosx-10.9-x86_64-3.6/pssh
creating build/temp.macosx-10.9-x86_64-3.6/pssh/native
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/dan/.pyenv/versions/miniconda3-latest/envs/streamparse3/include -arch x86_64 -I/Users/dan/.pyenv/versions/miniconda3-latest/envs/streamparse3/include -arch x86_64 -Ilibssh2/include -I/Users/dan/.pyenv/versions/miniconda3-latest/envs/streamparse3/include/python3.6m -c pssh/native/_ssh2.c -o build/temp.macosx-10.9-x86_64-3.6/pssh/native/_ssh2.o -O3
pssh/native/_ssh2.c:1:2: error: Do not use this file, it is the result of a failed Cython compilation.
#error Do not use this file, it is the result of a failed Cython compilation.
^
1 error generated.
error: command 'gcc' failed with exit status 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.