summaryrefslogtreecommitdiff
path: root/pipermail/pycrypto/2016/000869.html
blob: f1b93b39c471c6523588e8204719e32ee1542334 (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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
 <HEAD>
   <TITLE> [pycrypto] Build error?
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:pycrypto%40lists.dlitz.net?Subject=Re%3A%20%5Bpycrypto%5D%20Build%20error%3F&In-Reply-To=%3C49552.24.7.58.3.1481058775.squirrel%40martin-wwwss5.ssl.supercp.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=utf-8">
   <LINK REL="Previous"  HREF="000868.html">
   <LINK REL="Next"  HREF="000870.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[pycrypto] Build error?</H1>
    <B>Martin Falatic</B> 
    <A HREF="mailto:pycrypto%40lists.dlitz.net?Subject=Re%3A%20%5Bpycrypto%5D%20Build%20error%3F&In-Reply-To=%3C49552.24.7.58.3.1481058775.squirrel%40martin-wwwss5.ssl.supercp.com%3E"
       TITLE="[pycrypto] Build error?">martin at falatic.com
       </A><BR>
    <I>Tue Dec  6 21:12:55 UTC 2016</I>
    <P><UL>
        <LI>Previous message: <A HREF="000868.html">[pycrypto] Build error?
</A></li>
        <LI>Next message: <A HREF="000870.html">[pycrypto] Build error?
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#869">[ date ]</a>
              <a href="thread.html#869">[ thread ]</a>
              <a href="subject.html#869">[ subject ]</a>
              <a href="author.html#869">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Consider the following rather basic but important bug in pycrypto:

<A HREF="https://github.com/dlitz/pycrypto/issues/187">https://github.com/dlitz/pycrypto/issues/187</A>

As you'll see there, I stumbled on it and even built a fixed version a few
months ago.

Revisiting this now, I just re-tested to see that pycryptodome already has
that fix in it.

Your mileage may vary, but pycryptodome is being actively developed and
maintained and is a drop-in replacement for pycrypto.

 - Marty



On Tue, December 6, 2016 04:56, Dave Pawson wrote:
&gt;<i> I downloaded and built from source which seems to work fine.
</I>&gt;<i> Shame really, it's a good library.
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i> regards
</I>&gt;<i>
</I>&gt;<i> On 6 December 2016 at 09:12, Martin Falatic &lt;<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">martin at falatic.com</A>&gt; wrote:
</I>&gt;<i>
</I>&gt;&gt;<i> Unfortunately, by all appearances PyCrypto seems to be dead. I would
</I>&gt;&gt;<i> consider Helder Eijs' &quot;PyCryptodome&quot; as a replacement. More information:
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> <A HREF="https://pycryptodome.readthedocs.io/en/latest/src/introduction.html">https://pycryptodome.readthedocs.io/en/latest/src/introduction.html</A>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> - Marty
</I>&gt;&gt;<i> @MartyMacGyver most places
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> On Fri, December 2, 2016 01:38, Dave Pawson wrote:
</I>&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> further investigations show:
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> # pip show pycrypto
</I>&gt;&gt;&gt;<i> Name: pycrypto
</I>&gt;&gt;&gt;<i> Version: 2.6.1
</I>&gt;&gt;&gt;<i> Summary: Cryptographic modules for Python.
</I>&gt;&gt;&gt;<i> Home-page: <A HREF="http://www.pycrypto.org/">http://www.pycrypto.org/</A>
</I>&gt;&gt;&gt;<i> Author: Dwayne C. Litzenberger
</I>&gt;&gt;&gt;<i> Author-email: <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">dlitz at dlitz.net</A>
</I>&gt;&gt;&gt;<i> License: UNKNOWN
</I>&gt;&gt;&gt;<i> Location: /usr/lib64/python2.7/site-packages
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> All my code is (now) Python 3.5.
</I>&gt;&gt;&gt;<i> Question if 3.5 code accesses 2.7 site-packages?
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> Is there a way round this please?
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> regards
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> On 2 December 2016 at 08:28, Dave Pawson &lt;<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">dave.pawson at gmail.com</A>&gt;
</I>&gt;&gt;&gt;<i> wrote:
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> Fedora 25, installing pycrypto 2.6.1
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> full build at <A HREF="http://pastebin.com/acC5r1YY">http://pastebin.com/acC5r1YY</A>
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> error reported
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file
</I>&gt;&gt;&gt;&gt;<i> or directory error: command 'gcc' failed with exit status 1
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> Searching for the error I found
</I>&gt;&gt;&gt;&gt;<i> <A HREF="https://bugs.launchpad.net/openstack-gate/+bug/1424582">https://bugs.launchpad.net/openstack-gate/+bug/1424582</A>
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> # dnf install redhat-rpm-config
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> which then brought
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> src/MD2.c:31:20: fatal error: Python.h: No such file or directory
</I>&gt;&gt;&gt;&gt;<i> #include &quot;Python.h&quot;
</I>&gt;&gt;&gt;&gt;<i> ^
</I>&gt;&gt;&gt;&gt;<i> compilation terminated. error: command 'gcc' failed with exit status
</I>&gt;&gt;&gt;&gt;<i> 1
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> dnf install python3-devel resolved that.
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> I'm lost now with
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> from Crypto.Cipher import AES ImportError: No module named 'Crypto'
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> Google has lots of varying suggestions, none of which
</I>&gt;&gt;&gt;&gt;<i> seem to work.
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> Any help please.
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> --
</I>&gt;&gt;&gt;&gt;<i> Dave Pawson
</I>&gt;&gt;&gt;&gt;<i> XSLT XSL-FO FAQ.
</I>&gt;&gt;&gt;&gt;<i> Docbook FAQ.
</I>&gt;&gt;&gt;&gt;<i> <A HREF="http://www.dpawson.co.uk">http://www.dpawson.co.uk</A>
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> --
</I>&gt;&gt;&gt;<i> Dave Pawson
</I>&gt;&gt;&gt;<i> XSLT XSL-FO FAQ.
</I>&gt;&gt;&gt;<i> Docbook FAQ.
</I>&gt;&gt;&gt;<i> <A HREF="http://www.dpawson.co.uk">http://www.dpawson.co.uk</A>
</I>&gt;&gt;&gt;<i> _______________________________________________
</I>&gt;&gt;&gt;<i> pycrypto mailing list <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">pycrypto at lists.dlitz.net</A>
</I>&gt;&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;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> _______________________________________________
</I>&gt;&gt;<i> pycrypto mailing list <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;&gt;<i>
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i> --
</I>&gt;<i> Dave Pawson
</I>&gt;<i> XSLT XSL-FO FAQ.
</I>&gt;<i> Docbook FAQ.
</I>&gt;<i> <A HREF="http://www.dpawson.co.uk">http://www.dpawson.co.uk</A>
</I>&gt;<i> _______________________________________________
</I>&gt;<i> pycrypto mailing list <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>&gt;<i>
</I>&gt;<i>
</I>

</PRE>


<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="000868.html">[pycrypto] Build error?
</A></li>
	<LI>Next message: <A HREF="000870.html">[pycrypto] Build error?
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#869">[ date ]</a>
              <a href="thread.html#869">[ thread ]</a>
              <a href="subject.html#869">[ subject ]</a>
              <a href="author.html#869">[ 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>