<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
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>
Hi Grail!<br>
<br>
I think in you need to return the pointer from the newly created
module. Currently the return value seems to be a dangling pointer.<br>
A "return m" at the end of the generic init function in
block_template.c may help.<br>
<br>
Btw, in Windows, there are still a few issues which prevent successful
compilation. <br>
Should I generate a patch? If yes, could you probably give me a hint
how to generate this patch?<br>
<br>
Btw, there seems to be a test suite included (python setup.py test).
However, at that stage it is not too much of <br>
help, because the test suite itself needs to be adapted as well. In
Python 2 the test suite works perfectly fine.<br>
<br>
Cheers,<br>
Christoph<br>
<br>
On 01.03.2010 01:02, Grail Dane wrote:
<blockquote cite="mid:SNT132-w2669B1935D0D65EE9F7B9FB13C0@phx.gbl">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</style>Hello
Christoph
<div><br>
</div>
<div>I have made more head way since that one (and made a lot more
changes).</div>
<div>I found that the module creation required a few more steps and I
have come up </div>
<div>with two solutions (in attached patches):</div>
<div><br>
</div>
<div>1. First patch follows most of the online info I could find
related to PyModuleDef and the related PyTypeObject.</div>
<div> This required that all tp_getattr functions be removed and
set to 0 (zero) in the PyTypeObject definition.</div>
<div><br>
</div>
<div>2. The second patch retained the already created tp_getattr
functions.</div>
<div><br>
</div>
<div>With either applied I am able to compile but when running a test
program with the following lines only:</div>
<div><br>
</div>
<div>#!/usr/bin/env python</div>
<div><br>
</div>
<div>from Crypto.Cipher import AES</div>
<div>import base64</div>
<div>import os</div>
<div><br>
</div>
<div><br>
</div>
<div>When run I receive the following error:</div>
<div><br>
</div>
<div>Traceback (most recent call last):</div>
<div> File "./cypher.py", line 3, in <module></div>
<div> from Crypto.Cipher import AES</div>
<div>SystemError: NULL result without error in PyObject_Call</div>
<div><br>
</div>
<div>So apply patches (and make necessary changes for Windows) and we
will see if I can help further :)</div>
<div><br>
</div>
<div>Cheers Grail<br>
<br>
</div>
<hr>Get straight to the Point <a href="http://clk.atdmt.com/NMN/go/157637060/direct/01/">Find a great
deal on your next car.</a> <br>
<hr> Browse profiles for free! <a href="http://clk.atdmt.com/NMN/go/150855801/direct/01/">View
photos of singles in your area.</a>
<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>
</blockquote>
<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>
</html>