New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation fails after moving to 0.27 #1889
Comments
Turns out removing language-level=3 makes it work. |
Thanks for the report. Looks like something is going wrong with the comprehension loop variables in the class namespace here. I think the best work-around for you is to move the complex NumPy array creation into a cdef helper function. Function scopes are generally more efficient than class scopes. |
The problem is that the loop variables end up in the class namespace:
But then they are not properly used from there but as global names:
With |
Fixed in acd03a2. |
Thank you! |
Fixed in 0.27.1b1. Please give it a try. |
I downloaded the tarball, and ran the install; this is the result: https://pastebin.com/4xUG96F7 Speculation here; I don't know much at all about the inner workings of cython, but it seems to not find io.h; maybe related to visual studio being on E: ? |
Hmm - that does seem unrelated. I suggest ignoring it until it proves to be relevant. ;) |
It might be a general problem - I usually install modules, such as Cython through pycharm. Which I think just pulls pre-compiled wheels, if they are available. I got 0.27.0 and tried manually installing it and that too fails like it. When I actually compile modules I have to call vcvarsall manually as well (well, as the start of my batch file), from the documentation it kind of sounds like that should be automatic? |
Updated from 0.26.1 to 0.27.0 and a module of mine has now stopped compiling properly.
The module, as well as its .c is here:
https://www.dropbox.com/sh/cmv6z8hjlygwyn3/AACXPFPGzmAEQVnVmrsZXdvra?dl=0
Help in resolving this would be much appreciated. I looked around if someone else has the same issue, but I don't think so - 400 open issues is a bit to try and filter through.
Win 10, python 3.6.2 64bit
The text was updated successfully, but these errors were encountered: