Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Last commit Fails
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Talanor  
View profile  
 More options Oct 4 2012, 5:17 am
From: Talanor <adron...@gmail.com>
Date: Thu, 04 Oct 2012 11:17:19 +0200
Local: Thurs, Oct 4 2012 5:17 am
Subject: Last commit Fails
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert Bradshaw  
View profile  
 More options Oct 4 2012, 1:45 pm
From: Robert Bradshaw <rober...@gmail.com>
Date: Thu, 4 Oct 2012 10:44:59 -0700
Local: Thurs, Oct 4 2012 1:44 pm
Subject: Re: [cython-users] Last commit Fails
Yep, sorry about that. (Forgot that underscore attributes were not
imported with *.) Fixed.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »