Appropriate versions of CasADi and Python

153 views
Skip to first unread message

Duc Doan

unread,
Jul 29, 2015, 4:02:22 AM7/29/15
to CasADi
Dear all,

I am Duc from the University of Tokyo. I am trying to install CasADi for running on Python. I got a installation problem caused by the incompatibility of versions: CasADi and Python I think. I spent two days for correcting it, but I failed totally. I am using Window 7, 64-bit operating system.

I am appreciated if you can tell me exactly appropriate versions of CasADi and Python also for setting up.

Thank you very much for your time.

Sincerely,
Duc

Joris Gillis

unread,
Jul 29, 2015, 4:12:37 AM7/29/15
to CasADi, doanvand...@gmail.com
Hello Duc,

It is recommended to use the latest version of casadi, 2.3.0.
This works for Python 2.7.* series.

Did you install from source or download our binaries (recommended) from http://files.casadi.org ?
Can you give us the exact error messages you are experiencing?
Win 7, 64-bit should not be any problem in principle..


Best regards,
  Joris Gillis

Joris Gillis

unread,
Jul 29, 2015, 5:01:33 AM7/29/15
to CasADi, doanvand...@gmail.com, joris.g...@gmail.com
Dear Duc,

So far we provide only binaries for 32-bit Python running on 64-bit Windows.
For a 64-bit Python we need to set up an extra build script.

Since this is a mild effort, you can expect a new downloadable binary for
you in the following days...

Best regards,
   Joris Gillis

Duc Doan

unread,
Oct 2, 2015, 9:22:08 PM10/2/15
to Joris Gillis, CasADi
Dear Mr. Joris Gillis,

Thank you so much for your previous supports.

Now I have another problem on importing XML file to CasADi. I want to use single-shooting or multiple-shooting methods (not collocation method available in CasADi), so I need symbolic equations and variables from XML file.

Configuration of my computer: Windows 7, RAM 8GB, 64-bit OS.
The version of JModelica: JModelica.org-SDK-1.11.
Below are errors when I compile in Python.

===================================================
Traceback (most recent call last):
  File "C:\JModelica.org-SDK-1.11\install\Python\pyjmi\examples\EV_test.py", line 45, in <module>
    dop_EV1.parseFMI('modelDescription.xml')
  File "C:\JModelica.org-SDK-1.11\install\Python\casadi\casadi_core.py", line 37624, in parseFMI
    return _casadi_core.SymbolicOCP_parseFMI(self, *args)
RuntimeError: The assertion "handle!=0" on line 153 of file "c:/JModelica.org-SDK-1.11/src/ThirdParty/CasADi/CasADi/casadi/core/misc/../function/plugin_interface.hpp" failed. 
PluginInterface::loadPlugin: Cannot load shared library:
  Tried libcasadi_xmlfile_tinyxml.dll:
    Error code (WIN32): 126
  Tried: c:/JModelica.org-SDK-1.11/install/ThirdParty/CasADi/lib\libcasadi_xmlfile_tinyxml.dll:
    Error code (WIN32): 126
  Tried: .\libcasadi_xmlfile_tinyxml.dll:
    Error code (WIN32): 126
===================================================

Thank you very much for reading.

Sincerely,
Duc



--
Yours sincerely,
=====================================================
Van-Duc DOAN,
東京大学大学院工学系研究科電気系工学専攻古関研究室
D1, Koseki Laboratory
Department of Electrical Engineering and Information Systems
Graduate School of Engineering, The University of Tokyo
Room 123D1, 12th Floor, Engineering Building 2
7-3-1 Hongo, Bunkyo-ku, Tokyo, 113-8656, Japan
Tel: 0081-3-5841-6791     Cellphone: 0081-80-3344-4118
Skype: ducdv.vn
=====================================================

Joel Andersson

unread,
Oct 3, 2015, 2:50:32 AM10/3/15
to CasADi, joris.g...@gmail.com
Hi Duc,

For questions on Modelica-CasADi interoperability, please ask in the JModelica forum. Make sure that you don't install the packages separately, with potentially conflicting versions, but that the CasADi version is the one required by the JModelica release in question.

Best regards,
Joel
Reply all
Reply to author
Forward
0 new messages