PDA

View Full Version : read from SP


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.

farshizzo
02-19-2009, 10:36 AM
It looks like you've installed an incompatible version of the win32 extensions with Vizard. Vizard uses Python 2.4 and the error message is indicating that the version of win32file you have is made for Python 2.6. Try uninstalling the pywin32 module and installing the version made for Python 2.4