This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Cannot build extension in amd64 using msvc9compiler
Type: compile error Stage:
Components: Library (Lib) Versions: Python 2.6
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: tarek Nosy List: alexsh, loewis, skrah, tarek
Priority: normal Keywords:

Created on 2009-06-14 13:51 by alexsh, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg89348 - (view) Author: Alex Shih-Han Lin (alexsh) Date: 2009-06-14 13:51
OS is Windows 7 x64, python using 2.6.2 amd64, SDK installed, but when I
build some module by setup.py, it always traceback ValueError.

running build
running build_py
running build_ext
building 'genshi._speedups' extension
Traceback (most recent call last):
  File "C:\Genshi-0.5.1\setup.py", line 116, in <module>
    'build_ext': optional_build_ext}
  File "C:\Python26\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "C:\Python26\lib\distutils\dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "C:\Python26\lib\distutils\dist.py", line 995, in run_command
    cmd_obj.run()
  File "C:\Python26\lib\distutils\command\build.py", line 134, in run
    self.run_command(cmd_name)
  File "C:\Python26\lib\distutils\cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "C:\Python26\lib\distutils\dist.py", line 995, in run_command
    cmd_obj.run()
  File "C:\Genshi-0.5.1\setup.py", line 39, in run
    build_ext.run(self)
  File "C:\Python26\lib\distutils\command\build_ext.py", line 345, in run
    self.build_extensions()
  File "C:\Python26\lib\distutils\command\build_ext.py", line 471, in
build_extensions
    self.build_extension(ext)
  File "C:\Genshi-0.5.1\setup.py", line 45, in build_extension
    build_ext.build_extension(self, ext)
  File "C:\Python26\lib\distutils\command\build_ext.py", line 536, in
build_extension
    depends=ext.depends)
  File "C:\Python26\lib\distutils\msvc9compiler.py", line 448, in compile
    self.initialize()
  File "C:\Python26\lib\distutils\msvc9compiler.py", line 358, in initialize
    vc_env = query_vcvarsall(VERSION, plat_spec)
  File "C:\Python26\lib\distutils\msvc9compiler.py", line 274, in
query_vcvarsall
    raise ValueError(str(list(result.keys())))
ValueError: [u'path']

I printed out the variables "result", it only had key 'path'.
msg89350 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2009-06-14 16:03
Do you have VS2008 installed also?
msg89383 - (view) Author: Alex Shih-Han Lin (alexsh) Date: 2009-06-15 02:28
yes, I have already installed VS 2008 (but it is Express Edition for VC,
VB ,C#...I have no money to buy standard edition.)
msg89392 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2009-06-15 05:41
So when you run vcvarsall.bat, and then do "set", does it print any of
the variables "include", "lib", "libpath", "path"?
msg96958 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2009-12-28 16:05
Duplicate of issue 7511.
History
Date User Action Args
2022-04-11 14:56:50adminsetgithub: 50532
2010-02-02 23:23:30tareksetstatus: open -> closed
assignee: tarek

resolution: duplicate
nosy: + tarek
2009-12-28 16:05:52skrahsetnosy: + skrah
messages: + msg96958
2009-06-15 05:41:23loewissetmessages: + msg89392
2009-06-15 02:28:15alexshsetmessages: + msg89383
2009-06-14 16:03:19loewissetnosy: + loewis
messages: + msg89350
2009-06-14 13:51:07alexshcreate