mbientlab / PyWarble

MetaWear Python SDK - Linux / Windows - Wrapper for Warble C library
https://mbientlab.com
Other
6 stars 2 forks source link

Pip install from PyPI fails on v1.2.7 #12

Open keltaklo opened 2 years ago

keltaklo commented 2 years ago

The pip install for version 1.2.7 fails on ubuntu when collected from PyPI. The error appears to be caused by a bad permission on the warble-1.2.7/clibs/warble/bin/generate_version.sh file.

Pip Error ``` Building wheels for collected packages: warble Building wheel for warble (setup.py) ... error ERROR: Command errored out with exit status 1: command: /home/murray/modules/sensor/.venv_test/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8_i_9_cb/warble_3eaa7412cf674d2dbfe59b06ee28d90d/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8_i_9_cb/warble_3eaa7412cf674d2dbfe59b06ee28d90d/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-nt5y8wy2 cwd: /tmp/pip-install-8_i_9_cb/warble_3eaa7412cf674d2dbfe59b06ee28d90d/ Complete output (38 lines): running bdist_wheel running build running build_py INFO:root:Compiling Warble C++ SDK for Linux (args = ['make', '-C', '/tmp/pip-install-8_i_9_cb/warble_3eaa7412cf674d2dbfe59b06ee28d90d/clibs/warble', '-j8'], cwd = /tmp/pip-install-8_i_9_cb/warble_3eaa7412cf674d2dbfe59b06ee28d90d) make: Entering directory '/tmp/pip-install-8_i_9_cb/warble_3eaa7412cf674d2dbfe59b06ee28d90d/clibs/warble' make: execvp: ./bin/generate_version.sh: Permission denied Makefile:11: version.mk: No such file or directory make: *** No rule to make target 'version.mk'. Stop. make: Leaving directory '/tmp/pip-install-8_i_9_cb/warble_3eaa7412cf674d2dbfe59b06ee28d90d/clibs/warble' Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-8_i_9_cb/warble_3eaa7412cf674d2dbfe59b06ee28d90d/setup.py", line 119, in 'Programming Language :: Python :: 3', File "/home/murray/modules/sensor/.venv_test/lib/python3.7/site-packages/setuptools/__init__.py", line 153, in setup return distutils.core.setup(**attrs) File "/usr/lib/python3.7/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/home/murray/modules/sensor/.venv_test/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 299, in run self.run_command('build') File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/usr/lib/python3.7/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/tmp/pip-install-8_i_9_cb/warble_3eaa7412cf674d2dbfe59b06ee28d90d/setup.py", line 85, in run root=root File "/tmp/pip-install-8_i_9_cb/warble_3eaa7412cf674d2dbfe59b06ee28d90d/setup.py", line 25, in _execute raise RuntimeError(kwargs["error_msg"]) RuntimeError: Failed to compile libwarble.so ---------------------------------------- ERROR: Failed building wheel for warble Running setup.py clean for warble Failed to build warble Installing collected packages: warble Running setup.py install for warble ... error ERROR: Command errored out with exit status 1: command: /home/murray/modules/sensor/.venv_test/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8_i_9_cb/warble_3eaa7412cf674d2dbfe59b06ee28d90d/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8_i_9_cb/warble_3eaa7412cf674d2dbfe59b06ee28d90d/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-82nm7f77/install-record.txt --single-version-externally-managed --compile --install-headers /home/murray/modules/sensor/.venv_test/include/site/python3.7/warble cwd: /tmp/pip-install-8_i_9_cb/warble_3eaa7412cf674d2dbfe59b06ee28d90d/ Complete output (40 lines): running install running build running build_py INFO:root:Compiling Warble C++ SDK for Linux (args = ['make', '-C', '/tmp/pip-install-8_i_9_cb/warble_3eaa7412cf674d2dbfe59b06ee28d90d/clibs/warble', '-j8'], cwd = /tmp/pip-install-8_i_9_cb/warble_3eaa7412cf674d2dbfe59b06ee28d90d) make: Entering directory '/tmp/pip-install-8_i_9_cb/warble_3eaa7412cf674d2dbfe59b06ee28d90d/clibs/warble' make: execvp: ./bin/generate_version.sh: Permission denied Makefile:11: version.mk: No such file or directory make: *** No rule to make target 'version.mk'. Stop. make: Leaving directory '/tmp/pip-install-8_i_9_cb/warble_3eaa7412cf674d2dbfe59b06ee28d90d/clibs/warble' Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-8_i_9_cb/warble_3eaa7412cf674d2dbfe59b06ee28d90d/setup.py", line 119, in 'Programming Language :: Python :: 3', File "/home/murray/sensor/.venv_test/lib/python3.7/site-packages/setuptools/__init__.py", line 153, in setup return distutils.core.setup(**attrs) File "/usr/lib/python3.7/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/home/murray/modules/sensor/.venv_test/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run return orig.install.run(self) File "/usr/lib/python3.7/distutils/command/install.py", line 589, in run self.run_command('build') File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/usr/lib/python3.7/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/tmp/pip-install-8_i_9_cb/warble_3eaa7412cf674d2dbfe59b06ee28d90d/setup.py", line 85, in run root=root File "/tmp/pip-install-8_i_9_cb/warble_3eaa7412cf674d2dbfe59b06ee28d90d/setup.py", line 25, in _execute raise RuntimeError(kwargs["error_msg"]) RuntimeError: Failed to compile libwarble.so ```

Issue only seems to be present in PyPI, cloning this project and installing from the directory works fine.