WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   ERROR: Failed to initialize python (https://forum.worldviz.com/showthread.php?t=2306)

kay 10-07-2009 11:35 AM

ERROR: Failed to initialize python
 
I get the following error message, when trying to run any script:

'import site' failed; use -v for traceback
Traceback (most recent call last):
File "", line 1, in ?
File "C:\PYTHON26\LIB\os.py", line 757
bs = b""
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "", line 1, in ?
File "C:\Programme\WorldViz\Vizard30/python\viz.py", line 10, in ?
import os
File "C:\PYTHON26\LIB\os.py", line 757
bs = b""
^
SyntaxError: invalid syntax
** ERROR: Failed to initialize python



Apparently Vizard tries to use the Python 2.6 installation in stead of it's own installation of Python 2.4!?
Do I need to change the Python search path for Vizard 3.0?
How could this be changed?


Thanks

farshizzo 10-07-2009 11:51 AM

This sounds like you have either the PYTHONPATH or PYTHONHOME environment variables pointing to your Python 2.6 installation. I would recommend removing these environment variables. They are generally not needed and will cause problems if you have multiple Python versions installed on your machine.


All times are GMT -7. The time now is 02:17 PM.

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