[pycrypto] chmod error in Windows 7, when trying to install

Mike Anderson ajabberwok at gmail.com
Wed Sep 5 12:48:42 EDT 2012


I'm using Windows 7 Ultimate, and trying to install pycrypto, but
getting an error "'chmod' is not recognized as an internal or external
command."

It happens like so:
> pip install ssh
   ...
copying lib\Crypto\Signature\__init__.py -> build\lib.win32-2.7\Crypto\Signature


running build_ext

running build_configure

'chmod' is not recognized as an internal or external command,

operable program or batch file.

Traceback (most recent call last):

  File "<string>", line 1, in <module>

  File "C:\Users\killer\build\pycrypto\setup.py", line 456, 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\site-packages\setuptools\command\install.py", line 53, i
n run

    return _install.run(self)

  File "C:\Python27\lib\distutils\command\install.py", line 563, in run

    self.run_command('build')

  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:\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\killer\build\pycrypto\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\killer\build\pycrypto\setup.py", line 273, in run

    raise RuntimeError("chmod error")

RuntimeError: chmod error


More information about the pycrypto mailing list