From: Bruce S. <Bru...@nc...> - 2010-04-05 12:50:29
|
This is not familiar. The only prior case I know of that seems a bit similar is that a group using VPython for research visualization had strange failures until they discovered that the problems were somehow caused by their having installed a particular video program, completely unrelated to Python. Do you recall recently installing a new program on each of your computers? Although I know of no reason why it should matter, you might upgrade to Python 2.6 and VPython 5.31. Bruce Sherwood On 4/5/2010 3:40 AM, Davidmh wrote: > 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. > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |