<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2655.35">
<TITLE>problem with libsip on AIX</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Arial">Hi all,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I have a problem importing libsip during startup of a python/qt application on AIX 5.1.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Some background:</FONT>
<BR><FONT SIZE=2 FACE="Arial">I am trying to get a GUI running on several platforms.&nbsp; The application was originally developed using python and qt on Solaris and Windows, with future platform support in mind.&nbsp; So far, I have managed to get it working on HP-UX 11, without major obstacles.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">On AIX, everything started fairly well - I only had to modify few makefiles to add python2.2 to the LIBS list for the tools to build (maybe this was a first indication of some mistake on my part - shouldn't libpython2.2 be included in the LIBS list if it was necessary?).</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Once I had all the supporting tools and libraries built, my app built without problems.</FONT>
<BR><FONT SIZE=2 FACE="Arial">But an attempt to run the application resulted in &quot;ImportError: no module named libsip&quot; from qt.py, line &quot;import libsip&quot;</FONT></P>

<P><FONT SIZE=2 FACE="Arial">A quick investigation revealed that python searches for libsip.so, but the sip installation only created a link libsip.a -&gt; libsip.so.10.1.0</FONT></P>

<P><FONT SIZE=2 FACE="Arial">I tried creating libsip.so -&gt; libsip.so.10.1.0, just to see what would happen, and got a Segmentation Fault on &quot;import libsip&quot;</FONT></P>

<P><FONT SIZE=2 FACE="Arial">It appears that my sip library is not built correctly for use on AIX, but I cannot figure out what I am doing wrong.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Can anyone help me out with this problem?&nbsp; Is anyone using python/qt/sip/pyqt on AIX? (there does not seem to be many AIX related posts in the arvchive).</FONT></P>

<P><FONT SIZE=2 FACE="Arial">My configuration:</FONT>
<BR><FONT SIZE=2 FACE="Arial">- AIX 5.1</FONT>
<BR><FONT SIZE=2 FACE="Arial">- python 2.2.3</FONT>
<BR><FONT SIZE=2 FACE="Arial">- Qt 3.1.2</FONT>
<BR><FONT SIZE=2 FACE="Arial">- sip 3.7</FONT>
<BR><FONT SIZE=2 FACE="Arial">- PyQt 3.7</FONT>
<BR><FONT SIZE=2 FACE="Arial">- qscintilla 1.53</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">All tools were built with --prefix=... (since I cannot write to /usr/local), python was built with --disable-ipv6 and qt was built with -thread.&nbsp; Other than that, default settings were used.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Thanks in advance,</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">Michal</FONT>
</P>

</BODY>
</HTML>