Moh200jo
02-19-2009, 06:37 AM
I am trying now to read from serial port, I did this before in VB 6 however, today I have tried with vizard after I installed pyserial-2.4.win32 in the following path
C:\Program Files\WorldViz\Vizard30\bin\lib
I am aware I have to install this in site-packages file. In addition, I copied this file from the python file because wasn’t with vizrd.
I am checking with this example
import serial
ss=serial.Serial(0)
print ss.portstr
but the error is as follows:
import serial
File "C:\Program Files\WorldViz\Vizard30\python\serial\__init__.py", line 18, in ?
from serialwin32 import *
File "C:\Program Files\WorldViz\Vizard30\python\serial\serialwin32. py", line 9, in ?
import win32file # The base COM port and file IO functions.
ImportError: Module use of python26.dll conflicts with this version of Python.
C:\Program Files\WorldViz\Vizard30\bin\lib
I am aware I have to install this in site-packages file. In addition, I copied this file from the python file because wasn’t with vizrd.
I am checking with this example
import serial
ss=serial.Serial(0)
print ss.portstr
but the error is as follows:
import serial
File "C:\Program Files\WorldViz\Vizard30\python\serial\__init__.py", line 18, in ?
from serialwin32 import *
File "C:\Program Files\WorldViz\Vizard30\python\serial\serialwin32. py", line 9, in ?
import win32file # The base COM port and file IO functions.
ImportError: Module use of python26.dll conflicts with this version of Python.