code-saturne installed from debian package fails to start

All questions about installation
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
cwinant
Posts: 17
Joined: Wed Apr 08, 2020 9:54 pm

code-saturne installed from debian package fails to start

Post by cwinant »

I am new to code-saturne. I am using debian bullseye, where the package code-saturne is available so
sudo apt install code-saturnes loads a long list of packages, however when the program is invoked:

abraca@GTV:~$ code_saturne
Traceback (most recent call last):
File "/usr/bin/code_saturne", line 67, in <module>
from cs_script import master_script
ModuleNotFoundError: No module named 'cs_script'

I have noticed similar reports on Ubuntu. Is there a work-around?
Yvan Fournier
Posts: 3461
Joined: Mon Feb 20, 2012 3:25 pm

Re: code-saturne installed from debian package fails to start

Post by Yvan Fournier »

Hello,

I can reproduce this using Debian unstable. This is a Debian packaging error, so you can file a bug with the Debian team, linking to this post and the workaround/explaination below. I can also contact the Debian maintainer myself.

Adding:
export PYTHONPATH=/usr/lib/python3/dist-packages/code_saturne:$PYTHONPATH
to your environment helps you workaround the issue, but should not be necessary on the user side (it should be directly handled by the wrapper command).

Best regards,

Yvan
cwinant
Posts: 17
Joined: Wed Apr 08, 2020 9:54 pm

Re: code-saturne installed from debian package fails to start

Post by cwinant »

That does the trick. I am not sure how to send this bug report to the maintainer, so it would be best if you did that; telling me briefly how to do that would help me in the future and save you a little time?

I am so grateful
Post Reply