Cython Attributeerror: 'module' Object Has No Attribute 'declare'
Compiling .pyx files was working fine but suddenly it started raising error when I type: python setup.py build_ext --inplace I get the error: c:\Python27\cython\helloworld>pyth
Solution 1:
I got the same error when running from a python script:
os.system("python setup.py build_ext --inplace")
while
python setup.py build_ext --inplace
worked from command promt.
The reason was that the name of my test package was "cython"... stupid me
Solution 2:
I have had the same error. Worked on it for one whole day until I have realized that I have followed some blog entry to create a cython.py file in my directory holding some information how to compile. I do not recall where I found this but by removing this file everything works fine
Solution 3:
I'm not sure this helps, but when I got this error I deleted all .pyc
files and ran the script again via IDLE (opened in IDLE and clicked F5) and then it worked just fine.
Post a Comment for "Cython Attributeerror: 'module' Object Has No Attribute 'declare'"