<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000">
<DIV>I don’t know the Python interfaces to Ipopt very well. One thing you might
try is configuring Ipopt with --enable-dependency-linking, I think that can be
necessary to dlopen Ipopt shared libraries including their dependencies from
Python or Julia or other languages. You won’t have dll’s on Ubuntu, you’ll have
.so shared libraries.</DIV>
<DIV> </DIV>
<DIV>-Tony</DIV>
<DIV> </DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV style="FONT: 10pt tahoma">
<DIV> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A
title=vyacheslav.kungurtsev@esat.kuleuven.be
href="mailto:vyacheslav.kungurtsev@esat.kuleuven.be">Vyacheslav Kungurtsev</A>
</DIV>
<DIV><B>Sent:</B> Friday, November 21, 2014 7:32 AM</DIV>
<DIV><B>To:</B> <A title=kelman@berkeley.edu
href="mailto:kelman@berkeley.edu">Tony Kelman</A> </DIV>
<DIV><B>Cc:</B> <A title=ipopt@list.coin-or.org
href="mailto:ipopt@list.coin-or.org">ipopt@list.coin-or.org</A> </DIV>
<DIV><B>Subject:</B> ipopt with python</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV dir=ltr>
<DIV>
<DIV>Hello,<BR><BR></DIV>
<DIV>Somehow after the weekend I tried again and ipopt installed just fine and
the examples ran OK. I have no idea what happened.<BR><BR><BR><BR></DIV>
<DIV>Now I am trying to run ipopt with python, and having trouble with both
pyipopt and cyipopt<BR><BR>With pyipopt:<BR><BR><BR>the error appears
as:<BR><BR>~/pyipopt/examples$ python hs071.py<BR>Traceback (most recent call
last):<BR> File "hs071.py", line 6, in
<module><BR> import pyipopt<BR> File
"/usr/local/lib/python2.7/
<DIV>dist-packages/pyipopt/__init__.py", line 16, in
<module><BR> from pyipoptcore import *<BR>ImportError:
/usr/local/lib/python2.7/dist-packages/pyipopt/pyipoptcore.so: undefined symbol:
_ZTVN10__cxxabiv117__class_type_infoE<BR><BR><BR></DIV>Indeed, it so happens
that:<BR><BR>$ nm /usr/local/lib/python2.7/dist-
<DIV>packages/pyipopt/pyipoptcore.so | grep
_ZTVN10__cxxabiv117__class_type_infoE<BR>
U _ZTVN10__cxxabiv117__class_type_infoE<BR><BR><BR></DIV>the symbol arises from
libstdc++ and I have tried adding it to setup.py as
such:<BR>
extra_link_args=['-libstdc++']
<DIV>, <BR><BR></DIV>or<BR><BR>
extra_link_args=['-libstdc++', + IPOPT_LIB],
<BR><BR>or<BR><BR> libraries=[
<BR>...<BR>
'coinmetis','libstdc++',<BR>
<DIV>...<BR><BR></DIV>
<DIV>and in all cases setup.py installs with no error, but the import error
remains when I try to run the example. <BR><BR></DIV>Do you have any
suggestions? Am I linking it improperly in the setup file?<BR><BR></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>With cyipopt the setup.py requires:<BR>these<BR>
IPOPT_ICLUDE_DIRS=['include_mt/coin', np.get_include()]<BR>
IPOPT_LIBS=['Ipopt39', 'IpoptFSS']<BR>
IPOPT_LIB_DIRS=['lib_mt/x64/release']<BR>
IPOPT_DLL=['Ipopt39.dll', 'IpoptFSS39.dll']<BR></DIV>
<DIV>to be set correctly. I am not quite sure how to find the proper
directories. Would I even have dll files given that I am running
ubuntu?<BR><BR></DIV>
<DIV>Sorry if the question is rather basic. <BR></DIV>
<DIV><BR><BR>some info about my computer, if it helps:<BR></DIV>Ubuntu
14.04<BR>gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2<BR>g++ (Ubuntu 4.8.2-19ubuntu1)
4.8.2<BR><BR><BR><BR><BR></DIV>
<DIV>Thank you<BR><BR></DIV>
<DIV class=gmail_extra>
<DIV> </DIV></DIV></DIV></DIV></DIV></DIV></BODY></HTML>