Hello, Trying to install the latest CVS version of SciPy I get byte-compiling /usr/local/lib/python2.3/site-packages/kiva/agg/graphics_context.swig.py to graphics_context.swig.pyc File "/usr/local/lib/python2.3/site-packages/kiva/agg/graphics_context.swig.py", line 1 %pythoncode { ^ SyntaxError: invalid syntax byte-compiling /usr/local/lib/python2.3/site-packages/kiva/agg/graphics_context.py to graphics_context.pyc File "/usr/local/lib/python2.3/site-packages/kiva/agg/graphics_context.py", line 1 %pythoncode { ^ SyntaxError: invalid syntax byte-compiling /usr/local/lib/python2.3/site-packages/scipy/io/array_import.py to array_import.pyc Is there some cruft left from some kind of code generator? Regards Berthold -- bhoel@web.de / http://starship.python.net/crew/bhoel/ It is unlawful to use this email address for unsolicited ads (USC Title 47 Sec.227). I will assess a US$500 charge for reviewing and deleting each unsolicited ad.
Berthold Hoellmann wrote:
Hello,
Trying to install the latest CVS version of SciPy I get
byte-compiling /usr/local/lib/python2.3/site-packages/kiva/agg/graphics_context.swig.py to graphics_context.swig.pyc File "/usr/local/lib/python2.3/site-packages/kiva/agg/graphics_context.swig.py", line 1 %pythoncode { ^ SyntaxError: invalid syntax byte-compiling /usr/local/lib/python2.3/site-packages/kiva/agg/graphics_context.py to graphics_context.pyc File "/usr/local/lib/python2.3/site-packages/kiva/agg/graphics_context.py", line 1 %pythoncode { ^ SyntaxError: invalid syntax byte-compiling /usr/local/lib/python2.3/site-packages/scipy/io/array_import.py to array_import.pyc
Is there some cruft left from some kind of code generator?
I see these errors too with Python 2.3, but the install actually works fine. These errors are not hindering the tests. The byte-compiler is trying to compile this file but probably shouldn't. I don't understand enough about what Eric is trying to do with agg here to comment further. -Travis O.
Regards Berthold
Hi, I think I saw the same errors recently (but not in my last install, if I remember correctly) when I installed a new version over an existing old one. What helped me in this case (I think ;-) was to remove all scipy/kiva/agg stuff from the site-packages directory (I'd guess just kiva might be enough, but I did not play around with this ...). Maybe you can try this and do a `pyton setup.py install`? Best, Arnd
participants (3)
-
Arnd Baecker
-
bhoel@web.de
-
Travis Oliphant