Page 1 of 1

code-saturne installed from debian package fails to start

Posted: Wed Apr 08, 2020 10:18 pm
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?

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

Posted: Thu Apr 09, 2020 12:31 am
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

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

Posted: Thu Apr 09, 2020 12:55 am
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