diff options
Diffstat (limited to 'pipermail/pycrypto/attachments/20100302/6f5ea7a8/attachment-0001.htm')
-rw-r--r-- | pipermail/pycrypto/attachments/20100302/6f5ea7a8/attachment-0001.htm | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/pipermail/pycrypto/attachments/20100302/6f5ea7a8/attachment-0001.htm b/pipermail/pycrypto/attachments/20100302/6f5ea7a8/attachment-0001.htm new file mode 100644 index 0000000..3608d74 --- /dev/null +++ b/pipermail/pycrypto/attachments/20100302/6f5ea7a8/attachment-0001.htm @@ -0,0 +1,112 @@ +<tt> +<html><br> +<head><br> +<style><!--<br> +.hmmessage P<br> +{<br> +margin:0px;<br> +padding:0px<br> +}<br> +body.hmmessage<br> +{<br> +font-size: 10pt;<br> +font-family:Verdana<br> +}<br> +--></style><br> +</head><br> +<body class='hmmessage'><br> +Hi Christoph<br><br>I did a quick search and found this:<br><br>http://gnuwin32.sourceforge.net/packages/diffutils.htm<br><br>diff is what is used to create the patch file. You then simply need to run patch to execute it on the necessary files.<br><br>Hope that helps.<br><br>If you still need help on fixing the issues let me know and I will see what I can do :)<br><br>Grail<br><br><hr id="stopSpelling">Date: Mon, 1 Mar 2010 21:37:42 +0100<br>From: christoph.tapler@gmx.net<br>To: pycrypto@lists.dlitz.net<br>Subject: Re: [pycrypto] FW: python crypto with python 3.0 or 3.1<br><br><br> +<br> +<br> +<br> +<br> + <br> +<br> +<br> +Hi Grail!<br><br> +<br><br> +I think in you need to return the pointer from the newly created<br> +module. Currently the return value seems to be a dangling pointer.<br><br> +A "return m" at the end of the generic init function in<br> +block_template.c may help.<br><br> +<br><br> +Btw, in Windows, there are still a few issues which prevent successful<br> +compilation. <br><br> +Should I generate a patch? If yes, could you probably give me a hint<br> +how to generate this patch?<br><br> +<br><br> +Btw, there seems to be a test suite included (python setup.py test).<br> +However, at that stage it is not too much of <br><br> +help, because the test suite itself needs to be adapted as well. In<br> +Python 2 the test suite works perfectly fine.<br><br> +<br><br> +Cheers,<br><br> +Christoph<br><br> +<br><br> +On 01.03.2010 01:02, Grail Dane wrote:<br> +<blockquote cite="mid:SNT132-w2669B1935D0D65EE9F7B9FB13C0@phx.gbl"><br> + <style><br> +.ExternalClass .ecxhmmessage P<br> +{padding:0px;}<br> +.ExternalClass body.ecxhmmessage<br> +{font-size:10pt;font-family:Verdana;}<br> +</style>Hello<br> +Christoph<br> + <div><br><br> + </div><br> + <div>I have made more head way since that one (and made a lot more<br> +changes).</div><br> + <div>I found that the module creation required a few more steps and I<br> +have come up&nbsp;</div><br> + <div>with two solutions (in attached patches):</div><br> + <div><br><br> + </div><br> + <div>1. First patch follows most of the online info I could find<br> +related to&nbsp;PyModuleDef and the related&nbsp;PyTypeObject.</div><br> + <div>&nbsp;&nbsp; This required that all tp_getattr functions be removed and<br> +set to 0 (zero) in the&nbsp;PyTypeObject definition.</div><br> + <div><br><br> + </div><br> + <div>2. The second patch retained the already created tp_getattr<br> +functions.</div><br> + <div><br><br> + </div><br> + <div>With either applied I am able to compile but when running a test<br> +program with the following lines only:</div><br> + <div><br><br> + </div><br> + <div>#!/usr/bin/env python</div><br> + <div><br><br> + </div><br> + <div>from Crypto.Cipher import AES</div><br> + <div>import base64</div><br> + <div>import os</div><br> + <div><br><br> + </div><br> + <div><br><br> + </div><br> + <div>When run I receive the following error:</div><br> + <div><br><br> + </div><br> + <div>Traceback (most recent call last):</div><br> + <div>&nbsp;&nbsp;File "./cypher.py", line 3, in &lt;module&gt;</div><br> + <div>&nbsp;&nbsp; &nbsp;from Crypto.Cipher import AES</div><br> + <div>SystemError: NULL result without error in PyObject_Call</div><br> + <div><br><br> + </div><br> + <div>So apply patches (and make necessary changes for Windows) and we<br> +will see if I can help further :)</div><br> + <div><br><br> + </div><br> + <div>Cheers Grail<br><br> + <br><br> + </div><br> + <hr>Get straight to the Point <a href="http://clk.atdmt.com/NMN/go/157637060/direct/01/">Find a great<br> +deal on your next car.</a> <br><br> + <hr> Browse profiles for free! <a href="http://clk.atdmt.com/NMN/go/150855801/direct/01/">View<br> +photos of singles in your area.</a><br> + <pre><fieldset class="ecxmimeAttachmentHeader"></fieldset><br>_______________________________________________<br>pycrypto mailing list<br><a class="ecxmoz-txt-link-abbreviated" href="mailto:pycrypto@lists.dlitz.net">pycrypto@lists.dlitz.net</a><br><a class="ecxmoz-txt-link-freetext" href="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</a><br> </pre><br> +</blockquote><br> +<br>                                            <br /><hr />With all the latest places, searching has never been easier. <a href='http://clk.atdmt.com/NMN/go/157631292/direct/01/' target='_new'>Looking for a new home?</a></body><br> +</html> +</tt> |