Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install pyads to aarch64 failed #365

Closed
toillone opened this issue Nov 16, 2023 · 2 comments
Closed

pip install pyads to aarch64 failed #365

toillone opened this issue Nov 16, 2023 · 2 comments

Comments

@toillone
Copy link

toillone commented Nov 16, 2023

Hello

I encontered an issue after installed pyads using pip.

pi@RevPi106327:~ $ pip install pyads
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
WARNING: Keyring is skipped due to an exception: Failed to create the collection: Prompt dismissed..
Collecting pyads
  Using cached https://www.piwheels.org/simple/pyads/pyads-3.3.9-py3-none-any.whl (330 kB)
Installing collected packages: pyads
Successfully installed pyads-3.3.9
pi@RevPi106327:~ $ python
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyads
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/pi/.local/lib/python3.9/site-packages/pyads/__init__.py", line 10, in <module>
    from .ads import (
  File "/home/pi/.local/lib/python3.9/site-packages/pyads/ads.py", line 49, in <module>
    from .pyads_ex import (
  File "/home/pi/.local/lib/python3.9/site-packages/pyads/pyads_ex.py", line 89, in <module>
    _adsDLL = ctypes.CDLL(adslib)
  File "/usr/lib/python3.9/ctypes/__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /home/pi/.local/lib/python3.9/site-packages/pyads/adslib.so: wrong ELF class: ELFCLASS32
pi@RevPi106327:~ $ arch
aarch64

After followed tutorial to install from sources it worked well

@chrisbeardy
Copy link
Collaborator

looks like the wheel being built for the pi builds with 32bit adslib.so. Will need to get this fixed. In the meantime you will need to build from source. sorry.

@chrisbeardy
Copy link
Collaborator

possibly fixed by #363 will close and reopen if reported again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants