MetaWear-SDK-Python icon indicating copy to clipboard operation
MetaWear-SDK-Python copied to clipboard

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

Open ribbles opened this issue 3 years ago • 3 comments

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 avatar Oct 12 '21 01:10 ribbles

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

ribbles avatar Oct 12 '21 01:10 ribbles