Bonjour a tous.
Depuis hier et une petite maj en buster 10.13 , le port a disparu Enfin je pense que c’est au meme moment sans en etre totalement sur
J’avais relancer les dépendances mais beaucoup d’erreurs, je ne suis pas expert mais j’ai avancé
J’avais :
- Logging error ---
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/pip/_internal/utils/logging.py", line 177, in emit
self.console.print(renderable, overflow="ignore", crop=False, style=style)
File "/usr/local/lib/pyth ....
Résolu avec mise a jour de certains paquets
Puis j’ai eu ça
Using cached PyBluez-0.23.tar.gz (97 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
error in PyBluez setup command: use_2to3 is invalid.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Résolu avec ModuleNotFoundError: No module named 'bluetooth' - #3 par vedrine
Et maintenant il me reste ce log
********************************************************
* Installation des dépendances *
********************************************************
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://security.debian.org buster/updates InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Hit:4 http://deb.debian.org/debian buster-backports InRelease
Hit:5 https://download.docker.com/linux/debian buster InRelease
Hit:6 https://deb.nodesource.com/node_16.x buster InRelease
Hit:7 http://armbian.systemonachip.net/apt buster InRelease
Hit:8 https://packagecloud.io/ookla/speedtest-cli/debian buster InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
libatlas-base-dev is already the newest version (3.10.3-8).
build-essential is already the newest version (12.6).
libffi-dev is already the newest version (3.2.1-9).
libopenjp2-7 is already the newest version (2.3.0-2+deb10u2).
libssl-dev is already the newest version (1.1.1n-0+deb10u3).
python3-serial is already the newest version (3.4-4).
python3-setuptools is already the newest version (40.8.0-1).
python3-dev is already the newest version (3.7.3-1).
python3-pyudev is already the newest version (0.21.0-1).
python3-requests is already the newest version (2.21.0-1).
libtiff5 is already the newest version (4.1.0+git191117-2~deb10u4).
rfkill is already the newest version (2.33.1-0.1).
bluetooth is already the newest version (5.50-1.2~deb10u3).
libbluetooth-dev is already the newest version (5.50-1.2~deb10u3).
The following packages were automatically installed and are no longer required:
libhttp-parser2.8 libstd-rust-1.41 libstd-rust-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
libhttp-parser2.8 libstd-rust-1.41 libstd-rust-dev
Use 'sudo apt autoremove' to remove them.
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, 3 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/1191 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 ... 64200 files and directories currently installed.)
Preparing to unpack .../python3_3.7.3-1_arm64.deb ...
running python pre-rtupdate hooks for python3.7...
Unpacking python3 (3.7.3-1) over (3.7.3-1) ...
Preparing to unpack .../bluez_5.50-1.2~deb10u3_arm64.deb ...
Unpacking bluez (5.50-1.2~deb10u3) over (5.50-1.2~deb10u3) ...
Preparing to unpack .../python3-pip_18.1-5_all.deb ...
Unpacking python3-pip (18.1-5) over (18.1-5) ...
Setting up python3 (3.7.3-1) ...
running python rtupdate hooks for python3.7...
running python post-rtupdate hooks for python3.7...
Setting up bluez (5.50-1.2~deb10u3) ...
Setting up python3-pip (18.1-5) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for dbus (1.12.24-0+deb10u1) ...
Processing triggers for systemd (241-7~deb10u8) ...
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
Requirement already satisfied: setuptools in /usr/local/lib/python3.7/dist-packages (62.1.0)
Collecting setuptools
Using cached setuptools-65.5.1-py3-none-any.whl (1.2 MB)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
Installing collected packages: setuptools
Attempting uninstall: setuptools
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
Found existing installation: setuptools 62.1.0
Uninstalling setuptools-62.1.0:
Successfully uninstalled setuptools-62.1.0
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
Successfully installed setuptools-65.5.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
Reading package lists...
Building dependency tree...
Reading state information...
git is already the newest version (1:2.20.1-2+deb10u4).
libglib2.0-dev is already the newest version (2.58.3-2+deb10u4).
The following packages were automatically installed and are no longer required:
libhttp-parser2.8 libstd-rust-1.41 libstd-rust-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
Requirement already satisfied: pyudev in /usr/local/lib/python3.7/dist-packages (0.24.0)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
Requirement already satisfied: pyserial in /usr/local/lib/python3.7/dist-packages (3.5)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
Requirement already satisfied: requests in /usr/local/lib/python3.7/dist-packages (2.28.1)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.7/dist-packages (from requests) (1.26.12)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.7/dist-packages (from requests) (3.4)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/dist-packages (from requests) (2022.9.24)
Requirement already satisfied: charset-normalizer<3,>=2 in /usr/local/lib/python3.7/dist-packages (from requests) (2.1.1)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
Collecting pybluez
Using cached PyBluez-0.23.tar.gz (97 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: pybluez
Building wheel for pybluez (setup.py): started
Building wheel for pybluez (setup.py): finished with status 'done'
Created wheel for pybluez: filename=PyBluez-0.23-cp37-cp37m-linux_aarch64.whl size=135275 sha256=f6c361ff8c2a8fdd3328a36f5e087cace977d351ea9c2ee635bc83fdf84d1dbd
Stored in directory: /root/.cache/pip/wheels/39/be/41/6131e56f5ebb01a081ccd99cbe62159b4bf00e78a187a15dbd
Successfully built pybluez
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
Installing collected packages: pybluez
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
Successfully installed pybluez-0.23
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
Requirement already satisfied: pillow in /usr/local/lib/python3.7/dist-packages (9.1.1)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
Requirement already satisfied: numpy in /usr/local/lib/python3.7/dist-packages (1.21.4)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
Requirement already satisfied: bluepy in /usr/local/lib/python3.7/dist-packages (1.3.0)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
Cloning into 'bluepy'...
running build
running build_py
creating build
creating build/lib
creating build/lib/bluepy
copying bluepy/thingy52.py -> build/lib/bluepy
copying bluepy/sensortag.py -> build/lib/bluepy
copying bluepy/scanner.py -> build/lib/bluepy
copying bluepy/scan_fuzz.py -> build/lib/bluepy
copying bluepy/get_services.py -> build/lib/bluepy
copying bluepy/btle.py -> build/lib/bluepy
copying bluepy/blescan.py -> build/lib/bluepy
copying bluepy/__init__.py -> build/lib/bluepy
copying bluepy/uuids.json -> build/lib/bluepy
copying bluepy/bluez-src.tgz -> build/lib/bluepy
copying bluepy/bluepy-helper.c -> build/lib/bluepy
copying bluepy/Makefile -> build/lib/bluepy
/usr/local/lib/python3.7/dist-packages/setuptools/dist.py:774: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
% (opt, underscore_opt)
running install
Working dir is /tmp/bluepy
execute make -C ./bluepy clean
execute make -C bluepy -j1
running build
running build_py
copying bluepy/bluepy-helper -> build/lib/bluepy
running install_lib
copying build/lib/bluepy/bluepy-helper -> /usr/lib/python3.7/site-packages/bluepy
copying build/lib/bluepy/Makefile -> /usr/lib/python3.7/site-packages/bluepy
copying build/lib/bluepy/bluepy-helper.c -> /usr/lib/python3.7/site-packages/bluepy
copying build/lib/bluepy/bluez-src.tgz -> /usr/lib/python3.7/site-packages/bluepy
copying build/lib/bluepy/uuids.json -> /usr/lib/python3.7/site-packages/bluepy
copying build/lib/bluepy/__init__.py -> /usr/lib/python3.7/site-packages/bluepy
copying build/lib/bluepy/blescan.py -> /usr/lib/python3.7/site-packages/bluepy
copying build/lib/bluepy/btle.py -> /usr/lib/python3.7/site-packages/bluepy
copying build/lib/bluepy/get_services.py -> /usr/lib/python3.7/site-packages/bluepy
copying build/lib/bluepy/scan_fuzz.py -> /usr/lib/python3.7/site-packages/bluepy
copying build/lib/bluepy/scanner.py -> /usr/lib/python3.7/site-packages/bluepy
copying build/lib/bluepy/sensortag.py -> /usr/lib/python3.7/site-packages/bluepy
copying build/lib/bluepy/thingy52.py -> /usr/lib/python3.7/site-packages/bluepy
byte-compiling /usr/lib/python3.7/site-packages/bluepy/__init__.py to __init__.cpython-37.pyc
byte-compiling /usr/lib/python3.7/site-packages/bluepy/blescan.py to blescan.cpython-37.pyc
byte-compiling /usr/lib/python3.7/site-packages/bluepy/btle.py to btle.cpython-37.pyc
byte-compiling /usr/lib/python3.7/site-packages/bluepy/get_services.py to get_services.cpython-37.pyc
byte-compiling /usr/lib/python3.7/site-packages/bluepy/scan_fuzz.py to scan_fuzz.cpython-37.pyc
byte-compiling /usr/lib/python3.7/site-packages/bluepy/scanner.py to scanner.cpython-37.pyc
byte-compiling /usr/lib/python3.7/site-packages/bluepy/sensortag.py to sensortag.cpython-37.pyc
byte-compiling /usr/lib/python3.7/site-packages/bluepy/thingy52.py to thingy52.cpython-37.pyc
running install_egg_info
running egg_info
creating bluepy.egg-info
writing bluepy.egg-info/PKG-INFO
writing dependency_links to bluepy.egg-info/dependency_links.txt
writing entry points to bluepy.egg-info/entry_points.txt
writing top-level names to bluepy.egg-info/top_level.txt
writing manifest file 'bluepy.egg-info/SOURCES.txt'
reading manifest file 'bluepy.egg-info/SOURCES.txt'
adding license file 'LICENSE.txt'
writing manifest file 'bluepy.egg-info/SOURCES.txt'
removing '/usr/lib/python3.7/site-packages/bluepy-1.1.4-py3.7.egg-info' (and everything under it)
Copying bluepy.egg-info to /usr/lib/python3.7/site-packages/bluepy-1.1.4-py3.7.egg-info
running install_scripts
Installing blescan script to /usr/bin
Installing sensortag script to /usr/bin
Installing thingy52 script to /usr/bin
/usr/local/lib/python3.7/dist-packages/setuptools/dist.py:774: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
% (opt, underscore_opt)
/usr/local/lib/python3.7/dist-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
Requirement already satisfied: cryptography in /usr/local/lib/python3.7/dist-packages (2.6.1)
Requirement already satisfied: six>=1.4.1 in /usr/local/lib/python3.7/dist-packages (from cryptography) (1.16.0)
Requirement already satisfied: cffi!=1.11.3,>=1.8 in /usr/local/lib/python3.7/dist-packages (from cryptography) (1.15.1)
Requirement already satisfied: asn1crypto>=0.21.0 in /usr/local/lib/python3.7/dist-packages (from cryptography) (1.5.1)
Requirement already satisfied: pycparser in /usr/local/lib/python3.7/dist-packages (from cffi!=1.11.3,>=1.8->cryptography) (2.21)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
Requirement already satisfied: pycrypto in /usr/local/lib/python3.7/dist-packages (2.6.1)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
WARNING: Ignoring invalid distribution - (/usr/local/lib/python3.7/dist-packages)
********************************************************
* Installation terminée *
********************************************************
Je n’ai pas envie de faire nimporte quoi mais je ne sais plus quoi faire
Pour info :
~$ hciconfig
hci0: Type: Primary Bus: UART
BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0
DOWN
RX bytes:7 acl:0 sco:0 events:0 errors:0
TX bytes:4 acl:0 sco:0 commands:1 errors:0
Atlas en 4.3.10
Module bluetooth interne
Plugin : version stable a jour Version 2021-04-06 16:26:29