You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am unable to import the library on Python 2.6.6.
(.env)[0] 09:31:14 tripleee@sow:/tmp$ git clone https://github.com/dsoprea/PyEasyArchive.git
Cloning into PyEasyArchive...
remote: Counting objects: 367, done.
remote: Total 367 (delta 0), reused 0 (delta 0), pack-reused 367
Receiving objects: 100% (367/367), 23.01 MiB | 5.14 MiB/s, done.
Resolving deltas: 100% (198/198), done.
(.env)[0] 09:31:28 tripleee@sow:/tmp$ cd PyEasyArchive/
(.env)[0] 09:31:44 tripleee@sow:/tmp/PyEasyArchive$ nosetests
EE
======================================================================
ERROR: Failure: NameError (name 'c_ssize_t' is not defined)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/.env/lib/python2.6/site-packages/nose/loader.py", line 414, in loadTestsFromName
addr.filename, addr.module)
File "/var/tmp/.env/lib/python2.6/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/var/tmp/.env/lib/python2.6/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/tmp/PyEasyArchive/tests/test_create.py", line 5, in <module>
import libarchive.public
File "/tmp/PyEasyArchive/libarchive/public.py", line 1, in <module>
from libarchive.adapters.archive_read import \
File "/tmp/PyEasyArchive/libarchive/adapters/archive_read.py", line 7, in <module>
import libarchive.calls.archive_read
File "/tmp/PyEasyArchive/libarchive/calls/archive_read.py", line 4, in <module>
from libarchive.types.archive import *
File "/tmp/PyEasyArchive/libarchive/types/archive.py", line 3, in <module>
ARCHIVE_WRITE_CALLBACK = CFUNCTYPE(c_ssize_t, c_void_p, c_void_p, POINTER(c_void_p), c_size_t)
NameError: name 'c_ssize_t' is not defined
-------------------- >> begin captured logging << --------------------
libarchive.library: DEBUG: Using library: [libarchive.so]
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: Failure: NameError (name 'c_ssize_t' is not defined)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/.env/lib/python2.6/site-packages/nose/loader.py", line 414, in loadTestsFromName
addr.filename, addr.module)
File "/var/tmp/.env/lib/python2.6/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/var/tmp/.env/lib/python2.6/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/tmp/PyEasyArchive/tests/test_read.py", line 5, in <module>
import libarchive.public
File "/tmp/PyEasyArchive/libarchive/public.py", line 1, in <module>
from libarchive.adapters.archive_read import \
File "/tmp/PyEasyArchive/libarchive/adapters/archive_read.py", line 7, in <module>
import libarchive.calls.archive_read
File "/tmp/PyEasyArchive/libarchive/calls/archive_read.py", line 4, in <module>
from libarchive.types.archive import *
File "/tmp/PyEasyArchive/libarchive/types/archive.py", line 3, in <module>
ARCHIVE_WRITE_CALLBACK = CFUNCTYPE(c_ssize_t, c_void_p, c_void_p, POINTER(c_void_p), c_size_t)
NameError: name 'c_ssize_t' is not defined
----------------------------------------------------------------------
Ran 2 tests in 0.046s
FAILED (errors=2)
I am unable to import the library on Python 2.6.6.
Incidentally, e.g. http://nullege.com/codes/search/ctypes.c_ssize_t seems to suggest using the following idiom;
With that, I am able to get slightly further in loading the library, but not enough to actually use it.
The text was updated successfully, but these errors were encountered: