summaryrefslogtreecommitdiff
path: root/pipermail/pycrypto/2012q3/000629.html
blob: fe1af28d802f4f0e64ef5a0f6352db26428eaffa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
 <HEAD>
   <TITLE> [pycrypto] chmod error in Windows 7, when trying to install
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:pycrypto%40lists.dlitz.net?Subject=Re%3A%20%5Bpycrypto%5D%20chmod%20error%20in%20Windows%207%2C%20when%20trying%20to%20install&In-Reply-To=%3CCAHAkNZ1ZOZEVihY3%2BsU0YFbBg-r-K9TAbgfE-GTKL3BO6FNLgQ%40mail.gmail.com%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <style type="text/css">
       pre {
           white-space: pre-wrap;       /* css-2.1, curent FF, Opera, Safari */
           }
   </style>
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="000628.html">
   <LINK REL="Next"  HREF="000630.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[pycrypto] chmod error in Windows 7, when trying to install</H1>
    <B>Philip Horger</B> 
    <A HREF="mailto:pycrypto%40lists.dlitz.net?Subject=Re%3A%20%5Bpycrypto%5D%20chmod%20error%20in%20Windows%207%2C%20when%20trying%20to%20install&In-Reply-To=%3CCAHAkNZ1ZOZEVihY3%2BsU0YFbBg-r-K9TAbgfE-GTKL3BO6FNLgQ%40mail.gmail.com%3E"
       TITLE="[pycrypto] chmod error in Windows 7, when trying to install">campadrenalin at gmail.com
       </A><BR>
    <I>Wed Sep  5 19:23:04 EDT 2012</I>
    <P><UL>
        <LI>Previous message: <A HREF="000628.html">[pycrypto] chmod error in Windows 7, when trying to install
</A></li>
        <LI>Next message: <A HREF="000630.html">[pycrypto] chmod error in Windows 7, when trying to install
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#629">[ date ]</a>
              <a href="thread.html#629">[ thread ]</a>
              <a href="subject.html#629">[ subject ]</a>
              <a href="author.html#629">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>As I understand it, compiling and setting PyCrypto up from source on Windows
requires MinGW. It might also support Cygwin. But some sort of UNIX-y layer to
work with as common ground.

On Wed, Sep 5, 2012 at 4:21 PM, Andrew Cooper &lt;<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">andyhhp at gmail.com</A>&gt; wrote:
&gt;<i>
</I>&gt;<i> On 05/09/2012 17:48, Mike Anderson wrote:
</I>&gt;&gt;<i> I'm using Windows 7 Ultimate, and trying to install pycrypto, but
</I>&gt;&gt;<i> getting an error &quot;'chmod' is not recognized as an internal or external
</I>&gt;&gt;<i> command.&quot;
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> It happens like so:
</I>&gt;&gt;&gt;<i> pip install ssh
</I>&gt;&gt;<i>    ...
</I>&gt;&gt;<i> copying lib\Crypto\Signature\__init__.py -&gt; build\lib.win32-2.7\Crypto\Signature
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> running build_ext
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> running build_configure
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> 'chmod' is not recognized as an internal or external command,
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> operable program or batch file.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Traceback (most recent call last):
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>   File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>   File &quot;C:\Users\killer\build\pycrypto\setup.py&quot;, line 456, in &lt;module&gt;
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>     core.setup(**kw)
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>   File &quot;C:\Python27\lib\distutils\core.py&quot;, line 152, in setup
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>     dist.run_commands()
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>   File &quot;C:\Python27\lib\distutils\dist.py&quot;, line 953, in run_commands
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>     self.run_command(cmd)
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>   File &quot;C:\Python27\lib\distutils\dist.py&quot;, line 972, in run_command
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>     cmd_obj.run()
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>   File &quot;C:\Python27\lib\site-packages\setuptools\command\install.py&quot;, line 53, i
</I>&gt;&gt;<i> n run
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>     return _install.run(self)
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>   File &quot;C:\Python27\lib\distutils\command\install.py&quot;, line 563, in run
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>     self.run_command('build')
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>   File &quot;C:\Python27\lib\distutils\cmd.py&quot;, line 326, in run_command
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>     self.distribution.run_command(command)
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>   File &quot;C:\Python27\lib\distutils\dist.py&quot;, line 972, in run_command
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>     cmd_obj.run()
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>   File &quot;C:\Python27\lib\distutils\command\build.py&quot;, line 127, in run
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>     self.run_command(cmd_name)
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>   File &quot;C:\Python27\lib\distutils\cmd.py&quot;, line 326, in run_command
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>     self.distribution.run_command(command)
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>   File &quot;C:\Python27\lib\distutils\dist.py&quot;, line 972, in run_command
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>     cmd_obj.run()
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>   File &quot;C:\Users\killer\build\pycrypto\setup.py&quot;, line 251, in run
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>     self.run_command(cmd_name)
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>   File &quot;C:\Python27\lib\distutils\cmd.py&quot;, line 326, in run_command
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>     self.distribution.run_command(command)
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>   File &quot;C:\Python27\lib\distutils\dist.py&quot;, line 972, in run_command
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>     cmd_obj.run()
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>   File &quot;C:\Users\killer\build\pycrypto\setup.py&quot;, line 273, in run
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>     raise RuntimeError(&quot;chmod error&quot;)
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> RuntimeError: chmod error
</I>&gt;<i>
</I>&gt;<i> This is because you are on windows and setup.py is trying to run unix
</I>&gt;<i> commands.
</I>&gt;<i>
</I>&gt;<i> To a cursory glance, it appears to be a bug in pycrypto's setup.py  It
</I>&gt;<i> should either provide a windows compatible way of performing autoconf
</I>&gt;<i> and friends (unlikely), or provide a windows alternative way of
</I>&gt;<i> configuring stuff and conditionally invoke the correct one for the system.
</I>&gt;<i>
</I>&gt;<i> ~Andrew
</I>&gt;<i>
</I>&gt;&gt;<i> _______________________________________________
</I>&gt;&gt;<i> pycrypto mailing list
</I>&gt;&gt;<i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">pycrypto at lists.dlitz.net</A>
</I>&gt;&gt;<i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</A>
</I>&gt;<i>
</I>&gt;<i> _______________________________________________
</I>&gt;<i> pycrypto mailing list
</I>&gt;<i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">pycrypto at lists.dlitz.net</A>
</I>&gt;<i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</A>
</I></PRE>



<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="000628.html">[pycrypto] chmod error in Windows 7, when trying to install
</A></li>
	<LI>Next message: <A HREF="000630.html">[pycrypto] chmod error in Windows 7, when trying to install
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#629">[ date ]</a>
              <a href="thread.html#629">[ thread ]</a>
              <a href="subject.html#629">[ subject ]</a>
              <a href="author.html#629">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">More information about the pycrypto
mailing list</a><br>
</body></html>