<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
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&nbsp;</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&nbsp;PyModuleDef and the related&nbsp;PyTypeObject.</div><div>&nbsp;&nbsp; This required that all tp_getattr functions be removed and set to 0 (zero) in the&nbsp;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>&nbsp;&nbsp;File "./cypher.py", line 3, in &lt;module&gt;</div><div>&nbsp;&nbsp; &nbsp;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><div style="z-index: -1; position:absolute; top:0px; left: 0px; width: 100%; height: 3338px;"></div>                                               <br /><hr /> Browse profiles for free! <a href='http://clk.atdmt.com/NMN/go/150855801/direct/01/' target='_new'>View photos of singles in your area.</a></body>
</html>