Talanor
unread,Oct 4, 2012, 5:17:19 AM10/4/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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