[SciPy-dev] Broken .py files in current CVS

Travis Oliphant oliphant at ee.byu.edu
Thu Sep 25 18:20:45 CDT 2003


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




More information about the Scipy-dev mailing list