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?
code-saturne installed from debian package fails to start
Forum rules
Please read the forum usage recommendations before posting.
Please read the forum usage recommendations before posting.
-
- Posts: 4119
- Joined: Mon Feb 20, 2012 3:25 pm
Re: code-saturne installed from debian package fails to start
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:
Best regards,
Yvan
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:
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).export PYTHONPATH=/usr/lib/python3/dist-packages/code_saturne:$PYTHONPATH
Best regards,
Yvan
Re: code-saturne installed from debian package fails to start
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
I am so grateful