Opened 13 years ago

Last modified 12 years ago

#3352 defect new

twisted does not install on 64bit Windows Vista

Reported by: Chepra Owned by:
Priority: normal Milestone:
Component: core Keywords:
Cc: Thijs Triemstra Branch:
Author:

Description

Hello!

As said to me I should fill a bug here.

I have vista 64bit and python installed via the 64bit installer from python.org. The Twisted installer did not worked and said that pyton cant be found.

Therefore I downloaded the source and tried to python setup.py install, which give me this error:

running build_ext
Traceback (most recent call last):
  File "setup.py", line 94, in <module>
    main(sys.argv[1:])
  File "setup.py", line 89, in main
    setup(**setup_args)
  File ".\twisted\python\dist.py", line 47, in setup
    return core.setup(**get_setup_args(**kw))
  File "D:\opt\python\lib\distutils\core.py", line 151, in setup
    dist.run_commands()
  File "D:\opt\python\lib\distutils\dist.py", line 974, in run_commands
    self.run_command(cmd)
  File "D:\opt\python\lib\distutils\dist.py", line 994, in run_command
    cmd_obj.run()
  File "D:\opt\python\lib\distutils\command\install.py", line 506, in run
    self.run_command('build')
  File "D:\opt\python\lib\distutils\cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "D:\opt\python\lib\distutils\dist.py", line 994, in run_command
    cmd_obj.run()
  File "D:\opt\python\lib\distutils\command\build.py", line 112, in run
    self.run_command(cmd_name)
  File "D:\opt\python\lib\distutils\cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "D:\opt\python\lib\distutils\dist.py", line 994, in run_command
    cmd_obj.run()
  File "D:\opt\python\lib\distutils\command\build_ext.py", line 290, in run
    self.build_extensions()
  File ".\twisted\python\dist.py", line 327, in build_extensions
    self.prepare_extensions()
  File ".\twisted\python\dist.py", line 318, in prepare_extensions
    if x.condition(self)]
  File "twisted\runner\topfiles\setup.py", line 11, in <lambda>
    condition=lambda builder: builder._check_header("rpc/rpc.h")),
  File ".\twisted\python\dist.py", line 360, in _check_header
    return self._compile_helper("#include <%s>\n" % header_name)
  File ".\twisted\python\dist.py", line 346, in _compile_helper
    self.compiler.compile(["conftest.c"], output_dir='')
  File "D:\opt\python\lib\distutils\msvccompiler.py", line 354, in compile
    if not self.initialized: self.initialize()
  File "D:\opt\python\lib\distutils\msvccompiler.py", line 264, in initialize
    self.__paths = self.get_msvc_paths("path")
  File "D:\opt\python\lib\distutils\msvccompiler.py", line 616, in get_msvc_paths
    % (self.__root, self.__version))
AttributeError: MSVCCompiler instance has no attribute '_MSVCCompiler__root'

Change History (12)

comment:1 Changed 13 years ago by Glyph

Summary: distutils broken?twisted does not install on 64bit Windows Vista

Updating the summary to be clearer.

comment:2 Changed 13 years ago by Glyph

Does the computer that you tried this on have Visual Studio installed?

comment:3 Changed 13 years ago by Jean-Paul Calderone

What version of Python?

comment:4 Changed 13 years ago by zectbumo

I have the same problem as Chepra. I'm on 64bit Vista. I have VS.NET2003, VS2005, VS2008 installed. I have 64bit Python 2.5

comment:5 Changed 13 years ago by zectbumo

Cc: zectbumo added

comment:6 Changed 13 years ago by zectbumo

I tried 64 bit Python 2.6 and Twisted was able to build fine. It seems to only be a problem when using 64 bit Python 2.5.

comment:7 Changed 13 years ago by therve

Resolution: invalid
Status: newclosed

It looks like a problem with distutils, not twisted. Please open a ticket in python tracker (if it works with 2.6, it may already be solved).

comment:8 Changed 12 years ago by tehnicaorg

Resolution: invalid
Status: closedreopened

I'll reopen this bug because it still doesn't install 'properly' on an Windows 64 machine. (I've tried it on Windows 7, 64 bit).

I have a 64 bit version Python. On 64 bit version of Windows there is a registry redirection for 32 bit programs. http://msdn.microsoft.com/en-us/library/aa384232(VS.85).aspx

Because the twisted installer is 32 bit it will really search in this keys:

  • HKLM\Software\Wow6432Node\Python\PythonCore\2.6\InstallPath
  • HKCU\Software\Python\PythonCore\2.6\InstallPath

although it wanted HKLM\Software\Python\PythonCore\2.6\InstallPath. See (1).

As you can see if I had installed python just for myself (in HKCU instead of HKLM) it would probably work.

I've created the key HKLM\Software\Wow6432Node\Python\PythonCore\2.6\InstallPath, with default value c:\python26 and twisted installed ok.

I've used the following installer: Twisted 9.0.0 for Python 2.6.
Python: Python 2.6.4 (r264:75708, Oct 26 2009, 07:36:50) [MSC v.1500 64 bit (AMD64)] on win32.

(1) http://support.microsoft.com/kb/896459
"Note Developers can use the RegQueryReflectionKey function to determine the reflection state for a particular key and use the RegDisableReflectionKey function and the RegEnableReflectionKey function to programmatically disable and enable registry reflection for a particular key."

comment:9 Changed 12 years ago by Thijs Triemstra

Cc: Thijs Triemstra added

comment:10 Changed 12 years ago by zectbumo

Cc: zectbumo removed

comment:11 Changed 12 years ago by Glyph

Owner: changed from Glyph to PenguinOfDoom
Status: reopenednew

comment:12 Changed 11 years ago by <automation>

Owner: PenguinOfDoom deleted
Note: See TracTickets for help on using tickets.