diff options
Diffstat (limited to 'pipermail/pycrypto/2010q2/000240.html')
-rw-r--r-- | pipermail/pycrypto/2010q2/000240.html | 126 |
1 files changed, 126 insertions, 0 deletions
diff --git a/pipermail/pycrypto/2010q2/000240.html b/pipermail/pycrypto/2010q2/000240.html new file mode 100644 index 0000000..8a3adc9 --- /dev/null +++ b/pipermail/pycrypto/2010q2/000240.html @@ -0,0 +1,126 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [pycrypto] _fastmath None !! + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:pycrypto%40lists.dlitz.net?Subject=%5Bpycrypto%5D%20_fastmath%20None%20%21%21&In-Reply-To=681951.67356.qm%40web114214.mail.gq1.yahoo.com"> + <META NAME="robots" CONTENT="index,nofollow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="000239.html"> + <LINK REL="Next" HREF="000241.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[pycrypto] _fastmath None !!</H1> + <B>Lorenz Quack</B> + <A HREF="mailto:pycrypto%40lists.dlitz.net?Subject=%5Bpycrypto%5D%20_fastmath%20None%20%21%21&In-Reply-To=681951.67356.qm%40web114214.mail.gq1.yahoo.com" + TITLE="[pycrypto] _fastmath None !!">don at amberfisharts.com + </A><BR> + <I>Mon May 17 09:40:50 CST 2010</I> + <P><UL> + <LI>Previous message: <A HREF="000239.html">[pycrypto] _fastmath None !! +</A></li> + <LI>Next message: <A HREF="000241.html">[pycrypto] _fastmath None !! +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#240">[ date ]</a> + <a href="thread.html#240">[ thread ]</a> + <a href="subject.html#240">[ subject ]</a> + <a href="author.html#240">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>Hi again, + +no idea what's going wrong. normally pycrypto should fall back to _slowmath (a pure python implementation) when gmp is +not installed meaning _fastmath is not available (_fastmath is a C implementation using gmp). + +Maybe you could prvide some more information, like python version, pycrypto version, is gmp installed? +Also it would be a good idea to provide a small/minimalistic example demonstrating the problem. +That way it is easyier to figure out if it's a bug in pycrypto or in your code. + +cheers, +//Lorenz + + + +On 05/17/2010 04:48 PM, jd wrote: +><i> Hi Guys +</I>><i> I am serializing the pycrypto keys using pickle.. as suggested in one of recent posts. It is working fine, but giving following problem on cenos 5.1. (stack at the bottom of email) +</I>><i> +</I>><i> 'NoneType' object has no attribute 'rsa_construct' +</I>><i> +</I>><i> +</I>><i> I looked at the code.. it seems while constructing _fastmath is used. Any workarounds / fixes ? I do not think changing to saving tuple would help as it would also need to use __setstate__.. +</I>><i> +</I>><i> Help is greatly appreciated. +</I>><i> Thanks +</I>><i> /Jd +</I>><i> +</I>><i> File "/tg2env/bin/paster", line 7, in ? +</I>><i> sys.exit( +</I>><i> File "/tg2env/lib/python2.4/site-packages/PasteScript-1.7.3-py2.4.egg/paste/script/command.py", line 84, in run +</I>><i> invoke(command, command_name, options, args[1:]) +</I>><i> File "/tg2env/lib/python2.4/site-packages/PasteScript-1.7.3-py2.4.egg/paste/script/command.py", line 123, in invoke +</I>><i> exit_code = runner.run(args) +</I>><i> File "/tg2env/lib/python2.4/site-packages/PasteScript-1.7.3-py2.4.egg/paste/script/command.py", line 218, in run +</I>><i> result = self.command() +</I>><i> File "/tg2env/lib/python2.4/site-packages/PasteScript-1.7.3-py2.4.egg/paste/script/serve.py", line 276, in command +</I>><i> relative_to=base, global_conf=vars) +</I>><i> File "/tg2env/lib/python2.4/site-packages/PasteScript-1.7.3-py2.4.egg/paste/script/serve.py", line 311, in loadapp +</I>><i> return loadapp( +</I>><i> File "/tg2env/lib/python2.4/site-packages/PasteDeploy-1.3.3-py2.4.egg/paste/deploy/loadwsgi.py", line 204, in loadapp +</I>><i> return loadobj(APP, uri, name=name, **kw) +</I>><i> File "/tg2env/lib/python2.4/site-packages/PasteDeploy-1.3.3-py2.4.egg/paste/deploy/loadwsgi.py", line 225, in loadobj +</I>><i> return context.create() +</I>><i> File "/tg2env/lib/python2.4/site-packages/PasteDeploy-1.3.3-py2.4.egg/paste/deploy/loadwsgi.py", line 625, in create +</I>><i> return self.object_type.invoke(self) +</I>><i> File "/tg2env/lib/python2.4/site-packages/PasteDeploy-1.3.3-py2.4.egg/paste/deploy/loadwsgi.py", line 110, in invoke +</I>><i> return fix_call(context.object, context.global_conf, **context.local_conf) +</I>><i> File "/tg2env/lib/python2.4/site-packages/PasteDeploy-1.3.3-py2.4.egg/paste/deploy/util/fixtypeerror.py", line 57, in fix_call +</I>><i> val = callable(*args, **kw) +</I>><i> File "/m2svn/trunk/src/app/web/app/app/config/middleware.py", line 46, in make_app +</I>><i> if verify_license(): +</I>><i> File "/m2svn/trunk/src/app/web/app/app/core/utils/utils.py", line 2221, in verify_license +</I>><i> l_info = read_license_using_embeded(license_file) +</I>><i> File "/m2svn/trunk/src/app/web/app/app/core/utils/utils.py", line 2202, in read_license_using_embeded +</I>><i> pub_key =get_embeded_key() +</I>><i> File "/m2svn/trunk/src/app/web/app/app/core/utils/utils.py", line 2197, in get_embeded_key +</I>><i> key = pickle.loads(str) +</I>><i> File "/usr/lib64/python2.4/pickle.py", line 1394, in loads +</I>><i> return Unpickler(file).load() +</I>><i> File "/usr/lib64/python2.4/pickle.py", line 872, in load +</I>><i> dispatch[key](self) +</I>><i> File "/usr/lib64/python2.4/pickle.py", line 1237, in load_build +</I>><i> setstate(state) +</I>><i> File "build/bdist.linux-x86_64/egg/Crypto/PublicKey/RSA.py", line 171, in __setstate__ +</I>><i> AttributeError: 'NoneType' object has no attribute 'rsa_construct' +</I>><i> +</I> +</PRE> + + + + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="000239.html">[pycrypto] _fastmath None !! +</A></li> + <LI>Next message: <A HREF="000241.html">[pycrypto] _fastmath None !! +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#240">[ date ]</a> + <a href="thread.html#240">[ thread ]</a> + <a href="subject.html#240">[ subject ]</a> + <a href="author.html#240">[ 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> |