<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>using python pc ble library on ubuntu 22.04</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105629/using-python-pc-ble-library-on-ubuntu-22-04</link><description>Hi, 
 I&amp;#39;m trying using ble pc library on python 3.8 script running on Ubuntu 22.04 and I get : 
 &amp;quot;ImportError: No module named pc_ble_driver_py.observers&amp;quot; 
 
 while installed : 
 
 nrfutil &amp;gt;= 6.1.0 
 pc-ble-driver-py &amp;gt;= 0.16.0</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Nov 2023 10:07:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105629/using-python-pc-ble-library-on-ubuntu-22-04" /><item><title>RE: using python pc ble library on ubuntu 22.04</title><link>https://devzone.nordicsemi.com/thread/455486?ContentTypeID=1</link><pubDate>Tue, 14 Nov 2023 10:07:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c1c638c-035f-43b9-ab29-a435742644f9</guid><dc:creator>asaf</dc:creator><description>&lt;p&gt;found the issue , apparently the main script trigger that script externally and didn&amp;#39;t run in the venv, now all works , thank you,&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using python pc ble library on ubuntu 22.04</title><link>https://devzone.nordicsemi.com/thread/455364?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2023 15:01:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73ff89f0-f541-4860-9669-3bcd8de017a6</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;There seems like there is an configuration/path issue of some sorts, then. Do you have &amp;quot;&lt;code&gt;/home/asafm/.local/lib/python3.8/site-packages&lt;/code&gt;&amp;quot; in the path if you check like this?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="python"&gt;import sys
sys.path&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using python pc ble library on ubuntu 22.04</title><link>https://devzone.nordicsemi.com/thread/455334?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2023 14:21:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae79fd0e-7c55-49d5-9e31-79e020f9ba65</guid><dc:creator>asaf</dc:creator><description>&lt;p&gt;yes ,&amp;nbsp; pip installed and tested on 2 PCs with the same result.&lt;/p&gt;
&lt;p&gt;--------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;Installing:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;python3.8 -m pip install pc-ble-driver-py&lt;br /&gt;Defaulting to user installation because normal site-packages is not writeable&lt;br /&gt;Requirement already satisfied: pc-ble-driver-py in /home/asafm/.local/lib/python3.8/site-packages (0.17.0)&lt;br /&gt;Requirement already satisfied: cryptography in /home/asafm/.local/lib/python3.8/site-packages (from pc-ble-driver-py) (36.0.2)&lt;br /&gt;Requirement already satisfied: wrapt in /home/asafm/.local/lib/python3.8/site-packages (from pc-ble-driver-py) (1.12.1)&lt;br /&gt;Requirement already satisfied: cffi&amp;gt;=1.12 in /home/asafm/.local/lib/python3.8/site-packages (from cryptography-&amp;gt;pc-ble-driver-py) (1.15.0)&lt;br /&gt;Requirement already satisfied: pycparser in /home/asafm/.local/lib/python3.8/site-packages (from cffi&amp;gt;=1.12-&amp;gt;cryptography-&amp;gt;pc-ble-driver-py) (2.21)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;--------------------------------------------------------------&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Running:&lt;/p&gt;
&lt;p&gt;python3.8 production.py &lt;br /&gt;Scan new MAC for node ... 112233445566&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; Unit flash finished , starting Tests ...&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Traceback (most recent call last):&lt;br /&gt; File &amp;quot;/home/asafm/Dev/Projects/Baccara/production/Node/Tester/spider_tester_main.py&amp;quot;, line 2, in &amp;lt;module&amp;gt;&lt;br /&gt; from ble_ctrl import *&lt;br /&gt; File &amp;quot;/home/asafm/Dev/Projects/Baccara/production/Node/Tester/ble_ctrl.py&amp;quot;, line 5, in &amp;lt;module&amp;gt;&lt;br /&gt; from pc_ble_driver_py.observers import *&lt;br /&gt;ImportError: No module named pc_ble_driver_py.observers&lt;/p&gt;
&lt;p&gt;&lt;span&gt;--------------------------------------------------------------&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using python pc ble library on ubuntu 22.04</title><link>https://devzone.nordicsemi.com/thread/455291?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2023 12:57:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57454111-1f80-4ac4-a998-be724d3a601c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;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?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>