mbientlab / pywarble Goto Github PK
View Code? Open in Web Editor NEWMetaWear Python SDK - Linux / Windows - Wrapper for Warble C library
Home Page: https://mbientlab.com
License: Other
MetaWear Python SDK - Linux / Windows - Wrapper for Warble C library
Home Page: https://mbientlab.com
License: Other
Log follows. Advice would be much appreciated.
❯ pip install warble --verbose
Using pip 20.2.4 from /home/myself/.pyenv/versions/3.6.12/envs/project/lib/python3.6/site-packages/pip (python 3.6)
Non-user install because user site-packages disabled
Created temporary directory: /tmp/pip-ephem-wheel-cache-_eoch6l8
Created temporary directory: /tmp/pip-req-tracker-bi_ehpv1
Initialized build tracking at /tmp/pip-req-tracker-bi_ehpv1
Created build tracker: /tmp/pip-req-tracker-bi_ehpv1
Entered build tracker: /tmp/pip-req-tracker-bi_ehpv1
Created temporary directory: /tmp/pip-install-jm8yzv3k
1 location(s) to search for versions of warble:
* https://pypi.org/simple/warble/
Fetching project page and analyzing links: https://pypi.org/simple/warble/
Getting page https://pypi.org/simple/warble/
Found index url https://pypi.org/simple
Looking up "https://pypi.org/simple/warble/" in the cache
Request header has "max_age" as 0, cache bypassed
Starting new HTTPS connection (1): pypi.org:443
https://pypi.org:443 "GET /simple/warble/ HTTP/1.1" 304 0
Found link https://files.pythonhosted.org/packages/fe/f1/857750727a1e0f640f658fb3a61ad4d1b920f22a45ad0825093508ff57d3/warble-1.0.0.tar.gz#sha256=3f176e16ebce58e224ed2f56de3405a43311baf2cc302fb9dffb96d4724c5121 (from https://pypi.org/simple/warble/), version: 1.0.0
Found link https://files.pythonhosted.org/packages/07/6a/bd90b1258fdde100bbc9e5b0740c6c2c9b4c7825d2f808dc6ff8c8487862/warble-1.0.2.tar.gz#sha256=687558a38d4a2bdb04bd32609add8a4f6bc5b2ee5154b17a46a31880c382713e (from https://pypi.org/simple/warble/), version: 1.0.2
Found link https://files.pythonhosted.org/packages/e5/b4/fe5235a7a8b36085356ef93b48aee1dee095f39e412b9f56ffa1c5b30bb3/warble-1.0.6.tar.gz#sha256=d3840077e9a56b44879e7463287c030cf382569c222f372c46e04123685863fd (from https://pypi.org/simple/warble/) (requires-python:>=2.7), version: 1.0.6
Found link https://files.pythonhosted.org/packages/be/1c/ea39f895b5d913952e3b1d486a731151088b123d270620742636ad19f7e2/warble-1.0.7.tar.gz#sha256=27db3e9ec7c0be3897b1de09e6f1a7de6a1021d6a25dd1740dc12599b826a814 (from https://pypi.org/simple/warble/) (requires-python:>=2.7), version: 1.0.7
Found link https://files.pythonhosted.org/packages/03/02/accca5d97dc2504b0ca9f2e16b2bc1a21ce98e6ad026e6a8e1976351a6c6/warble-1.0.10.tar.gz#sha256=61fc06f880f5c69664e690b379a3cdd2b1de79732c309dbf1c9dd0b3b17c6c94 (from https://pypi.org/simple/warble/) (requires-python:>=2.7), version: 1.0.10
Found link https://files.pythonhosted.org/packages/84/6b/b46e72840edad09c1effc01f20e31eb7e5281ac16415bebfdf267c70c05c/warble-1.1.0.tar.gz#sha256=81625638c802f7378be33e4beb8430eb4acc3595a0b2e9aad71471c266856590 (from https://pypi.org/simple/warble/) (requires-python:>=2.7), version: 1.1.0
Found link https://files.pythonhosted.org/packages/5e/ac/56e3b66c494c367de6ac2a78524e67dc536b16352350e35565955a799464/warble-1.2.0.tar.gz#sha256=e831ca465f1a6ff60a071f707fd847c282248d7268795816e121d530d52b3ebe (from https://pypi.org/simple/warble/) (requires-python:>=2.7), version: 1.2.0
Given no hashes to check 7 links for project 'warble': discarding no candidates
Using version 1.2.0 (newest of versions: 1.0.0, 1.0.2, 1.0.6, 1.0.7, 1.0.10, 1.1.0, 1.2.0)
Collecting warble
Created temporary directory: /tmp/pip-unpack-v7hzcrvt
Looking up "https://files.pythonhosted.org/packages/5e/ac/56e3b66c494c367de6ac2a78524e67dc536b16352350e35565955a799464/warble-1.2.0.tar.gz" in the cache
Current age based on date: 69
Ignoring unknown cache-control directive: immutable
Freshness lifetime from max-age: 365000000
The response is "fresh", returning cached response
365000000 > 69
Using cached warble-1.2.0.tar.gz (1.7 MB)
Added warble from https://files.pythonhosted.org/packages/5e/ac/56e3b66c494c367de6ac2a78524e67dc536b16352350e35565955a799464/warble-1.2.0.tar.gz#sha256=e831ca465f1a6ff60a071f707fd847c282248d7268795816e121d530d52b3ebe to build tracker '/tmp/pip-req-tracker-bi_ehpv1'
Running setup.py (path:/tmp/pip-install-jm8yzv3k/warble/setup.py) egg_info for package warble
Created temporary directory: /tmp/pip-pip-egg-info-b114wnil
Running command python setup.py egg_info
running egg_info
creating /tmp/pip-pip-egg-info-b114wnil/warble.egg-info
writing /tmp/pip-pip-egg-info-b114wnil/warble.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-b114wnil/warble.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-pip-egg-info-b114wnil/warble.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-b114wnil/warble.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-pip-egg-info-b114wnil/warble.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'clibs/warble/build'
no previously-included directories found matching 'clibs/warble/dist'
no previously-included directories found matching 'clibs/warble/vs2017/*/Debug'
no previously-included directories found matching 'clibs/warble/vs2017/*/Release'
no previously-included directories found matching 'clibs/warble/vs2017/*/x64'
no previously-included directories found matching 'clibs/warble/vs2017/.vs'
warning: no previously-included files matching 'config.log' found under directory 'clibs/warble/deps/libblepp'
warning: no previously-included files matching 'config.status' found under directory 'clibs/warble/deps/libblepp'
warning: no previously-included files matching 'generated' found under directory 'clibs/warble/deps/libblepp'
warning: no previously-included files matching 'libblepp.pc' found under directory 'clibs/warble/deps/libblepp'
warning: no previously-included files matching 'Makefile' found under directory 'clibs/warble/deps/libblepp'
warning: no previously-included files matching '*.git' found anywhere in distribution
warning: no previously-included files matching '*.gitmodules' found anywhere in distribution
warning: no previously-included files matching '*.gitignore' found anywhere in distribution
warning: no previously-included files matching '__pycache__' found anywhere in distribution
warning: no previously-included files matching '*.py[co]' found anywhere in distribution
warning: no previously-included files matching '*.d' found anywhere in distribution
warning: no previously-included files matching '*.o' found anywhere in distribution
warning: no previously-included files matching '*.so*' found anywhere in distribution
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.a' found anywhere in distribution
writing manifest file '/tmp/pip-pip-egg-info-b114wnil/warble.egg-info/SOURCES.txt'
Source in /tmp/pip-install-jm8yzv3k/warble has version 1.2.0, which satisfies requirement warble fromhttps://files.pythonhosted.org/packages/5e/ac/56e3b66c494c367de6ac2a78524e67dc536b16352350e35565955a799464/warble-1.2.0.tar.gz#sha256=e831ca465f1a6ff60a071f707fd847c282248d7268795816e121d530d52b3ebe
Removed warble from https://files.pythonhosted.org/packages/5e/ac/56e3b66c494c367de6ac2a78524e67dc536b16352350e35565955a799464/warble-1.2.0.tar.gz#sha256=e831ca465f1a6ff60a071f707fd847c282248d7268795816e121d530d52b3ebe from build tracker '/tmp/pip-req-tracker-bi_ehpv1'
Using legacy 'setup.py install' for warble, since package 'wheel' is not installed.
Installing collected packages: warble
Created temporary directory: /tmp/pip-record-cfvscc8v
Running command /home/myself/.pyenv/versions/3.6.12/envs/project/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jm8yzv3k/warble/setup.py'"'"'; __file__='"'"'/tmp/pip-install-jm8yzv3k/warble/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-cfvscc8v/install-record.txt --single-version-externally-managed --compile --install-headers /home/myself/.pyenv/versions/3.6.12/envs/project/include/site/python3.6/warble
running install
running build
running build_py
make: Entering directory '/tmp/pip-install-jm8yzv3k/warble/clibs/warble'
mkdir -p build/x64/release/src/warble/cpp
g++ -MMD -MP -MF "build/x64/release/src/warble/cpp/scanner.d" -c -o build/x64/release/src/warble/cpp/scanner.o -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -DWARBLE_DLL -DWARBLE_DLL_EXPORT -Isrc -O3 -DAPI_BLEPP -Ideps/libblepp -m64 src/warble/cpp/scanner.cpp
g++ -MMD -MP -MF "build/x64/release/src/warble/cpp/win10_api.d" -c -o build/x64/release/src/warble/cpp/win10_api.o -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -DWARBLE_DLL -DWARBLE_DLL_EXPORT -Isrc -O3 -DAPI_BLEPP -Ideps/libblepp -m64 src/warble/cpp/win10_api.cpp
g++ -MMD -MP -MF "build/x64/release/src/warble/cpp/gatt.d" -c -o build/x64/release/src/warble/cpp/gatt.o -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -DWARBLE_DLL -DWARBLE_DLL_EXPORT -Isrc -O3 -DAPI_BLEPP -Ideps/libblepp -m64 src/warble/cpp/gatt.cpp
g++ -MMD -MP -MF "build/x64/release/src/warble/cpp/blepp_api.d" -c -o build/x64/release/src/warble/cpp/blepp_api.o -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -DWARBLE_DLL -DWARBLE_DLL_EXPORT -Isrc -O3 -DAPI_BLEPP -Ideps/libblepp -m64 src/warble/cpp/blepp_api.cpp
g++ -MMD -MP -MF "build/x64/release/src/warble/cpp/win10_scanner.d" -c -o build/x64/release/src/warble/cpp/win10_scanner.o -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -DWARBLE_DLL -DWARBLE_DLL_EXPORT -Isrc -O3 -DAPI_BLEPP -Ideps/libblepp -m64 src/warble/cpp/win10_scanner.cpp
g++ -MMD -MP -MF "build/x64/release/src/warble/cpp/blepp_utils.d" -c -o build/x64/release/src/warble/cpp/blepp_utils.o -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -DWARBLE_DLL -DWARBLE_DLL_EXPORT -Isrc -O3 -DAPI_BLEPP -Ideps/libblepp -m64 src/warble/cpp/blepp_utils.cpp
g++ -MMD -MP -MF "build/x64/release/src/warble/cpp/gattchar.d" -c -o build/x64/release/src/warble/cpp/gattchar.o -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -DWARBLE_DLL -DWARBLE_DLL_EXPORT -Isrc -O3 -DAPI_BLEPP -Ideps/libblepp -m64 src/warble/cpp/gattchar.cpp
g++ -MMD -MP -MF "build/x64/release/src/warble/cpp/blepp_scanner.d" -c -o build/x64/release/src/warble/cpp/blepp_scanner.o -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -DWARBLE_DLL -DWARBLE_DLL_EXPORT -Isrc -O3 -DAPI_BLEPP -Ideps/libblepp -m64 src/warble/cpp/blepp_scanner.cpp
g++ -MMD -MP -MF "build/x64/release/src/warble/cpp/lib.d" -c -o build/x64/release/src/warble/cpp/lib.o -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -DWARBLE_DLL -DWARBLE_DLL_EXPORT -Isrc -O3 -DAPI_BLEPP -Ideps/libblepp -m64 src/warble/cpp/lib.cpp
cd deps/libblepp; LDFLAGS=-m64 ./configure
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking if compiler flag -Wall works... yes
checking if compiler flag -Wextra works... yes
checking if compiler flag -W works... yes
checking if compiler flag -O3 works... yes
checking if compiler flag -ggdb works... yes
checking whether g++ supports C++14 features by default... yes
checking for pkg-config... /usr/bin/pkg-config
checking for sed... sed
checking for pkg-config library dir... ${exec_prefix}/lib/pkgconfig
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking bluetooth/bluetooth.h usability... yes
checking bluetooth/bluetooth.h presence... yes
checking for bluetooth/bluetooth.h... yes
checking for library containing hci_open_dev... -lbluetooth
checking boost/optional.hpp usability... yes
checking boost/optional.hpp presence... yes
checking for boost/optional.hpp... yes
checking if compiler flag -fPIC works... yes
configure: creating ./config.status
config.status: creating libblepp.pc
config.status: creating Makefile
make -C deps/libblepp -j
make[1]: Entering directory '/tmp/pip-install-jm8yzv3k/warble/clibs/warble/deps/libblepp'
g++ -o src/att.o -c src/att.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF src/att.d
g++ -o src/uuid.o -c src/uuid.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF src/uuid.d
g++ -o src/bledevice.o -c src/bledevice.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MFsrc/bledevice.d
g++ -o src/att_pdu.o -c src/att_pdu.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF src/att_pdu.d
g++ -o src/pretty_printers.o -c src/pretty_printers.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF src/pretty_printers.d
g++ -o src/blestatemachine.o -c src/blestatemachine.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF src/blestatemachine.d
g++ -o src/float.o -c src/float.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF src/float.d
g++ -o src/logging.o -c src/logging.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF src/logging.d
g++ -o src/lescan.o -c src/lescan.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF src/lescan.d
g++ -o examples/lescan.o -c examples/lescan.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP-MF examples/lescan.d
g++ -o examples/blelogger.o -c examples/blelogger.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF examples/blelogger.d
g++ -o examples/bluetooth.o -c examples/bluetooth.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF examples/bluetooth.d
g++ -o examples/lescan_simple.o -c examples/lescan_simple.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF examples/lescan_simple.d
g++ -o examples/temperature.o -c examples/temperature.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF examples/temperature.d
g++ -o examples/read_device_name.o -c examples/read_device_name.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF examples/read_device_name.d
g++ -o examples/write.o -c examples/write.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF examples/write.d
src/att.cc: In function ‘uint16_t BLEPP::enc_write_resp(uint8_t*, size_t)’:
src/att.cc:657:47: warning: unused parameter ‘len’ [-Wunused-parameter]
657 | uint16_t enc_write_resp(uint8_t *pdu, size_t len)
| ~~~~~~~^~~
g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[1]: *** [Makefile:161: src/lescan.o] Error 1
make[1]: *** Waiting for unfinished jobs....
g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[1]: *** [Makefile:161: examples/bluetooth.o] Error 1
Hello,
Is there posibility to get RSSI value from already connected BLE device? In noble implementation there is updateRssi method but I don't see any for Python or C++.
BR,
Dawid Śliwa
Hello,
I am trying to connect artik710 dev kit with the metamotionC.
It requires the warble package to be installed as a package dependency.
I have c++ compiler that supports c++14, boost and blueZ installed on artik710
Please find the below file compilation file:
CompilationErr.txt
Thank You,
Akshay
Hi!
We use 4 MBient MetaMotionR devices at the same time on an AARCH64 Linaro Cortex A53. We used Python2 and Python3 interpreters recently with the Python APIs to connect to MMRs. After we observed unsatisfactory performance on our SoM, we decided to switch to PyPy2 or PyPy3 as a Python interpreter, to speed up code execution.
It nearly works out of the box. Both PyPy2 (taken from aptitude) or PyPy3 built for AARCH64, installed from TGZ results in a Segmentation Fault right after connection would be handled at this code:
PyWarble/mbientlab/warble/gatt.py
Line 60 in 02806b1
This means that the connection is successfully made to the MMR using gatt
by the warble
C library.
We noticed that ctypes
support is not full in PyPy. PyPy uses cffi
for interfacing with C code.
We are interested in moving to PyPy and would like to ask for advice in regard to fixing the pywarble
library for PyPy.
pywarble
with cffi
interfacing?pywarble
implementation that uses ctypes
?Thank you for your kind help!
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.
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 "<string>", line 1, in <module>
File "/tmp/pip-install-8_i_9_cb/warble_3eaa7412cf674d2dbfe59b06ee28d90d/setup.py", line 119, in <module>
'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 "<string>", line 1, in <module>
File "/tmp/pip-install-8_i_9_cb/warble_3eaa7412cf674d2dbfe59b06ee28d90d/setup.py", line 119, in <module>
'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.
This line incorrectly identifies aarch64 machines as x86 resulting in failed pip installations.
Line 15 in 6070300
root@6fae1cfdd167:/# uname -a
Linux 6fae1cfdd167 4.15.0-1045-aws #47-Ubuntu SMP Fri Aug 2 13:51:14 UTC 2019 aarch64 aarch64 aarch64 GNU/Linux
root@6fae1cfdd167:/# pip install warble
Collecting warble
Using cached https://files.pythonhosted.org/packages/5e/ac/56e3b66c494c367de6ac2a78524e67dc536b16352350e35565955a799464/warble-1.2.0.tar.gz
Building wheels for collected packages: warble
Running setup.py bdist_wheel for warble ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-L0xP_3/warble/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/tmpNQV4Dmpip-wheel- --python-tag cp27:
running bdist_wheel
running build
running build_py
make: Entering directory '/tmp/pip-build-L0xP_3/warble/clibs/warble'
mkdir -p build/arm/release/src/warble/cpp
g++ -MMD -MP -MF "build/arm/release/src/warble/cpp/gattchar.d" -c -o build/arm/release/src/warble/cpp/gattchar.o -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -DWARBLE_DLL -DWARBLE_DLL_EXPORT -Isrc -O3 -DAPI_BLEPP -Ideps/libblepp -marm src/warble/cpp/gattchar.cpp
g++ -MMD -MP -MF "build/arm/release/src/warble/cpp/blepp_utils.d" -c -o build/arm/release/src/warble/cpp/blepp_utils.o -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -DWARBLE_DLL -DWARBLE_DLL_EXPORT -Isrc -O3 -DAPI_BLEPP -Ideps/libblepp -marm src/warble/cpp/blepp_utils.cpp
g++ -MMD -MP -MF "build/arm/release/src/warble/cpp/blepp_scanner.d" -c -o build/arm/release/src/warble/cpp/blepp_scanner.o -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -DWARBLE_DLL -DWARBLE_DLL_EXPORT -Isrc -O3 -DAPI_BLEPP -Ideps/libblepp -marm src/warble/cpp/blepp_scanner.cpp
g++ -MMD -MP -MF "build/arm/release/src/warble/cpp/win10_scanner.d" -c -o build/arm/release/src/warble/cpp/win10_scanner.o -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -DWARBLE_DLL -DWARBLE_DLL_EXPORT -Isrc -O3 -DAPI_BLEPP -Ideps/libblepp -marm src/warble/cpp/win10_scanner.cpp
g++ -MMD -MP -MF "build/arm/release/src/warble/cpp/gatt.d" -c -o build/arm/release/src/warble/cpp/gatt.o -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -DWARBLE_DLL -DWARBLE_DLL_EXPORT -Isrc -O3 -DAPI_BLEPP -Ideps/libblepp -marm src/warble/cpp/gatt.cpp
g++ -MMD -MP -MF "build/arm/release/src/warble/cpp/blepp_api.d" -c -o build/arm/release/src/warble/cpp/blepp_api.o -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -DWARBLE_DLL -DWARBLE_DLL_EXPORT -Isrc -O3 -DAPI_BLEPP -Ideps/libblepp -marm src/warble/cpp/blepp_api.cpp
g++ -MMD -MP -MF "build/arm/release/src/warble/cpp/lib.d" -c -o build/arm/release/src/warble/cpp/lib.o -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -DWARBLE_DLL -DWARBLE_DLL_EXPORT -Isrc -O3 -DAPI_BLEPP -Ideps/libblepp -marm src/warble/cpp/lib.cpp
g++ -MMD -MP -MF "build/arm/release/src/warble/cpp/scanner.d" -c -o build/arm/release/src/warble/cpp/scanner.o -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -DWARBLE_DLL -DWARBLE_DLL_EXPORT -Isrc -O3 -DAPI_BLEPP -Ideps/libblepp -marm src/warble/cpp/scanner.cpp
g++ -MMD -MP -MF "build/arm/release/src/warble/cpp/win10_api.d" -c -o build/arm/release/src/warble/cpp/win10_api.o -std=c++14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Werror -DWARBLE_DLL -DWARBLE_DLL_EXPORT -Isrc -O3 -DAPI_BLEPP -Ideps/libblepp -marm src/warble/cpp/win10_api.cpp
cd deps/libblepp; LDFLAGS=-marm ./configure
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking if compiler flag -Wall works... yes
checking if compiler flag -Wextra works... yes
checking if compiler flag -W works... yes
checking if compiler flag -O3 works... yes
checking if compiler flag -ggdb works... yes
checking whether g++ supports C++14 features by default... yes
checking for pkg-config... /usr/bin/pkg-config
checking for sed... sed
checking for pkg-config library dir... ${exec_prefix}/lib/pkgconfig
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking bluetooth/bluetooth.h usability... yes
checking bluetooth/bluetooth.h presence... yes
checking for bluetooth/bluetooth.h... yes
checking for library containing hci_open_dev... -lbluetooth
checking boost/optional.hpp usability... yes
checking boost/optional.hpp presence... yes
checking for boost/optional.hpp... yes
checking if compiler flag -fPIC works... yes
configure: creating ./config.status
config.status: creating libblepp.pc
config.status: creating Makefile
make -C deps/libblepp -j
make[1]: Entering directory '/tmp/pip-build-L0xP_3/warble/clibs/warble/deps/libblepp'
g++ -o src/att.o -c src/att.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF src/att.d
g++ -o src/uuid.o -c src/uuid.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF src/uuid.d
g++ -o src/bledevice.o -c src/bledevice.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF src/bledevice.d
g++ -o src/att_pdu.o -c src/att_pdu.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF src/att_pdu.d
g++ -o src/pretty_printers.o -c src/pretty_printers.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF src/pretty_printers.d
g++ -o src/blestatemachine.o -c src/blestatemachine.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF src/blestatemachine.d
g++ -o src/float.o -c src/float.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF src/float.d
g++ -o src/logging.o -c src/logging.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF src/logging.d
g++ -o src/lescan.o -c src/lescan.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF src/lescan.d
g++ -o examples/lescan.o -c examples/lescan.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF examples/lescan.d
g++ -o examples/blelogger.o -c examples/blelogger.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF examples/blelogger.d
g++ -o examples/bluetooth.o -c examples/bluetooth.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF examples/bluetooth.d
g++ -o examples/lescan_simple.o -c examples/lescan_simple.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF examples/lescan_simple.d
g++ -o examples/temperature.o -c examples/temperature.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF examples/temperature.d
g++ -o examples/read_device_name.o -c examples/read_device_name.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF examples/read_device_name.d
g++ -o examples/write.o -c examples/write.cc -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. -MMD -MP -MF examples/write.d
src/att.cc: In function 'uint16_t BLEPP::enc_write_resp(uint8_t*, size_t)':
src/att.cc:657:47: warning: unused parameter 'len' [-Wunused-parameter]
uint16_t enc_write_resp(uint8_t *pdu, size_t len)
^~~
examples/bluetooth.cc: In function 'int main(int, char**)':
examples/bluetooth.cc:266:9: warning: unused variable 'result' [-Wunused-variable]
int result = select(gatt.socket() + 1, &read_set, &write_set, NULL, & tv);
^~~~~~
g++ -shared -o libble++.so.0.5 src/att.o src/uuid.o src/bledevice.o src/att_pdu.o src/pretty_printers.o src/blestatemachine.o src/float.o src/logging.o src/lescan.o -marm -lbluetooth
ar crvs libble++.a src/att.o src/uuid.o src/bledevice.o src/att_pdu.o src/pretty_printers.o src/blestatemachine.o src/float.o src/logging.o src/lescan.o
g++ -g -O2 -Wall -Wextra -W -O3 -ggdb -fPIC -I. tests/test_scan.cc src/att.o src/uuid.o src/bledevice.o src/att_pdu.o src/pretty_printers.o src/blestatemachine.o src/float.o src/logging.o src/lescan.o -o tests/test_scan.test -I . -marm -lbluetooth || { echo "echo 'Compile error!' ; return 126" > tests/test_scan.test ; chmod +x tests/test_scan.test; }
a - src/att.o
a - src/uuid.o
a - src/bledevice.o
a - src/att_pdu.o
a - src/pretty_printers.o
a - src/blestatemachine.o
a - src/float.o
a - src/logging.o
a - src/lescan.o
ranlib libble++.a
rm -f libble++.so.0
ln -s libble++.so.0.5 libble++.so.0
rm -f libble++.so
ln -s libble++.so.0 libble++.so
g++ -o examples/lescan examples/lescan.o -L. -lble++
g++ -o examples/blelogger examples/blelogger.o -L. -lble++
g++ -o examples/bluetooth examples/bluetooth.o -L. -lble++
g++ -o examples/lescan_simple examples/lescan_simple.o -L. -lble++
g++ -o examples/temperature examples/temperature.o -L. -lble++
g++ -o examples/read_device_name examples/read_device_name.o -L. -lble++
g++ -o examples/write examples/write.o -L. -lble++
tests/test_scan.test > tests/test_scan.result_ 2>&1 ; \
a=$? ;\
if [ $a != 0 ]; \
then \
if [ $a -ge 128 ] ; \
then \
echo Crash!! > tests/test_scan.result_ ; \
elif [ $a -ne 126 ] ;\
then \
echo Failed > tests/test_scan.result_ ; \
fi;\
else\
echo OK >> tests/test_scan.result_;\
fi
echo test_scan: `tail -1 tests/test_scan.result_` > tests/test_scan.result
cat tests/test_scan.result > tests/results
-------------- Test Results ---------------
test_scan: OK
-------------------------------------------
make[1]: Leaving directory '/tmp/pip-build-L0xP_3/warble/clibs/warble/deps/libblepp'
mkdir -p dist/release/lib/arm
g++ -o dist/release/lib/arm/libwarble.so.1.1.5 -s -shared -Wl,--soname,libwarble.so.1 -marm build/arm/release/src/warble/cpp/gattchar.o build/arm/release/src/warble/cpp/blepp_utils.o build/arm/release/src/warble/cpp/blepp_scanner.o build/arm/release/src/warble/cpp/win10_scanner.o build/arm/release/src/warble/cpp/gatt.o build/arm/release/src/warble/cpp/blepp_api.o build/arm/release/src/warble/cpp/lib.o build/arm/release/src/warble/cpp/scanner.o build/arm/release/src/warble/cpp/win10_api.o deps/libblepp/libble++.a -lbluetooth -lpthread
ln -sf libwarble.so.1.1.5 dist/release/lib/arm/libwarble.so.1
ln -sf libwarble.so.1 dist/release/lib/arm/libwarble.so
make: Leaving directory '/tmp/pip-build-L0xP_3/warble/clibs/warble'
error: [Errno 2] No such file or directory: '/tmp/pip-build-L0xP_3/warble/clibs/warble/dist/release/lib/x86'
----------------------------------------
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
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-L0xP_3/warble/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-kjDa4g-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
make: Entering directory '/tmp/pip-build-L0xP_3/warble/clibs/warble'
make: Nothing to be done for 'build'.
make: Leaving directory '/tmp/pip-build-L0xP_3/warble/clibs/warble'
error: [Errno 2] No such file or directory: '/tmp/pip-build-L0xP_3/warble/clibs/warble/dist/release/lib/x86'
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-L0xP_3/warble/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-kjDa4g-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-L0xP_3/warble/
Greetings!
We are trying to compile Your project via pip so as to use the Metawear-SDK-Python on a Raspberry Pi 3 B+.
By following the instructions in the downstream repository (ie: the Python SDK), we have encountered a problem in building the Warble package.
By use of pip to compile, we found that it tries to download the package posted on PythonHosted that actually has the already compiled .o files inside.
These files were compiled for X86-64 (information obtained by `file clibs/warble/deps/libblepp/src/att.o'), and therefore are not compatible with the ARM architecture of the Raspberry.
Given that these files are a dependency of the package, and that pip seems not to be configurable to first call make clean so as to ensure that the sources are recompiled, we ask for informations on how to install Your library for use in other packages.
We attach a file with the compilation result, so as to give a proper context for the problem we found.
tryinst1_err_1.txt
Thanks!
[This issue references the wrong one created as mbientlab/Warble#1 ]
hello, can you assist me with the steps required for the installation of this package. I'm rather new to python, but I do have experience with coding (c++). I want to install the metawear python sdk, but I can't seem to set up the correct environment for it's dependencies (PyWarble) as outlined in https://github.com/mbientlab/Warble
Thus far, I've installed Visual Studio 2017 along with the FCU Windows 10 SDK (10.0.16299.0) (included in desktop development with c++ ) and python, i.e. I selected it from the extra add-on options in the installer. After creating a python project, I selected view -> other windows -> python environments, and in the window -> packages. I'm able to install common packages, but I get errors when I try to install this one. The error I get is shown below. I believe I've follow all the instructions shown in the readme. Can you help me figure out how to set up the correct visual studio environment to begin using the metawear package. Thanks!
----- Installing 'warble' -----
Collecting warble
Using cached https://files.pythonhosted.org/packages/84/6b/b46e72840edad09c1effc01f20e31eb7e5281ac16415bebfdf267c70c05c/warble-1.1.0.tar.gz
Installing collected packages: warble
Running setup.py install for warble: started
Running setup.py install for warble: finished with status 'error'
Complete output from command "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\python.exe" -u -c "import setuptools, tokenize;file='C:\Users\eliez\AppData\Local\Temp\pip-install-d0k_nx3u\warble\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\eliez\AppData\Local\Temp\pip-record-iqs8d8jg\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
Microsoft (R) Build Engine version 4.7.3056.0
[Microsoft .NET Framework, version 4.0.30319.42000]
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 10/23/2018 6:39:10 PM.
Project "C:\Users\eliez\AppData\Local\Temp\pip-install-d0k_nx3u\warble\clibs\warble\vs2017\warble.vcxproj" on node 1 (default targets).
C:\Users\eliez\AppData\Local\Temp\pip-install-d0k_nx3u\warble\clibs\warble\vs2017\warble.vcxproj(56,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
Done Building Project "C:\Users\eliez\AppData\Local\Temp\pip-install-d0k_nx3u\warble\clibs\warble\vs2017\warble.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\Users\eliez\AppData\Local\Temp\pip-install-d0k_nx3u\warble\clibs\warble\vs2017\warble.vcxproj" (default target) (1) ->
C:\Users\eliez\AppData\Local\Temp\pip-install-d0k_nx3u\warble\clibs\warble\vs2017\warble.vcxproj(56,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.07
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\eliez\AppData\Local\Temp\pip-install-d0k_nx3u\warble\setup.py", line 93, in <module>
'Programming Language :: Python :: 3',
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\setuptools\__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\eliez\AppData\Local\Temp\pip-install-d0k_nx3u\warble\setup.py", line 50, in run
raise RuntimeError("Failed to compile warble.dll")
RuntimeError: Failed to compile warble.dll
----------------------------------------
Command ""C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\python.exe" -u -c "import setuptools, tokenize;file='C:\Users\eliez\AppData\Local\Temp\pip-install-d0k_nx3u\warble\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\eliez\AppData\Local\Temp\pip-record-iqs8d8jg\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\eliez\AppData\Local\Temp\pip-install-d0k_nx3u\warble
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
----- Failed to install 'warble' -----
Greetings!
This issue follows #1 in that it's a compilation error following the resolution of the other issue.
By using pip to compile the upstream Metawear-SDK-Python on a Raspberry Pi 3 B+, we found a problem in compiling the Warble package, as uploaded on PyPi.
By use of pip
to compile the upstream package, we found that the creation of the libble++ library throws an error since it tries to compile with the -m64 option, which on the Raspberry Pi is not defined.
This seems to be caused by the fact that the dependency on libblepp includes an already configured Makefile, which was made for a x86-64 architecture.
As before, we ask for Your help in building Your library for use as dependency of other packages.
We attach to this issue the compilation log and the Makefile found in the PyPi package. (The Makefile had to be renamed to Makefile.txt so as to circumvent the limitations of the file upload on GitHub)
compilation_error.txt
Makefile
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.