Sundials installed but not running in python with assimulo

1.1k Views Asked by At

Cheerio,

I am trying to use Assimulo 2.9. on a Mac OS X. For that I downloaded and installed sundials via cmake by creating a builddir to the Download file and ../Downloads/sundials-2.7.0 running

        $cmake ../Downloads/sundials-2.7.0
        $make 
        $make install 

This should install everything in /usr/local. It gives me no error warning when doing this. But when I am trying to use assimulo in python, following error message occurs:

        from .sundials import IDA, CVode
        ImportError: No module named sundials

Any suggestions?

Thank you very much.

2

There are 2 best solutions below

0
On BEST ANSWER

The trick was to install everything through homebrew and get the missing sundials.so file. It seems that the current assimulo-2.9 distribution on pypi does not provide this shared object library and therefore triggers this error message.

0
On

I got the same error, in Anaconda(Ubuntu 18.04). I installed pyfmi first, and then installed the dependencies (assimulo, sundials) according to the error message. After everything was installed, the pyfmi was not working by running an fmu example.

But i uninstalled all the related software. Then i reinstalled everything with certain order. I found the order of installation matters, which are: sundials --> assimulo --> pyfmi. Everything is good now.