Last commit Fails

26 views
Skip to first unread message

Talanor

unread,
Oct 4, 2012, 5:17:19 AM10/4/12
to cython...@googlegroups.com
Hello,

I updated my cython repo, and when I attempted to compile any python
file, I got this traceback:

Traceback (most recent call last):
File "./cython.py", line 16, in <module>
from Cython.Compiler.Main import main
File "/home/talanor/projects/cython/Cython/Compiler/Main.py", line
16, in <module>
import Version
File "/home/talanor/projects/cython/Cython/Compiler/Version.py", line
3, in <module>
from Cython import __version__ as version
ImportError: cannot import name __version__

So I saw in the log that you "Move(d) version to Shadow.py".

I think you forgot to add your changes to Cython.Compiler.Version...

This should make cython work again :

diff --git a/Cython/Compiler/Version.py b/Cython/Compiler/Version.py
index 336512f..138189c 100644
--- a/Cython/Compiler/Version.py
+++ b/Cython/Compiler/Version.py
@@ -1,6 +1,6 @@
# for backwards compatibility

-from Cython import __version__ as version
+from Cython.Shadow import __version__ as version

# For generated by string.

Thank you

Robert Bradshaw

unread,
Oct 4, 2012, 1:44:59 PM10/4/12
to cython...@googlegroups.com
Yep, sorry about that. (Forgot that underscore attributes were not
imported with *.) Fixed.
Reply all
Reply to author
Forward
0 new messages