IanHarvey / bluepy

Python interface to Bluetooth LE on Linux
Other
1.6k stars 491 forks source link

Installing bluepy from sources fails on the latest version of rpi. #442

Open tzachi-dar opened 3 years ago

tzachi-dar commented 3 years ago

I have tried following the latest instructions and install for rpi3. The helper and the py files were not updated.

[maybe it is time for a new release?]

Workaround: - manually copy the files.

sudo cp bluepy/*.py /usr/local/lib/python3.7/dist-packages/bluepy/ sudo cp ./build/lib.linux-armv7l-2.7/bluepy/bluepy-helper /usr/local/lib/python3.7/dist-packages/bluepy/bluepy-helper

Log of the install on the 2 version (this is the part that I was able to get, the beginning was overwritten ):

copying build/lib.linux-armv7l-2.7/bluepy/bluepy-helper.c -> build/bdist.linux-armv7l/egg/bluepy copying build/lib.linux-armv7l-2.7/bluepy/sensortag.py -> build/bdist.linux-armv7l/egg/bluepy copying build/lib.linux-armv7l-2.7/bluepy/thingy52.py -> build/bdist.linux-armv7l/egg/bluepy copying build/lib.linux-armv7l-2.7/bluepy/get_services.py -> build/bdist.linux-armv7l/egg/bluepy copying build/lib.linux-armv7l-2.7/bluepy/scan_fuzz.py -> build/bdist.linux-armv7l/egg/bluepy copying build/lib.linux-armv7l-2.7/bluepy/scanner.py -> build/bdist.linux-armv7l/egg/bluepy copying build/lib.linux-armv7l-2.7/bluepy/btle.py -> build/bdist.linux-armv7l/egg/bluepy copying build/lib.linux-armv7l-2.7/bluepy/init.py -> build/bdist.linux-armv7l/egg/bluepy copying build/lib.linux-armv7l-2.7/bluepy/uuids.json -> build/bdist.linux-armv7l/egg/bluepy copying build/lib.linux-armv7l-2.7/bluepy/blescan.py -> build/bdist.linux-armv7l/egg/bluepy byte-compiling build/bdist.linux-armv7l/egg/bluepy/sensortag.py to sensortag.pyc byte-compiling build/bdist.linux-armv7l/egg/bluepy/thingy52.py to thingy52.pyc byte-compiling build/bdist.linux-armv7l/egg/bluepy/get_services.py to get_services.pyc byte-compiling build/bdist.linux-armv7l/egg/bluepy/scan_fuzz.py to scan_fuzz.pyc byte-compiling build/bdist.linux-armv7l/egg/bluepy/scanner.py to scanner.pyc byte-compiling build/bdist.linux-armv7l/egg/bluepy/btle.py to btle.pyc byte-compiling build/bdist.linux-armv7l/egg/bluepy/init.py to init.pyc byte-compiling build/bdist.linux-armv7l/egg/bluepy/blescan.py to blescan.pyc creating build/bdist.linux-armv7l/egg/EGG-INFO copying bluepy.egg-info/PKG-INFO -> build/bdist.linux-armv7l/egg/EGG-INFO copying bluepy.egg-info/SOURCES.txt -> build/bdist.linux-armv7l/egg/EGG-INFO copying bluepy.egg-info/dependency_links.txt -> build/bdist.linux-armv7l/egg/EGG-INFO copying bluepy.egg-info/entry_points.txt -> build/bdist.linux-armv7l/egg/EGG-INFO copying bluepy.egg-info/top_level.txt -> build/bdist.linux-armv7l/egg/EGG-INFO zip_safe flag not set; analyzing archive contents... bluepy.btle: module references file creating 'dist/bluepy-1.3.0-py2.7.egg' and adding 'build/bdist.linux-armv7l/egg' to it removing 'build/bdist.linux-armv7l/egg' (and everything under it) Processing bluepy-1.3.0-py2.7.egg removing '/usr/local/lib/python2.7/dist-packages/bluepy-1.3.0-py2.7.egg' (and everything under it) creating /usr/local/lib/python2.7/dist-packages/bluepy-1.3.0-py2.7.egg Extracting bluepy-1.3.0-py2.7.egg to /usr/local/lib/python2.7/dist-packages bluepy 1.3.0 is already the active version in easy-install.pth Installing blescan script to /usr/local/bin Installing thingy52 script to /usr/local/bin Installing sensortag script to /usr/local/bin

Installed /usr/local/lib/python2.7/dist-packages/bluepy-1.3.0-py2.7.egg Processing dependencies for bluepy==1.3.0 Finished processing dependencies for bluepy==1.3.0