Hi smuview developers,

I am trying to get smuview to control some custom serial devices I have using pyserial. I know the serial strings I want to send to them.

When I do:

import serial

I get:
ImportError: No module named 'serial'


I explored and I think that smuview is a compiled python exe - and comes with python34.dll


When I do this inside a script in smuview:


print("Python version: ",sys.version)

print("Python install path: ",os.path.dirname(sys.executable))


I get:

Python version: 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 20:20:57) [MSC v.1600 64 bit (AMD64)]

Python install path: C:\Program Files\sigrok\SmuView


Ok - I dont have v3.4.4 installed. I only have 2.7.

If I do:

python -m pip install pyserial

at the command line - it installs for python 2.7 on my machine - not for 3.4 for smuview


I dont have an install of 3.4.4 on machine - and I dont know how to provide smuview python script access to pyserial / 'import serial' to enable direct access to serial devices.


My understanding is that smuview uses 'python34.dll' to provide the python features - but I have no idea how I would provide access to pyserial, as it seems not active by default.


Do I install python3.4 > do a
python3 -m pip install pyserial


I am on Win10 machine


Regards

Stuart




_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to