<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
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"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
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 moz-do-not-send="true"
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 moz-do-not-send="true"
href="http://clk.atdmt.com/NMN/go/150855801/direct/01/" target="_new">View
photos of singles in your area.</a>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
pycrypto mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pycrypto@lists.dlitz.net">pycrypto@lists.dlitz.net</a>
<a class="moz-txt-link-freetext" href="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</a>
</pre>
</blockquote>
<br>
</body>
</html>