Closed sbraciulis closed 7 years ago
It seems like something changed with bluepy, glib2-devel is not installed by default. I'll update the README with the following for installation, please let me know if that works for you :
On most Debian systems :
sudo apt-get install libglib2.0-dev
sudo pip3 install bluepy
sudo pip3 install git+https://github.com/Betree/pyMagicBlue.git
For Fedora :
sudo dnf install glib2-devel
sudo pip3 install bluepy
sudo pip3 install git+https://github.com/Betree/pyMagicBlue.git
Thanks! Looks like it works now!
I get this error when I try to install magicblue and I use python 3 and trying to install it on a Linux Mint:
~ $ sudo pip install git+https://github.com/Betree/pyMagicBlue.git The directory '/home/user/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/home/user/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Collecting git+https://github.com/Betree/pyMagicBlue.git Cloning https://github.com/Betree/pyMagicBlue.git to /tmp/pip-9ISemw-build Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in
File "/tmp/pip-9ISemw-build/setup.py", line 2, in
from magicblue import version
File "magicblue/init.py", line 8, in
from magicblue.magicbluelib import MagicBlue
File "magicblue/magicbluelib.py", line 12, in
import bluepy.btle
ImportError: No module named bluepy.btle
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-9ISemw-build/