Mattia Rizzolo wrote on Tue, Oct 11, 2016 at 23:53:07 +0000:
> On Mon, Oct 10, 2016 at 02:34:04PM +0100, Mihai - Catalin Stefan wrote:
> > AttributeError: /usr/bin/python3: undefined symbol: archive_errno

I get the same on a pristine sid sbuild chroot (slightly outdated) with:

# apt-get install --no-install-recommends python3-pip
# apt-get install --no-install-recommends python3-setuptools
# pip3 install libarchive-c
# python3 -c 'import libarchive; print(42)'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python3.5/dist-packages/libarchive/__init__.py", line 1, 
in <module>
    from .entry import ArchiveEntry
  File "/usr/local/lib/python3.5/dist-packages/libarchive/entry.py", line 6, in 
<module>
    from . import ffi
  File "/usr/local/lib/python3.5/dist-packages/libarchive/ffi.py", line 97, in 
<module>
    errno = ffi('errno', [c_archive_p], c_int)
  File "/usr/local/lib/python3.5/dist-packages/libarchive/ffi.py", line 84, in 
ffi
    f = getattr(libarchive, 'archive_'+name)
  File "/usr/lib/python3.5/ctypes/__init__.py", line 360, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python3.5/ctypes/__init__.py", line 365, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: python3: undefined symbol: archive_errno

Note, that's without involving diffoscope at all.

Cheers,

Daniel

P.S. I also did 'apt-get install tmux; LC_ALL=C.UTF-8 tmux' in there.
(I don't expect it was relevant, but just in case..)

Reply via email to