-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'code_saturne.Base' #1
Comments
Hello, That tutorial is probably obsolete. Paths such as The installation instructions in https://github.com/code-saturne/salome_cfd_extensions/blob/master/README.md are a bit minimalist, but are at least up to date. Also, with SALOME 9.11, the SSL (server-less) mode is active by default, so an additional change my be needed to force the previous mode (I added a v8.0_pre_ssl branch so fixes can go there if needed). Unless I am mistaken, starting with SALOME 9.12, the previous CORBA-based mode is removed, with only the SSL mode enabled (this is simpler and lighter), so the old way of running virtual SALOME applications is removed. Meaning the launch mechanism used for salome_cfd will not work anymore. This is not yet handled in the salome_cfd_extensions installer, and not a priority, as that module is not used much (and not very useful, as the workbench integration is not a game-changer), but I may try to handle that in a coupled of months, if nobody tackles this before that. |
I have the same issue as @alcarnielo. When I installed the Master Branch of salome cfd extension, it compiled successfully, but no /usr/local/bin/salome_cfd When I installed the Branch v8.0_pre_ssl of salome cfd extension, it compiled succesfully, now whenever I type /usr/local/bin/salome_cfd, I got salome running with cfdstudy icon. But when I clicked the icon I got "Failed to activate module CFDSTUDY" message.
PS: I have tried installing Code Saturne 7.0 (the same as youtube video), but failed due to broken link. @alcarnielo : Have you solved the problem. I came here also following the Youtube Tutorial. Thanks for sharing @YvanFournier : A detailed description would be helpful especially for a newbie like me. Many thanks |
Hello @batoceragaming, The error you have might be due to an incorrectly specified Which version of SALOME are you using ? What is the config.log of your installation ? The README.md file for this module was updated for recent SALOME versions (such as 9.12), which may be incompatible with the pre-ssl branches. And for the SSL mode, there is no "salome_cfd" script anymore, but there is a configure/install option to directly add the module in you main SALOME installation. The installation is quite different from the pre-SSL version, but this is needed to keep up to date with SALOME changes. |
@YvanFournier : Currenty I use the latest Salome (9.12.0). Where can I find the config.log? If there is no "salome_cfd" anymore. Then How can I activate the salome_cfd extension? As I mentioned above, I have tried both pre SSL and the master build.
Is there any simpler method to install salome_cfd extension like in FREECAD where there is a workbench? or like Code Aster which is built in Salome Meca? I am pretty sure that more people especially the newbie like me that would love to use salome cfd. The only hurdle is the installation which is very difficult in my opinion. Many Thanks |
config.log |
Hello @batoceragaming, Your You can try the following command line (adapted to your paths:
This will install the salome_cfd extensions in an EDF subdirectory in your main SALOME install. In the SALOME Desktop, a code_saturne icon should appear on the toolbar if everything is good. The |
I used the latest salome cfd extension and your script, everything seems ok Here is my step by step:
|
Hello, The path above is incorrect (typo on my side). Try OMNIIDL=/home/bato/salome/SALOME-9.12.0/BINARIES-UB22.04/omniORB/bin/omniidl. So for the whole,
If you still have the error, check if there a CORBA.h file somewhere in the SALOME-9.12.0 tre. The binaries might contain different prerequisites for Ubuntu 22 and Debian 11, depending on the available native packages. If this file is nor present at all, you may need to install the Debian package for |
Hi @YvanFournier, thanks for your reply. I can confirm that omniidl is in the correct path and the omniorb is included. Here's my updated command from revision:
However I got this new error:
It says: |
Hello, The first command run by the makefile in the directory should be |
Here's my new config.log |
Hello, I suppose the issue is related to the following error:
Is there a
Instead of just the configure command. |
yes, I found it in this location. what should I do next? I have tried both export LD_LIBRARY_PATH and configure command, still have the same issue |
I tried the following today ...
# configure the build from build folder with prefix:
So I got an install in the run-cfd-study folder |
I have just finished the installation of salome_cfd module based on this (tutorial)[https://www.youtube.com/watch?v=wVxtVCC9HKY&t=1605s].
When I run the CFD module in salome, I get this error:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/salome/CFDSTUDYGUI.py", line 43, in
from code_saturne.Base.QtCore import *
ModuleNotFoundError: No module named 'code_saturne.Base'
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/salome/CFDSTUDYGUI.py", line 43, in
from code_saturne.Base.QtCore import *
ModuleNotFoundError: No module named 'code_saturne.Base'
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/salome/CFDSTUDYGUI.py", line 43, in
from code_saturne.Base.QtCore import *
ModuleNotFoundError: No module named 'code_saturne.Base'
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/salome/CFDSTUDYGUI.py", line 43, in
from code_saturne.Base.QtCore import *
ModuleNotFoundError: No module named 'code_saturne.Base'
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/salome/CFDSTUDYGUI.py", line 43, in
from code_saturne.Base.QtCore import *
ModuleNotFoundError: No module named 'code_saturne.Base'
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/salome/CFDSTUDYGUI.py", line 43, in
from code_saturne.Base.QtCore import *
ModuleNotFoundError: No module named 'code_saturne.Base'
I have already exported the PYTHONPATH and included in my .bashrc file, but the error persists.
I installed everything in an UBUNTU22.04 using the last stable version of each one of the packages.
Note.: It seems that the CFDSTUDYGUI.py is calling the "Base" pack when the existing one is "base".
The text was updated successfully, but these errors were encountered: