Opened at 2012-06-15T12:58:35Z
Closed at 2013-04-25T19:45:59Z
#1769 closed defect (somebody else's problem)
Install error on Windows Vista
Reported by: | toto | Owned by: | killyourtv |
---|---|---|---|
Priority: | major | Milestone: | undecided |
Component: | packaging | Version: | 1.9.1 |
Keywords: | install setup windows vista error distutils setuptools | Cc: | zooko |
Launchpad Bug: |
Description (last modified by toto)
Hello,
I'm trying to install Tahoe on Windows Vista but when I execute "C:\Python27\python setup.py build" I get this error :
Setting up environment to run scripts for the current user...
Already done: associate the filetype .pyscript with Python.File for the current user.
Already done: add .pyscript to the user environment variable PATHEXT.
Already done: add .pyw to the user environment variable PATHEXT.
# C:\Python27\lib\distutils\cygwinccompiler.pyc matches C:\Python27\lib\distutils\cygwinccompiler.py
import distutils.cygwinccompiler # precompiled from C:\Python27\lib\distutils\cygwinccompiler.pyc
# C:\Python27\lib\distutils\unixccompiler.pyc matches C:\Python27\lib\distutils\unixccompiler.py
import distutils.unixccompiler # precompiled from C:\Python27\lib\distutils\unixccompiler.pyc
cc1plus.exe: erreur: unrecognized command line option '-mno-cygwin'
error: Setup script exited with error: command 'gcc' failed with exit status 1
I've installed Python 2.7, mingw-get-inst-20120426, Cygwin last version and done all that is described here :
https://tahoe-lafs.org/trac/tahoe-lafs/wiki/AdvancedInstall#point9.4[[BR]]
Mingw version :
C:\tahoe-lafs>gcc -v
Utilisation des specs internes.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.6.2/lto-wrapper.exe[[BR]]
Target: mingw32
Configuré avec: ../gcc-4.6.2/configure --enable-languages=c,c
++,ada,fortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --ena
ble-libgomp --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw
Modèle de thread: win32
gcc version 4.6.2 (GCC)
Thank you for your help
Change History (8)
comment:1 Changed at 2012-06-15T13:00:58Z by toto
- Description modified (diff)
comment:2 Changed at 2012-06-30T23:31:26Z by killyourtv
comment:3 Changed at 2012-07-06T14:01:46Z by zooko
- Cc zooko added
- Owner changed from davidsarah to zooko
- Status changed from new to assigned
comment:4 follow-ups: ↓ 5 ↓ 7 Changed at 2012-07-22T02:52:56Z by zooko
- Component changed from unknown to packaging
- Owner changed from zooko to killyourtv
- Status changed from assigned to new
Hm, toto, killyourtv, is there anything that Tahoe-LAFS should do to deal with this issue? I'm inclined to close it as "not our problem".
comment:5 in reply to: ↑ 4 Changed at 2012-07-22T21:00:32Z by davidsarah
- Keywords distutils setuptools added
Replying to zooko:
Hm, toto, killyourtv, is there anything that Tahoe-LAFS should do to deal with this issue? I'm inclined to close it as "not our problem".
It seems like a bug in distutils, but maybe it could be worked around in zetuptoolz. If we close this ticket, let's first report the bug in distutils.
comment:6 Changed at 2012-07-22T21:20:30Z by davidsarah
I changed AdvancedInstall to mention the workaround in comment:2, although I'm not entirely sure it is a good idea:
https://tahoe-lafs.org/trac/tahoe-lafs/wiki/AdvancedInstall?action=diff&version=57&old_version=55
comment:7 in reply to: ↑ 4 Changed at 2013-04-25T18:30:23Z by killyourtv
Replying to zooko:
Hm, toto, killyourtv, is there anything that Tahoe-LAFS should do to deal with this issue? I'm inclined to close it as "not our problem".
I'm not sure, tbh. I made my mods after seeing it on a mailing list post somewhere (maybe even tahoe-dev?). What I did may even be a horrible, cringe-worthy idea but it did allow it to proceed and tahoe seemed to work just fine in the afterwards.
comment:8 Changed at 2013-04-25T19:45:59Z by zooko
- Resolution set to somebody else's problem
- Status changed from new to closed
This is an issue in python distutils:
http://bugs.python.org/issue12641
Closing this ticket with the newly created "resolution" somebody else's problem. Thanks for the bug report!
I had success after editing C:\Python27\Lib\distutils\cygwincompiler.py to remove all of the -mno-cygwin options in Windows XP with Python 2.7.