"error: None" when building extensions under 2.6
when I'm trying to build extensions under Python 2.6 on Windows XP, the build process terminates with single line that says: error: None which is about as useless as an error message can be. Googling for this brings up a few hits which all seem to involve setuptools (and none of the hits contain any answers), but I'm using straightforward distutils stuff that has worked without a glitch since 1.5.2. Has anyone else seen this for 2.6? </F>
Hello, 2008/8/23 Fredrik Lundh <fredrik@pythonware.com>:
when I'm trying to build extensions under Python 2.6 on Windows XP, the build process terminates with single line that says:
error: None
which is about as useless as an error message can be. Googling for this brings up a few hits which all seem to involve setuptools (and none of the hits contain any answers), but I'm using straightforward distutils stuff that has worked without a glitch since 1.5.2. Has anyone else seen this for 2.6?
I tried to rebuild some extensions, and it either succeeds, or fails with a meaningful (for an expert) error message. Which extensions did you try? is there some output before the error? -- Amaury Forgeot d'Arc
Amaury Forgeot d'Arc wrote:
when I'm trying to build extensions under Python 2.6 on Windows XP, the build process terminates with single line that says:
error: None
which is about as useless as an error message can be. Googling for this brings up a few hits which all seem to involve setuptools (and none of the hits contain any answers), but I'm using straightforward distutils stuff that has worked without a glitch since 1.5.2. Has anyone else seen this for 2.6?
I tried to rebuild some extensions, and it either succeeds, or fails with a meaningful (for an expert) error message.
Which extensions did you try? is there some output before the error?
pick any: http://effbot.org/downloads/ ;-) I'm beginning to suspect that I have a botched VS install on this machine, though. I'll investigate. </F>
Fredrik Lundh schrieb:
Amaury Forgeot d'Arc wrote:
when I'm trying to build extensions under Python 2.6 on Windows XP, the build process terminates with single line that says:
error: None
which is about as useless as an error message can be. Googling for this brings up a few hits which all seem to involve setuptools (and none of the hits contain any answers), but I'm using straightforward distutils stuff that has worked without a glitch since 1.5.2. Has anyone else seen this for 2.6?
I tried to rebuild some extensions, and it either succeeds, or fails with a meaningful (for an expert) error message.
Which extensions did you try? is there some output before the error?
pick any:
;-)
I'm beginning to suspect that I have a botched VS install on this machine, though. I'll investigate.
Do you get a traceback when you set the DISTUTILS_DEBUG environment variable? Thomas
Thomas Heller wrote:
I'm beginning to suspect that I have a botched VS install on this machine, though. I'll investigate.
Do you get a traceback when you set the DISTUTILS_DEBUG environment variable?
Indeed I do: ... File "c:\python26\lib\distutils\msvc9compiler.py", line 436, in compile self.initialize() File "c:\python26\lib\distutils\msvc9compiler.py", line 347, in initialize vc_env = query_vcvarsall(VERSION, plat_spec) File "c:\python26\lib\distutils\msvc9compiler.py", line 239, in query_vcvarsall raise IOError("Unable to find vcvarsall.bat") Oops. Guess that's what you get for having too many Windows development boxes ;-) (a nicer error message in non-debug mode would be a good thing, I think.) </F> PS. Can any resident Microsoft compiler expert perhaps summarize the differences between the Express Edition and the "real" editions wrt. generated code? Are there any differences at all?
Fredrik Lundh wrote:
PS. Can any resident Microsoft compiler expert perhaps summarize the differences between the Express Edition and the "real" editions wrt. generated code? Are there any differences at all?
The express edition does neither support PGO (profile guided optimization) nor cross compilation of 64bit binaries on 32bit platforms. The other missing features are mostly uninteresting from the PoV of a extension developer. From wikipedia: Visual C++ 2008 Express does not include OpenMP support, 64-bit compilers, or a resource editor. The higher-end commercial editions of Visual Studio, specifically the Professional and Team Suite editions, have these features. From MS: http://msdn.microsoft.com/en-us/library/hs24szh9.aspx Christian
participants (4)
-
Amaury Forgeot d'Arc
-
Christian Heimes
-
Fredrik Lundh
-
Thomas Heller