clonly / pythonxy

Automatically exported from code.google.com/p/pythonxy
0 stars 0 forks source link

Cython code fails to compile on Windows 64 bit machines #609

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If relevant, please answer to the following questions:
1. What version of Python(x,y) have you installed?
2.7.3.1

2. Which components have you installed (Python(x,y) installer: component
page):
Recommended
c. Have you selected manually plugins in the component list? What
plugins?
Updated Cython to 0.18

3. Have you selected the option "Customize installation directories"?
NO

5. Where did you install Python(x,y) itself?
default path

6. Have you installed Python(x,y):
For "All users"
7. What is your operating system?
Windows 7

8. Is the operating system 64 bit?
Yes
but Python installed is 32bit version

9. When you installed Python(x,y), were you logged in as :
a regular user

10. If you are using Windows Vista/7, have you installed Python(x,y):
simply by double-clicking on the installer

11. Regarding installed softwares on your machine, how did you clean your
machine before installing Python(x,y) (multiple answers are possible):
 you uninstalled any previous Python distribution (including the
official .msi)

What steps will reproduce the problem?

I am trying to compile cython code. At first I tried my own code, but when 
things weren't working I tried the fib.pyx code from the Cython tutorial.
I use the setup.py from the tutorial. At first I tried compiling using the 
mingw32 compiler (I did create the distutils.cfg file to specify the mingw32 
compiler). It appears to compile -- it creates a .pyd file -- but I get some 
compiler warnings, such as "unknown type conversion character 'z'", etc. 
Compiling appears to fail because when I import and run the compiled module it 
just hangs.

According to the info on compiling 64 bit extensions 
(http://wiki.cython.org/64BitCythonExtensionsOnWindows), the mingw32 compiler 
will not work, nor is it a good idea to try the mingw64 compiler. So, following 
the suggestions at that link, I downloaded and installed the Windows 7 SDK for 
AMD64, and followed the instructions for configuring it (DISTUTILS_USE_SDK=1, 
etc). Now when I try to compile the fib.pyx code I get the "can't find 
vcvarsall.bat" error.

Do I in fact ALSO need to install Visual C++ Express 2008 for this to work? If 
so, that's a problem because it is no longer available for download.

Original issue reported on code.google.com by matthewr...@gmail.com on 28 Feb 2013 at 6:23

GoogleCodeExporter commented 9 years ago
See also this thread on the forum:
https://groups.google.com/forum/?fromgroups=#!topic/winpython/TQCTyaqk0yM

Original comment by matthewr...@gmail.com on 28 Feb 2013 at 6:24

GoogleCodeExporter commented 9 years ago
The answer to the above issue is given inside the thread you posted - use the 
SDK compiler.

resolving this issue is beyond the scope of Python(x, y).

Original comment by grizzly.nyo on 1 Mar 2013 at 4:50