CS 2.0rc2 MEI compiling warning -> no user law in fluid prop
Forum rules
Please read the forum usage recommendations before posting.
Please read the forum usage recommendations before posting.
CS 2.0rc2 MEI compiling warning -> no user law in fluid prop
Dear Support and Users,
I installed code saturne 2.0rc2 without the installation script. (see: info.txt) When compiling MEI-102 lib following warnings have occurred. (see: output_make.txt) Here are additional information. (output_configure.txt ; info.txt )
Code Saturne disabled the option "user law" in the "fluid properties" menu and it is not possible to select it. Are the warnings the reasons for the problem or is there another reason? Does anyone have an idea to solve this problem? The selection of "user law" is extremely important for my further calculations.
Thanks ever for the trouble. Hope you can help me.
Peter
I installed code saturne 2.0rc2 without the installation script. (see: info.txt) When compiling MEI-102 lib following warnings have occurred. (see: output_make.txt) Here are additional information. (output_configure.txt ; info.txt )
Code Saturne disabled the option "user law" in the "fluid properties" menu and it is not possible to select it. Are the warnings the reasons for the problem or is there another reason? Does anyone have an idea to solve this problem? The selection of "user law" is extremely important for my further calculations.
Thanks ever for the trouble. Hope you can help me.
Peter
- Attachments
-
- output_make.txt
- (58.35 KiB) Downloaded 275 times
-
- output_configure.txt
- (5.04 KiB) Downloaded 296 times
-
- info.txt
- (5.77 KiB) Downloaded 278 times
Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid
Hi Peter,
mei_wrap.c is generated by swig, and unfortunately the warnings are difficult to avoid.
Code_Saturne disable the option "user law" in the GUI when the module mei.py could not be imported as a module python. Could you check in your installation if the files are presents in the /lib/python2.6/site-package/mei directory as mentioned in this thread:
http://code-saturne.org/forum/viewtopic.php?f=8&t=1021
Nevertheless, mei is optional and you can set up and perform computation without this library.
mei_wrap.c is generated by swig, and unfortunately the warnings are difficult to avoid.
Code_Saturne disable the option "user law" in the GUI when the module mei.py could not be imported as a module python. Could you check in your installation if the files are presents in the /lib/python2.6/site-package/mei directory as mentioned in this thread:
http://code-saturne.org/forum/viewtopic.php?f=8&t=1021
Nevertheless, mei is optional and you can set up and perform computation without this library.
Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid
Hi Alexandre,
thanks for the quick reply.
Once Code Saturen runs well. Everything is okay. Just the problem with MEI and "user law".
I know that MEI is optional, but I think it's already comfortable when it is integrated. I checked it. mei.py ist present in the /usr/local/lib/python2.6/site-packages/mei/ directory.
Have you any idea what it might be anyway?
Thanks Peter
thanks for the quick reply.
Once Code Saturen runs well. Everything is okay. Just the problem with MEI and "user law".
I know that MEI is optional, but I think it's already comfortable when it is integrated. I checked it. mei.py ist present in the /usr/local/lib/python2.6/site-packages/mei/ directory.
Have you any idea what it might be anyway?
Thanks Peter
Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid
To test the installation of MEI, what message do you obtain if you simply start python and type "import mei" in your Python terminal ?
If that doesn't work, try typing:
What do you get then ?
If that doesn't work, try typing:
Code: Select all
import sys
sys.path.insert(0, '/usr/local/lib/python2.6/site-packages/mei')
import mei
Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid
Hi Alexandre,
that is the message I get:
Thanks Peter
that is the message I get:
examusr@exsimul13:~> python
Python 2.6.2 (r262:71600, Jun 17 2010, 13:37:45)
[GCC 4.4.1 [gcc-4_4-branch revision 150839]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import mei
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named mei
>>> import sys
>>> sys.path.insert(0, '/usr/local/lib/python2.6/site-packages/mei')
>>> import mei
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.6/site-packages/mei/mei.py", line 7, in <module>
import _mei
ImportError: No module named _mei
>>>
Thanks Peter
Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid
Hello Peter,
Could you try locate the _mei.so library? Either by "locate _mei.so" or "find / -name _mei.so". It does not seem to be found. And side question, is it a 64 bit systems?
Regards,
David
Could you try locate the _mei.so library? Either by "locate _mei.so" or "find / -name _mei.so". It does not seem to be found. And side question, is it a 64 bit systems?
Regards,
David
Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid
What may happen is that the MEI module library (_mei.so called by the Python module mei?py) is installed in /usr/local/lib and that this directory is not in the search path for the linker/loader. If this is the case try to
before launching the GUI or to
add /usr/local/lib to /etc/ld.so.conf
and to logout/login from the session.
David
Code: Select all
export LD_LIBRARY_PATH= /usr/local/lib:$LD_LIBRARY_PATH
add /usr/local/lib to /etc/ld.so.conf
and to logout/login from the session.
David
Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid
Hi Alexandre.
first, it is a 64bit system.
I've followed your advice and I've changed the path. I also added the path to /etc/ld.so.conf and now python finds the _mei.so lib.
Regards,
Peter
first, it is a 64bit system.
I've followed your advice and I've changed the path. I also added the path to /etc/ld.so.conf and now python finds the _mei.so lib.
But the problem is the same. "user law" is still disabled in the "fluid properties" menu in the GUI.peter@gimli:~> python
Python 2.6.2 (r262:71600, Jun 17 2010, 13:37:45)
[GCC 4.4.1 [gcc-4_4-branch revision 150839]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path.insert(0, '/usr/local/lib64/python2.6/site-packages/mei')
>>> import mei
>>>
Regards,
Peter
Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid
Try to add the following line at the beginning of the code_saturne script (around line 34). You'll find an equivalent one.
This should do the trick.
David
Code: Select all
sys.path.insert(0, '/usr/local/lib64/python2.6/site-packages/mei')
David
Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid
Hi David
sorry but is was a missunderstanding. I thought you were Alexandre.
The mei import problem ist now solved.
But it is still the same Problem: Code Saturne disabled the option "user law" in the "fluid properties" menu in the GUI and it is not possible to select it.
I have also changed the path in the code_saturne script. But the same Problem
Regards,
Peter
sorry but is was a missunderstanding. I thought you were Alexandre.
The mei import problem ist now solved.
But it is still the same Problem: Code Saturne disabled the option "user law" in the "fluid properties" menu in the GUI and it is not possible to select it.
I have also changed the path in the code_saturne script. But the same Problem
Regards,
Peter