Install error on Windows Vista #1769

Closed
opened 2012-06-15 12:58:35 +00:00 by toto · 6 comments
Owner

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

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

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

Hello,<br> <br> I'm trying to install Tahoe on Windows Vista but when I execute "C:\Python27\python setup.py build" I get this error :<br> Setting up environment to run scripts for the current user...<br> Already done: associate the filetype .pyscript with Python.File for the current user.<br> Already done: add .pyscript to the user environment variable PATHEXT.<br> Already done: add .pyw to the user environment variable PATHEXT.<br> # C:\Python27\lib\distutils\cygwinccompiler.pyc matches C:\Python27\lib\distutils\cygwinccompiler.py<br> import distutils.cygwinccompiler # precompiled from C:\Python27\lib\distutils\cygwinccompiler.pyc<br> # C:\Python27\lib\distutils\unixccompiler.pyc matches C:\Python27\lib\distutils\unixccompiler.py<br> import distutils.unixccompiler # precompiled from C:\Python27\lib\distutils\unixccompiler.pyc<br> cc1plus.exe: erreur: unrecognized command line option '-mno-cygwin'<br> error: Setup script exited with error: command 'gcc' failed with exit status 1<br> I've installed Python 2.7, mingw-get-inst-20120426, Cygwin last version and done all that is described here :<br> <https://tahoe-lafs.org/trac/tahoe-lafs/wiki/AdvancedInstall#point9.4><br> Mingw version :<br> C:\tahoe-lafs>gcc -v<br> Utilisation des specs internes.<br> COLLECT_GCC=gcc<br> COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.6.2/lto-wrapper.exe<br> Target: mingw32<br> 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<br> Modèle de thread: win32<br> gcc version 4.6.2 (GCC)<br> <br> Thank you for your help<br>
tahoe-lafs added the
unknown
major
defect
1.9.1
labels 2012-06-15 12:58:35 +00:00
tahoe-lafs added this to the undecided milestone 2012-06-15 12:58:35 +00:00
killyourtv commented 2012-06-30 23:31:26 +00:00
Author
Owner

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.

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.
zooko commented 2012-07-22 02:52:56 +00:00
Author
Owner

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".

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".
tahoe-lafs added
packaging
and removed
unknown
labels 2012-07-22 02:52:56 +00:00
davidsarah commented 2012-07-22 21:00:32 +00:00
Author
Owner

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.

Replying to [zooko](/tahoe-lafs/trac-2024-07-25/issues/1769#issuecomment-130529): > 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.
davidsarah commented 2012-07-22 21:20:30 +00:00
Author
Owner

I changed wiki/AdvancedInstall to mention the workaround in comment:130528, 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

I changed [wiki/AdvancedInstall](wiki/AdvancedInstall) to mention the workaround in [comment:130528](/tahoe-lafs/trac-2024-07-25/issues/1769#issuecomment-130528), 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>
killyourtv commented 2013-04-25 18:30:23 +00:00
Author
Owner

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.

Replying to [zooko](/tahoe-lafs/trac-2024-07-25/issues/1769#issuecomment-130529): > 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.
zooko commented 2013-04-25 19:45:59 +00:00
Author
Owner

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!

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!
tahoe-lafs added the
somebody else's problem
label 2013-04-25 19:45:59 +00:00
zooko closed this issue 2013-04-25 19:45:59 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tahoe-lafs/trac-2024-07-25#1769
No description provided.