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