<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><br></div><div><br></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"><br><div class="gmail_quote">On Fri, Nov 14, 2014 at 11:27 PM, Tony Kelman <span dir="ltr"><<a href="mailto:kelman@berkeley.edu" target="_blank">kelman@berkeley.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div dir="ltr">
<div style="FONT-SIZE:12pt;FONT-FAMILY:'Calibri';COLOR:#000000">
<div>Yes, as much additional information as you can provide. What OS (Linux
distribution?) and compiler versions? What are the contents of that
IpLimMemQuasiNewtonUpdater.lo file? It should be a ~10 line text file. If
something went wrong during compilation of the IpLimMemQuasiNewtonUpdater.cpp
source, the best way to figure out what’s happening is to upload full config.log
files (both from the top-level and the Ipopt subdirectory), and a log of all the
output from make to see if there were any unusual warnings or errors you may
have missed.</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><b>From:</b> <a title="vyacheslav.kungurtsev@esat.kuleuven.be" href="mailto:vyacheslav.kungurtsev@esat.kuleuven.be" target="_blank">Vyacheslav Kungurtsev</a>
</div>
<div><b>Sent:</b> Thursday, November 13, 2014 2:35 AM</div>
<div><b>To:</b> <a title="ipopt@list.coin-or.org" href="mailto:ipopt@list.coin-or.org" target="_blank">ipopt@list.coin-or.org</a> </div>
<div><b>Subject:</b> [Ipopt] libtool error during installation</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><div class="h5">
<div dir="ltr">
<div>
<div>
<div>Hello all,<br><br></div>I am installing Ipopt on a new machine, and third
party installation and configure seems to work fine, but I get the following
error with make:<br><br><br><br>make[3]: Entering directory
`/home/slava/CoinIpopt/Ipopt/src/Algorithm'<br>/bin/bash ../../../libtool
--tag=CXX --mode=link g++ -O3 -pipe -DNDEBUG -pedantic-errors
-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings
-Wconversion -Wno-unknown-pragmas -Wno-long-long
-DIPOPT_BUILD -o <a href="http://libipoptalg.la" target="_blank">libipoptalg.la</a>
IpAdaptiveMuUpdate.lo IpAlgBuilder.lo IpAlgorithmRegOp.lo
IpAugRestoSystemSolver.lo IpBacktrackingLineSearch.lo
IpDefaultIterateInitializer.lo IpEquilibrationScaling.lo
IpExactHessianUpdater.lo IpFilter.lo IpFilterLSAcceptor.lo
IpGenAugSystemSolver.lo IpGradientScaling.lo IpIpoptAlg.lo
IpIpoptCalculatedQuantities.lo IpIpoptData.lo IpIteratesVector.lo
IpLeastSquareMults.lo IpLimMemQuasiNewtonUpdater.lo IpLoqoMuOracle.lo
IpLowRankAugSystemSolver.lo IpLowRankSSAugSystemSolver.lo IpMonotoneMuUpdate.lo
IpNLPBoundsRemover.lo IpNLPScaling.lo IpOptErrorConvCheck.lo IpOrigIpoptNLP.lo
IpOrigIterationOutput.lo IpPDFullSpaceSolver.lo IpPDPerturbationHandler.lo
IpPDSearchDirCalc.lo IpPenaltyLSAcceptor.lo IpProbingMuOracle.lo
IpQualityFunctionMuOracle.lo IpRestoConvCheck.lo IpRestoFilterConvCheck.lo
IpRestoIpoptNLP.lo IpRestoIterateInitializer.lo IpRestoIterationOutput.lo
IpRestoMinC_1Nrm.lo IpRestoPenaltyConvCheck.lo IpRestoRestoPhase.lo
IpStdAugSystemSolver.lo IpTimingStatistics.lo IpUserScaling.lo
IpWarmStartIterateInitializer.lo <br>libtool: link:
`IpLimMemQuasiNewtonUpdater.lo' is not a valid libtool object<br>make[3]: ***
[<a href="http://libipoptalg.la" target="_blank">libipoptalg.la</a>] Error 1<br>make[3]: Leaving
directory `/home/slava/CoinIpopt/Ipopt/src/Algorithm'<br>make[2]: ***
[all-recursive] Error 1<br>make[2]: Leaving directory
`/home/slava/CoinIpopt/Ipopt/src/Algorithm'<br>make[1]: *** [all-recursive]
Error 1<br>make[1]: Leaving directory
`/home/slava/CoinIpopt/Ipopt'<br><br><br></div>Any suggestions would be
appreciated. Let me know if you need more information about my system or
anything.<br><br>Thank you<br><br>Best regards,<br></div>~Vyacheslav
Kungurtsev<br>
<div>
<div>
<div> </div></div></div></div>
</div></div><p>
</p><hr>
_______________________________________________<br>Ipopt mailing
list<br><a href="mailto:Ipopt@list.coin-or.org" target="_blank">Ipopt@list.coin-or.org</a><br><a href="http://list.coin-or.org/mailman/listinfo/ipopt" target="_blank">http://list.coin-or.org/mailman/listinfo/ipopt</a><br><p></p></div></div></div></div>
</blockquote></div><br></div></div>