WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   read from SP (https://forum.worldviz.com/showthread.php?t=1830)

Moh200jo 02-19-2009 06:37 AM

read from SP
 
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
Code:

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


All times are GMT -7. The time now is 07:35 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC