<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Thanks for the hint. The thing is that I didn't actually define
PyInitEntity - SIP did it. Will have to search for the error there.
<br>
<br>
Best, <br>
<br>
<br>
Eddy<br>
<br>
<br>
<div class="moz-cite-prefix">Am 10.04.2014 22:24, schrieb Colin
McPhail:<br>
</div>
<blockquote cite="mid:li6umg$aj1$1@ger.gmane.org" type="cite">
<pre wrap="">On 2014-04-08, Eddy Ilg <a class="moz-txt-link-rfc2396E" href="mailto:me@eddy-ilg.net"><me@eddy-ilg.net></a> wrote:
...
</pre>
<blockquote type="cite">
<pre wrap="">However, I decided to try with Python 3.4. I recompiled everything and
now I am getting the following error message:
Python 3.4.0 (default, Apr 8 2014, 22:02:32)
[GCC 4.6.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">import Entity
</pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap="">Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dynamic module does not define init function (PyInit_Entity)
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite"> </blockquote>
</blockquote>
</blockquote>
<pre wrap="">Checking the symbols of Entity.so gives:
# nm Entity.so | grep PyInit_Entity
0000000000001e5c t PyInit_Entity
0000000000206850 b _ZZ13PyInit_EntityE11sip_methods
00000000002062c0 d _ZZ13PyInit_EntityE14sip_module_def
The function is clearly there! Why can it not be found by python?
</pre>
</blockquote>
<pre wrap="">I believe that the fact that the type letter in front of PyInit_Entity is 't'
rather than 'T' means that it is only visible within your shared object. If
that is the case then the Python runtime can't find it. Maybe PyInit_Entity
is defined as static (or non-global) in your source?
-- CMcP
_______________________________________________
PyQt mailing list <a class="moz-txt-link-abbreviated" href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a>
<a class="moz-txt-link-freetext" href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<title></title>
<style type="text/css">
.mits, .mits table {font-family: verdana; font-size: 12px; color: inherit; }
.mits b { font-size: 14px; }
</style>
<div class="mits"> <br>
<a href="http://www.eddy-ilg.de"><img
src="cid:part4.07040404.00020909@eddy-ilg.net"></a><br>
<br>
Gluckstraße 9<br>
79104 Freiburg<br>
Tel. 0173 2063585 </div>
</div>
</body>
</html>