Installation of the python bindings for preCICE

Hi everyone!

I’m dealing with the installation of python bindings for preCICE (version 2.5.0).
I’ve alredy installed both preCICE and python bindings, but when I try to run a tutorial (in my case the Flow around controlled moving cylinder one, it give me an error with this message:

Started on: Wed, 17 Jul 2024 15:47:42 +0200
Namespace(configurationFileName='../precice-config.xml')
Traceback (most recent call last):
  File "solid.py", line 48, in <module>
    participant = precice.Participant(participant_name, configuration_file_name,
AttributeError: module 'precice' has no attribute 'Participant'

I don’t know if I’m doing something wrong with the intallation, beacuse I’ve alredy used precice by coupling openFOAM and CalculiX and it went well without any errors.
Thank you in advance.

Hi @leonardo

The error AttributeError: module ‘precice’ has no attribute ‘Participant’ means that you have installed the Python bindings corresponding to preCICE version 3.x. Please install the latest version of the Python bindings in the v2.5.x series (v2.5.0.4) to make the bindings work with preCICE v2.5.0.

Thank you so much for the reply, I solved my problem!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.