|
From: Davidmh <dav...@gm...> - 2010-04-05 07:40:36
|
Hello.
Recently, when I tried to execute a working program depending on
VPython, it raised an error importing the library. That was not fixed
reinstalling the whole Python interpreter and libraries.
It happened suddenly in my fixed computer, I cannot relate it to any
change in it, but in my laptop was still operative. Some weeks later,
I run a trivial program (just creating the scene and plotting an
sphere) in my laptop, worked; I ran it again just before and there was
the error I could not get rid of.
I use Python 2.5.4 and VPython 5.11 over WXP, Professional (fixed) and
Home (laptop), both with antivirus NOD32 4.0, and the error are:
The first time I run the program in the Python IDLE:
>>> import visual
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import visual
File "F:\Archivos de
programa\Clasificados\Programación\Python\2.5\lib\site-packages\visual\__init__.py",
line 83, in <module>
cvisual._set_dataroot( _os_path.split( __file__ )[0] + _os_path.sep)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf3 in position
47: ordinal not in range(128)
And if I try it again, I get:
>>> import visual
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
import visual
File "F:\Archivos de
programa\Clasificados\Programación\Python\2.5\lib\site-packages\visual\__init__.py",
line 70, in <module>
del ui, crayola, primitives
NameError: name 'ui' is not defined
Any ideas of what is happening and how to solve it? Thank you very much.
Regards.
David Menéndez.
|