<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial; font-size: 13px; "><span style="font-family: Arial; font-size: 14px; white-space: pre; "><div>I have embedded Python in a shared library. This works fine in Windows (dll), but I get the following error is Ubuntu when I try to load modules:</div>
<div><br></div>/usr/lib/python2.5/lib-<wbr>dynload/<strong style="background-color: rgb(221, 255, 118); padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; ">time.so</strong>: error: symbol lookup
error: 
<strong style="background-color: rgb(221, 255, 118); padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; ">undefined</strong> symbol: PyExc_ValueError</span><br><div><span style="font-size: 14px; white-space: pre; "><br>
</span></div><div><span style="font-size: 14px; white-space: pre; "><br></span></div><div><span style="font-size: 14px; white-space: pre; ">I found many postings on this issue on the internet, but I was not able to find a solution that worked. I tried to load libpython2.5.so.1 into my program using dlopen, but that crashed the program for some reason. I tried building my library using the libpython2.5.a, but the same error was there.</span></div><div><span style="font-size: 14px; white-space: pre; "><br></span></div><div><span style="font-size: 14px; white-space: pre; ">I am sure someone has a solution to this, since it seems like a general issue. </span></div></span></div><div style="position:fixed"></div></div><br>

      </body></html>