Salome on MacOS (omnipy error)
This forum is DEPRECATED, please create new topics in the new SALOME forum.
For existing topics please transfer them to the new forum.
Hi,
I have the same error with SALOME-9.7.0-native-UB20.04-SRC, I have omnipy installed but I do not know why does not work.
Did you manage to solve the problem?
Here below the log of the error:
ERROR:salomeContext:Unexpected error:
Traceback (most recent call last):
File "/home/utente/Scaricati/Softwares/Salome/SALOME-9.7.0-native-UB20.04-SRC/BINARIES-UB20.04/SALOME/bin/salome/salomeContext.py", line 278, in _startSalome
res = getattr(self, command)(options) # run appropriate method
File "/home/utente/Scaricati/Softwares/Salome/SALOME-9.7.0-native-UB20.04-SRC/BINARIES-UB20.04/SALOME/bin/salome/salomeContext.py", line 353, in _runAppli
import setenv
File "/home/utente/Scaricati/Softwares/Salome/SALOME-9.7.0-native-UB20.04-SRC/BINARIES-UB20.04/KERNEL/bin/salome/setenv.py", line 26, in <module>
import orbmodule
File "/home/utente/Scaricati/Softwares/Salome/SALOME-9.7.0-native-UB20.04-SRC/BINARIES-UB20.04/KERNEL/bin/salome/orbmodule.py", line 31, in <module>
from omniORB import CORBA
File "/home/utente/Scaricati/Softwares/Salome/SALOME-9.7.0-native-UB20.04-SRC/BINARIES-UB20.04/omniORB/lib/python3.8/site-packages/omniORB/__init__.py", line 44, in <module>
import _omnipy
ModuleNotFoundError: No module named '_omnipy'
I
tried to download again the .tar.gz file but still gives the same
error. I had a look at the __init__.py file generating the error, indeed
it calls "import _omnipy".
Since I checked that I have omnipy installed I tried to work around by
replacing the line as "import omnipy as _omnipy" but then python gives
the error
AttributeError: module 'omnipy' has no attribute 'coreVersion'
I do not know to fix this, please if anyone has the same problem write here how to solve it.
Regards
Matteo
Previously Matteo Quirino wrote:
I tried to download again the .tar.gz file but still gives the same error. I had a look at the __init__.py file generating the error, indeed it calls "import _omnipy".
Since I checked that I have omnipy installed I tried to work around by replacing the line as "import omnipy as _omnipy" but then python gives the error
AttributeError: module 'omnipy' has no attribute 'coreVersion'
I do not know to fix this, please if anyone has the same problem write here how to solve it.
Regards
Matteo
This forum is DEPRECATED, please create new topics in the new SALOME forum.
For existing topics please transfer them to the new forum.