When I try to import pyprecice , I’m getting following error.
traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/temp_env/lib/python3.9/site-packages/precice/__init__.py", line 5, in <module>
from cyprecice import Participant, get_version_information
ImportError: libboost_log_setup.so.1.74.0: cannot open shared object file: No such file or directory
Hi,
you are most likely using the wrong Debian package of preCICE itself on your system.
Check the codename of the Debian/Ubuntu version you are using.
Best
Frédéric
Your error points to a linking problem between Boost and preCICE. Are you sure that the Boost library is present on the machine that you are working on? If yes, is it discoverable by preCICE? Perhaps an important question is: how did you build/install preCICE?
We have packages for multiple distributions. Installing the wrong package is a very common mistake.
Judging by the python version 3.9 and the missing boost version 1.74.0, you are running Ubuntu 20.04 LTS (focal) but installed the Debian package for Ubuntu 22.04 LTS (jammy).
Please download and install the Debian package ending in _focal.deb and you should be good to go.