Control: reassign 977894 python3-xdo Control: affects 977894 + impass Control: severity critical Control: retitle 977894 python3-xdo: fails with python3.9 due to bad libc linkage
thanks for the diagnosis, Joey! this looks like a change between the ctypes module between python 3.8 and 3.9. I'll fix it in python3-xdo, and hopefully that will resolve your problem. --dkg On Wed 2020-12-23 20:46:42 -0400, Joey Hess wrote: > Yes, I get the same backtrace from both the 2 line script and the > modified impass: > > joey@darkstar:~>impass gui > Traceback (most recent call last): > File "/usr/bin/impass", line 11, in <module> > load_entry_point('impass==0.12', 'console_scripts', 'impass')() > File "/usr/lib/python3/dist-packages/impass/__main__.py", line 620, in main > func(args) > File "/usr/lib/python3/dist-packages/impass/__main__.py", line 350, in gui > import xdo > File "/usr/lib/python3/dist-packages/xdo/__init__.py", line 8, in <module> > from ._xdo import libxdo as _libxdo > File "/usr/lib/python3/dist-packages/xdo/_xdo.py", line 14, in <module> > libc = ctypes.CDLL(ctypes.util.find_library('libc')) > File "/usr/lib/python3.9/ctypes/util.py", line 341, in find_library > _get_soname(_findLib_gcc(name)) or _get_soname(_findLib_ld(name)) > File "/usr/lib/python3.9/ctypes/util.py", line 147, in _findLib_gcc > if not _is_elf(file): > File "/usr/lib/python3.9/ctypes/util.py", line 99, in _is_elf > with open(filename, 'br') as thefile: > FileNotFoundError: [Errno 2] No such file or directory: b'liblibc.a' > > And so I modified /usr/lib/python3/dist-packages/xdo/_xdo.py as follows, > which fixed the problem: > > - libc = ctypes.CDLL(ctypes.util.find_library('libc')) > + libc = ctypes.CDLL(ctypes.util.find_library('c'))
signature.asc
Description: PGP signature