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

No module named 'TheengsDecoder._decoder' on ARMv6 #13

Open
kickouille opened this issue Aug 25, 2024 · 0 comments
Open

No module named 'TheengsDecoder._decoder' on ARMv6 #13

kickouille opened this issue Aug 25, 2024 · 0 comments

Comments

@kickouille
Copy link

Hello,

I tried running the Docker image on an old Raspberry Pi with an ARMv6 processor, but container fails to start with following error:

Traceback (most recent call last):
  File "<frozen runpy>", line 189, in _run_module_as_main
  File "<frozen runpy>", line 148, in _get_module_details
  File "<frozen runpy>", line 112, in _get_module_details
  File "/opt/venv/lib/python3.11/site-packages/TheengsGateway/__init__.py", line 24, in <module>
    from .ble_gateway import run
  File "/opt/venv/lib/python3.11/site-packages/TheengsGateway/ble_gateway.py", line 45, in <module>
    from TheengsDecoder import decodeBLE
  File "/opt/venv/lib/python3.11/site-packages/TheengsDecoder/__init__.py", line 1, in <module>
    from ._decoder import decodeBLE  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'TheengsDecoder._decoder'

Please note that this error comes from my own image build, as I tried different versions of base OS and Theengs Gateway versions.
The error also comes with the official image theengs/gateway:latest.

I notices that debian based python images don't have direct support for ARMv6, but for ARMv5, and it seems this one is chosen as an alternative, being the "closest" toi the target platform.
My guess is that is offers limited compatibility, and when it comes to compilation (which happens when creating the image), binaries may be incompatible.

At this point, if we want true ARMv6 support, we may look at the Alpine based version of Python. I will try to create a new Dockerfile with this distro.

For the time being, ARMv6 platform should be removed from Docker Hub. I didn't test the other platforms, except AMD64 which seems to be running fine.

Regards,

Yanik

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

1 participant