CodeSaturn 3.2.1 with Salome 7.3.0 sip.setapi fails
Posted: Tue Feb 04, 2014 8:14 pm
I have built / upgraded open_saturn to 3.2.1 from 3.1.1 and upgraded Salome from 7.2.0 to 7.3.0 from source on Opensuse 13.1 x86_64. In doing so i am not able to use the "launch gui" feature in "salome" 3.2.1 to set up the case as i had in 3.1.1 . I am starting the application with "code_saturn salome" Which brings up the salome gui with cfdstudy in the drop down . When i enable the cfdstudy module it seems to initialize corretly but after setting up the case it fails when i try to open up the gui with "ouput in the launch terminal window"
...
th. 140221801072384 - Trace /opt/salome/7.3.0/SALOME/KERNEL_SRC_7.3.0/src/Container/SALOME_ContainerManager.cxx [617] : [GiveContainer] waiting 60 second steps container /Containers/darkhorse/FactoryServerPy
th. 140221801072384 - Trace /opt/salome/7.3.0/SALOME/KERNEL_SRC_7.3.0/src/Container/SALOME_ContainerManager.cxx [418] : [GiveContainer] container /Containers/darkhorse/FactoryServerPy launched
Traceback (most recent call last):
File "/opt/saturn/lib/python2.7/site-packages/salome/CFDSTUDYGUI_ActionsHandler.py", line 1641, in slotRunGUI
wm = self._SolverGUI.ExecGUI(self.dskAgent().workspace(), sobjxml, aCase, aCmd)
File "/opt/saturn/lib/python2.7/site-packages/salome/CFDSTUDYGUI_SolverGUI.py", line 176, in ExecGUI
mw = self.lauchGUI(WorkSpace, aCase, sobjXML, Args)
File "/opt/saturn/lib/python2.7/site-packages/salome/CFDSTUDYGUI_SolverGUI.py", line 318, in lauchGUI
from cs_gui import process_cmd_line
File "/opt/salome/7.3.0/modules/KERNEL_V7_3_0/lib/python2.7/site-packages/salome/import_hook.py", line 175, in import_hook
module= original_import(name, globals, locals, fromlist, *args, **kwds)
File "/opt/salome/7.3.0/modules/KERNEL_V7_3_0/lib/python2.7/site-packages/salome/import_hook.py", line 175, in import_hook
module= original_import(name, globals, locals, fromlist, *args, **kwds)
File "/opt/saturn/lib/python2.7/site-packages/code_saturne/cs_gui.py", line 46, in <module>
sip.setapi('QString', 2)
ValueError: API 'QString' has already been set to version 1
...
It would appear that the PyQT api has already be set/used/defaulted as version 1 in the running salome and it will not allow the code to bring up the saturn gui using version 2 of the api. It seems sip.setapi('QString', 2) was added in svn commit 5077 i believe. How can i bring the rest of the salome build up to the sipapi of v2 ? or downgrade code_saturn back to v1 ?
I should note that "code_saturn gui" works fine as far as i can tell , i am pretty new at code_saturn so i was having challanges/ wanting to view the mesh when setting up "definition of boundry regions"
Any help would be appreciated.
...
th. 140221801072384 - Trace /opt/salome/7.3.0/SALOME/KERNEL_SRC_7.3.0/src/Container/SALOME_ContainerManager.cxx [617] : [GiveContainer] waiting 60 second steps container /Containers/darkhorse/FactoryServerPy
th. 140221801072384 - Trace /opt/salome/7.3.0/SALOME/KERNEL_SRC_7.3.0/src/Container/SALOME_ContainerManager.cxx [418] : [GiveContainer] container /Containers/darkhorse/FactoryServerPy launched
Traceback (most recent call last):
File "/opt/saturn/lib/python2.7/site-packages/salome/CFDSTUDYGUI_ActionsHandler.py", line 1641, in slotRunGUI
wm = self._SolverGUI.ExecGUI(self.dskAgent().workspace(), sobjxml, aCase, aCmd)
File "/opt/saturn/lib/python2.7/site-packages/salome/CFDSTUDYGUI_SolverGUI.py", line 176, in ExecGUI
mw = self.lauchGUI(WorkSpace, aCase, sobjXML, Args)
File "/opt/saturn/lib/python2.7/site-packages/salome/CFDSTUDYGUI_SolverGUI.py", line 318, in lauchGUI
from cs_gui import process_cmd_line
File "/opt/salome/7.3.0/modules/KERNEL_V7_3_0/lib/python2.7/site-packages/salome/import_hook.py", line 175, in import_hook
module= original_import(name, globals, locals, fromlist, *args, **kwds)
File "/opt/salome/7.3.0/modules/KERNEL_V7_3_0/lib/python2.7/site-packages/salome/import_hook.py", line 175, in import_hook
module= original_import(name, globals, locals, fromlist, *args, **kwds)
File "/opt/saturn/lib/python2.7/site-packages/code_saturne/cs_gui.py", line 46, in <module>
sip.setapi('QString', 2)
ValueError: API 'QString' has already been set to version 1
...
It would appear that the PyQT api has already be set/used/defaulted as version 1 in the running salome and it will not allow the code to bring up the saturn gui using version 2 of the api. It seems sip.setapi('QString', 2) was added in svn commit 5077 i believe. How can i bring the rest of the salome build up to the sipapi of v2 ? or downgrade code_saturn back to v1 ?
I should note that "code_saturn gui" works fine as far as i can tell , i am pretty new at code_saturn so i was having challanges/ wanting to view the mesh when setting up "definition of boundry regions"
Any help would be appreciated.