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

Metawear pip module configured for any platform but libmetawear.so built for linux 32-bit #21

Open
ribbles opened this issue Oct 12, 2021 · 3 comments

Comments

@ribbles
Copy link

ribbles commented Oct 12, 2021

The metawear pip package targets any platform, yet within the package is libmetawear.so, which targets Linux x86 32bit platform. Thus on a 64-bit Linux distro I get the error:

OSError: /usr/local/lib/python3.7/dist-packages/mbientlab/metawear/libmetawear.so: wrong ELF class: ELFCLASS32

Additional information:

pip3 install metawear warble
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting metawear
  Using cached https://www.piwheels.org/simple/metawear/metawear-1.0.2-py3-none-any.whl (242 kB)
Collecting warble
  Using cached warble-1.2.6-py3-none-any.whl
Requirement already satisfied: requests in /usr/local/lib/python3.7/dist-packages (from metawear) (2.25.1)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/dist-packages (from requests->metawear) (2020.12.5)
Requirement already satisfied: idna<3,>=2.5 in /usr/local/lib/python3.7/dist-packages (from requests->metawear) (2.10)
Requirement already satisfied: chardet<5,>=3.0.2 in /usr/local/lib/python3.7/dist-packages (from requests->metawear) (4.0.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.7/dist-packages (from requests->metawear) (1.26.3)
Installing collected packages: warble, metawear
Successfully installed metawear-1.0.2 warble-1.2.6
WARNING: You are using pip version 21.0.1; however, version 21.3 is available.
You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
# file /usr/local/lib/python3.7/dist-packages/mbientlab/metawear/libmetawear.so
/usr/local/lib/python3.7/dist-packages/mbientlab/metawear/libmetawear.so: ELF 32-bit LSB pie executable, ARM, EABI5 version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=1324e46b2db0e506ecaba87f0d0ac6c3deb3724d, stripped
@ribbles
Copy link
Author

ribbles commented Oct 12, 2021

I notice that warble doesn't have the same issue, or it was built for x64:

# file /usr/local/lib/python3.7/dist-packages/mbientlab/warble/libwarble.so
/usr/local/lib/python3.7/dist-packages/mbientlab/warble/libwarble.so: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=5f133ed6a58508ba4aeb3a6b683f00da831d5e1b, stripped

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
@ribbles and others