rshk / python-libxdo

Python bindings for libxdo
BSD 3-Clause "New" or "Revised" License
76 stars 19 forks source link

undefined symbol: xdo_new #21

Closed Atherz97 closed 5 years ago

Atherz97 commented 5 years ago

Xdo builds fine on my Ubuntu-based machine, however transporting it to Manjaro/Arch has been a different story.

Trying both

sudo pip install python-libxdo
# and
sudo pip install https://github.com/rshk/python-libxdo/tarball/master

The program crashes upon importing:

  File "voice_assistant.py", line 12, in <module>
    from xdo import Xdo
  File "/usr/lib/python3.7/site-packages/xdo/__init__.py", line 10, in <module>
    from .xdo import libX11 as _libX11
  File "/usr/lib/python3.7/site-packages/xdo/xdo.py", line 380, in <module>
    libxdo.xdo_new.argtypes = (c_char_p,)
  File "/usr/lib/python3.7/ctypes/__init__.py", line 369, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python3.7/ctypes/__init__.py", line 374, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: python: undefined symbol: xdo_new

Ran with python 3, 3.7 and with 2 there seems to be no SpeechRecognition package (and it's going out of date anyways...)

Atherz97 commented 5 years ago

Had to install xdotools