Bonsoir à tous,
quelqu'un à t'il réussit à mettre une antenne blea sur un pi3 sur lequel est déjà installé octoprint ?
Je n'y arrive pas : l'installation des dépendances aboutit sur des erreurs d'installation des paquets python (cf. log d'install des dépendances ci-dessous). Je pense que c'est lié à l'architecture des dossiers dans la distribution octoprint, l'install.sh ne doit pas s'exécuter correctement.
comment puis-je m'y prendre pour installer manuellement ce fichier ?
Code : Tout sélectionner
Ign:3 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages
Get:3 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages [16.4 MB]
Fetched 16.7 MB in 6min 16s (44.2 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version (12.3).
libffi-dev is already the newest version (3.2.1-6).
libssl-dev is already the newest version (1.1.0k-1~deb9u1).
python3-dev is already the newest version (3.5.3-1).
python3-pyudev is already the newest version (0.21.0-1).
python3-requests is already the newest version (2.12.4-1).
python3-serial is already the newest version (3.2.1-1).
python3-setuptools is already the newest version (33.1.1-1).
rfkill is already the newest version (0.5-1).
bluetooth is already the newest version (5.43-2+rpt2+deb9u2).
libbluetooth-dev is already the newest version (5.43-2+rpt2+deb9u2).
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 11 not upgraded.
Need to get 0 B/142 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 46121 files and directories currently installed.)
Preparing to unpack .../python3-pip_9.0.1-2+rpt2_all.deb ...
Unpacking python3-pip (9.0.1-2+rpt2) over (9.0.1-2+rpt2) ...
Setting up python3-pip (9.0.1-2+rpt2) ...
Processing triggers for man-db (2.7.6.1-2) ...
Collecting setuptools
Downloading https://www.piwheels.org/simple/setuptools/setuptools-41.1.0.post1-py2.py3-none-any.whl (576kB)
Installing collected packages: setuptools
Found existing installation: setuptools 41.0.1
Uninstalling setuptools-41.0.1:
Successfully uninstalled setuptools-41.0.1
Successfully installed setuptools-41.1.0.post1
Reading package lists...
Building dependency tree...
Reading state information...
git is already the newest version (1:2.11.0-3+deb9u4).
libglib2.0-dev is already the newest version (2.50.3-2).
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
Requirement already satisfied: pyudev in /usr/lib/python3/dist-packages
Requirement already satisfied: pyserial in /usr/lib/python3/dist-packages
Requirement already satisfied: requests in /usr/lib/python3/dist-packages
Please do not run git as root, your regular user account is enough :)
If you need to run git with root rights for some other application than
what comes preinstalled on this image you can remove this sanity check:
sudo rm /root/bin/git
You might have to restart your login session after doing that.
/home/pi/blead/resources/install_apt.sh: line 25: cd: /tmp/bluepy: No such file or directory
python3: can't open file 'setup.py': [Errno 2] No such file or directory
python3: can't open file 'setup.py': [Errno 2] No such file or directory
rm: cannot remove '/tmp/bluepy': No such file or directory
Requirement already satisfied: cryptography in /usr/lib/python3/dist-packages
Requirement already satisfied: pycrypto in /usr/lib/python3/dist-packages
********************************************************
* Installation terminée *
********************************************************
et le log blea de l'antenne :
Code : Tout sélectionner
[sudo] password for pi: Traceback (most recent call last):
File "/home/pi/blead/resources/blead/blead.py", line 26, in <module>
from bluepy.btle import Scanner, DefaultDelegate
ImportError: No module named 'bluepy'