cannot install - windows - after applying pending fix for 1084781

Bug #1085557 reported by Ted Speers
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Python-Crypto
New
Undecided
Unassigned

Bug Description

I was getting a 'chmod error'

There was bug reported which said a merge was pending.

I made the changes to setup.py per the pending merge ( https://github.com/sebastinas/pycrypto/commit/e0f9803f48a850e7d46bf84d6250e0c11e7a3a81 )

if not os.path.exists("config.status"):

delete
            if os.system("chmod 0755 configure") != 0:
                raise RuntimeError("chmod error")

add
            if hasattr(os, "chmod"):
                import stat
                os.chmod("configure", stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR | stat.S_IRGRP | stat.S_IXGRP | stat.S_IROTH | stat.S_IXOTH)

now i get an "autoconf error"

C:\Users\speerst\Downloads\pycrypto-2.6>setup.py build --compiler=mingw32
running build
running build_py
running build_ext
running build_configure
'sh' is not recognized as an internal or external command,
operable program or batch file.
Traceback (most recent call last):
  File "C:\Users\speerst\Downloads\pycrypto-2.6\setup.py", line 459, in <module>

    core.setup(**kw)
  File "C:\Python27\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "C:\Python27\lib\distutils\command\build.py", line 127, in run
    self.run_command(cmd_name)
  File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "C:\Users\speerst\Downloads\pycrypto-2.6\setup.py", line 251, in run
    self.run_command(cmd_name)
  File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "C:\Users\speerst\Downloads\pycrypto-2.6\setup.py", line 281, in run
    raise RuntimeError("autoconf error")
RuntimeError: autoconf error

Revision history for this message
Ted Speers (ted-speers) wrote :

64 bit, Windows 7

description: updated
Ted Speers (ted-speers)
summary: - cannot install
+ cannot install - windows - after applying pending 'chmod' fix
summary: - cannot install - windows - after applying pending 'chmod' fix
+ cannot install - windows - after applying pending fix for 108471
summary: - cannot install - windows - after applying pending fix for 108471
+ cannot install - windows - after applying pending fix for 1084781
Revision history for this message
Ted Speers (ted-speers) wrote :

I was able to install from binaries located here: http://www.voidspace.org.uk/python/modules.shtml

Revision history for this message
Sebastian Ramacher (s-ramacher) wrote :

Maybe I remember that incorrectly, but that doesn't mingw come with some sort of shell? Have tried running it from that shell instead of cmd.exe?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.