Hi,
I'm trying using ble pc library on python 3.8 script running on Ubuntu 22.04 and I get :
"ImportError: No module named pc_ble_driver_py.observers"
while installed :
Hi,
I'm trying using ble pc library on python 3.8 script running on Ubuntu 22.04 and I get :
"ImportError: No module named pc_ble_driver_py.observers"
while installed :
Hi,
I do not have this issue with buntu 22.04 on my end, and it seems that pc-ble-driver-py is missing or not found. Did you install pc-ble-driver-py with PIP for the python version you are using?
yes , pip installed and tested on 2 PCs with the same result.
--------------------------------------------------------------
Installing:
python3.8 -m pip install pc-ble-driver-py
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pc-ble-driver-py in /home/asafm/.local/lib/python3.8/site-packages (0.17.0)
Requirement already satisfied: cryptography in /home/asafm/.local/lib/python3.8/site-packages (from pc-ble-driver-py) (36.0.2)
Requirement already satisfied: wrapt in /home/asafm/.local/lib/python3.8/site-packages (from pc-ble-driver-py) (1.12.1)
Requirement already satisfied: cffi>=1.12 in /home/asafm/.local/lib/python3.8/site-packages (from cryptography->pc-ble-driver-py) (1.15.0)
Requirement already satisfied: pycparser in /home/asafm/.local/lib/python3.8/site-packages (from cffi>=1.12->cryptography->pc-ble-driver-py) (2.21)
--------------------------------------------------------------
Running:
python3.8 production.py
Scan new MAC for node ... 112233445566
Unit flash finished , starting Tests ...
Traceback (most recent call last):
File "/home/asafm/Dev/Projects/Baccara/production/Node/Tester/spider_tester_main.py", line 2, in <module>
from ble_ctrl import *
File "/home/asafm/Dev/Projects/Baccara/production/Node/Tester/ble_ctrl.py", line 5, in <module>
from pc_ble_driver_py.observers import *
ImportError: No module named pc_ble_driver_py.observers
--------------------------------------------------------------
There seems like there is an configuration/path issue of some sorts, then. Do you have "/home/asafm/.local/lib/python3.8/site-packages
" in the path if you check like this?
import sys sys.path
found the issue , apparently the main script trigger that script externally and didn't run in the venv, now all works , thank you,