Quantcast

autoconf error on Windows

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

autoconf error on Windows

Alec Taylor
PyCrypto's install is giving an autoconf error on Windows, whether I
install from the git repo or normally.

Traceback (most recent call last):
  File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()

  File "C:\Projects\satchmo_test\satchmo_test\src\pycrypto\setup.py",
line 274, in run
    raise RuntimeError("autoconf error")

RuntimeError: autoconf error

----------------------------------------
Command C:\Python27\python.exe -c "import setuptools;
__file__='C:\\Projects\\satchmo_test\\satchmo_test\\src\\pycrypto\\setup.py';
exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__,
'exec'))" develop --no-deps failed with error code 1
Full output: http://pastebin.com/Dp3aw077

How can I get PyCrypto to install?

Thanks for all suggestions,

Alec Taylor
--
http://mail.python.org/mailman/listinfo/python-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: autoconf error on Windows

Chris Rebert-6
On Sun, Jan 29, 2012 at 12:52 AM, Alec Taylor <[hidden email]> wrote:

> PyCrypto's install is giving an autoconf error on Windows, whether I
> install from the git repo or normally.
>
> Traceback (most recent call last):
>  File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
>    cmd_obj.run()
>
>  File "C:\Projects\satchmo_test\satchmo_test\src\pycrypto\setup.py",
> line 274, in run
>    raise RuntimeError("autoconf error")
>
> RuntimeError: autoconf error
>
> ----------------------------------------
> Command C:\Python27\python.exe -c "import setuptools;
> __file__='C:\\Projects\\satchmo_test\\satchmo_test\\src\\pycrypto\\setup.py';
> exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__,
> 'exec'))" develop --no-deps failed with error code 1
> Full output: http://pastebin.com/Dp3aw077

Judging by the earlier "'sh' is not recognized as an internal or
external command, operable program or batch file." error message and
after scanning thru the setup.py, sounds like you need to have MinGW
(http://www.mingw.org ) installed. FWICT, there don't seem to be any
current Windows binaries for PyCrypto.

Cheers,
Chris
--
http://mail.python.org/mailman/listinfo/python-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: autoconf error on Windows

Alec Taylor
Thanks, but I already have MinGW installed and in PATH.

C:\>where g++
C:\libraries\MinGW\bin\g++.exe
C:\libraries\perl\c\bin\g++.exe

On Sun, Jan 29, 2012 at 8:07 PM, Chris Rebert <[hidden email]> wrote:

> On Sun, Jan 29, 2012 at 12:52 AM, Alec Taylor <[hidden email]> wrote:
>> PyCrypto's install is giving an autoconf error on Windows, whether I
>> install from the git repo or normally.
>>
>> Traceback (most recent call last):
>>  File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
>>    cmd_obj.run()
>>
>>  File "C:\Projects\satchmo_test\satchmo_test\src\pycrypto\setup.py",
>> line 274, in run
>>    raise RuntimeError("autoconf error")
>>
>> RuntimeError: autoconf error
>>
>> ----------------------------------------
>> Command C:\Python27\python.exe -c "import setuptools;
>> __file__='C:\\Projects\\satchmo_test\\satchmo_test\\src\\pycrypto\\setup.py';
>> exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__,
>> 'exec'))" develop --no-deps failed with error code 1
>> Full output: http://pastebin.com/Dp3aw077
>
> Judging by the earlier "'sh' is not recognized as an internal or
> external command, operable program or batch file." error message and
> after scanning thru the setup.py, sounds like you need to have MinGW
> (http://www.mingw.org ) installed. FWICT, there don't seem to be any
> current Windows binaries for PyCrypto.
>
> Cheers,
> Chris
--
http://mail.python.org/mailman/listinfo/python-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: autoconf error on Windows

Chris Rebert-6
> On Sun, Jan 29, 2012 at 8:07 PM, Chris Rebert <[hidden email]> wrote:
>> On Sun, Jan 29, 2012 at 12:52 AM, Alec Taylor <[hidden email]> wrote:
>>> PyCrypto's install is giving an autoconf error on Windows, whether I
>>> install from the git repo or normally.
>>>
>>> Traceback (most recent call last):
>>>  File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
>>>    cmd_obj.run()
>>>
>>>  File "C:\Projects\satchmo_test\satchmo_test\src\pycrypto\setup.py",
>>> line 274, in run
>>>    raise RuntimeError("autoconf error")
>>>
>>> RuntimeError: autoconf error
>>>
>>> ----------------------------------------
>>> Command C:\Python27\python.exe -c "import setuptools;
>>> __file__='C:\\Projects\\satchmo_test\\satchmo_test\\src\\pycrypto\\setup.py';
>>> exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__,
>>> 'exec'))" develop --no-deps failed with error code 1
>>> Full output: http://pastebin.com/Dp3aw077
>>
>> Judging by the earlier "'sh' is not recognized as an internal or
>> external command, operable program or batch file." error message and
>> after scanning thru the setup.py, sounds like you need to have MinGW
>> (http://www.mingw.org ) installed. FWICT, there don't seem to be any
>> current Windows binaries for PyCrypto.
On Sun, Jan 29, 2012 at 1:15 AM, Alec Taylor <[hidden email]> wrote:
> Thanks, but I already have MinGW installed and in PATH.
>
> C:\>where g++
> C:\libraries\MinGW\bin\g++.exe
> C:\libraries\perl\c\bin\g++.exe

Erm, make that MSYS instead of MinGW?
(I don't run Windows myself.)

- Chris
--
http://mail.python.org/mailman/listinfo/python-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: autoconf error on Windows

Alec Taylor
Thanks, adding MSYS's bin to PATH solved that issue.

Now I'm getting linker errors on:

C:\libraries\MinGW\bin\gcc.exe -mno-cygwin -shared -s
build\temp.win-amd64-2.7\Release\src\winrand.o
build\temp.win-amd64-2.7\Release\src\winrandom.def -LC:\Python27\libs
-LC:\Python27\PCbuild\amd64 -lws2_32 -ladvapi32 -lpython27 -lmsvcr90
-o "C:\Projects\satchmo_test\Prototype\src\pycrypto\lib\Crypto\Random\OSRNG\winrandom.pyd"

Full output: http://pastebin.com/SYBkFt3h
--
http://mail.python.org/mailman/listinfo/python-list
Loading...