Stand-alone Salome-Meca Postinstall Problem

  • Robert Tuttle
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
13 years 4 days ago #1535 by Robert Tuttle
Stand-alone Salome-Meca Postinstall Problem was created by Robert Tuttle
I have installed the stand-alone Salome-Meca package on my SUSE 10.2 machine. I try to run the postinstall.py script and get the following error. I have double checked my installation and the os module appears to be part of the python RPM. Does anyone have a suggestion?

# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
'import site' failed; traceback:
ImportError: No module named site
Python 2.5 (r25:51908, Nov 27 2006, 19:14:46)
[GCC 4.1.2 20061115 (prerelease) (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
File "./postinstall.py", line 5, in <module>
import os, sys, shutil, re
ImportError: No module named os
# clear __builtin__._
# clear sys.path
# clear sys.argv
# clear sys.ps1
# clear sys.ps2
# clear sys.exitfunc
# clear sys.exc_type
# clear sys.exc_value
# clear sys.exc_traceback
# clear sys.last_type
# clear sys.last_value
# clear sys.last_traceback
# clear sys.path_hooks
# clear sys.path_importer_cache
# clear sys.meta_path
# restore sys.stdin
# restore sys.stdout
# restore sys.stderr
# cleanup __main__
# cleanup[1] zipimport
# cleanup[1] signal
# cleanup[1] exceptions
# cleanup sys
# cleanup __builtin__
# cleanup ints
# cleanup floats<br /><br />Post edited by: Robert Tuttle, at: 2007/11/30 23:07

Please Log in or Create an account to join the conversation.

  • Robert Tuttle
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
13 years 3 days ago #1541 by Robert Tuttle
Replied by Robert Tuttle on topic Re:Stand-alone Salome-Meca Postinstall Problem
I finally figured it out. My problem was related to my search path in the shell.

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #1651 by Mario
Hello,
I'm trying to run Salome-Meca inside an AndLinux shell.
postinstall.py runs fine, but when I try to launch runSalomeMeca, I get this:

andLinux:/mnt/and/SALOME-MECA-2007.1-GPL# ./runSalomeMeca
CHECK /root
Searching for free port for the SALOME Naming Service: 2810 - Ok
'import site' failed; use -v for traceback
Traceback (most recent call last):
File &quot;/mnt/and/SALOME-MECA-2007.1-GPL/SALOME/SALOME3/V3_2_6/KERNEL_V3_2_6/bin/salome/envSalome.py&quot;, line 22, in ?
import os
ImportError: No module named os
'import site' failed; use -v for traceback
Traceback (most recent call last):
File &quot;/mnt/and/SALOME-MECA-2007.1-GPL/SALOME/SALOME3/V3_2_6/KERNEL_V3_2_6/bin/salome/killSalomeWithPort.py&quot;, line 22, in ?
import os, sys, pickle, signal, commands
ImportError: No module named os


Anyone can help, please?
Thanks

Mario<br /><br />Post edited by: mario, at: 2008/01/16 15:34

Please Log in or Create an account to join the conversation.

More
12 years 7 months ago #1938 by Mario
mario wrote:

Hello,
I'm trying to run Salome-Meca inside an AndLinux shell.
postinstall.py runs fine, but when I try to launch runSalomeMeca, I get this:

andLinux:/mnt/and/SALOME-MECA-2007.1-GPL# ./runSalomeMeca
CHECK /root
Searching for free port for the SALOME Naming Service: 2810 - Ok
'import site' failed; use -v for traceback
Traceback (most recent call last):
File &quot;/mnt/and/SALOME-MECA-2007.1-GPL/SALOME/SALOME3/V3_2_6/KERNEL_V3_2_6/bin/salome/envSalome.py&quot;, line 22, in ?
import os
ImportError: No module named os
'import site' failed; use -v for traceback
Traceback (most recent call last):
File &quot;/mnt/and/SALOME-MECA-2007.1-GPL/SALOME/SALOME3/V3_2_6/KERNEL_V3_2_6/bin/salome/killSalomeWithPort.py&quot;, line 22, in ?
import os, sys, pickle, signal, commands
ImportError: No module named os


Anyone can help, please?
Thanks

Mario&lt;br /&gt;&lt;br /&gt;Post edited by: mario, at: 2008/01/16 15:34

Hello,
I'm trying with Salome-Meca-2008.1 with the same result:
when I run ./runSalomeMeca I get:

CHECK /root
Searching for free port for the SALOME Naming Service: 2810 - Ok
'import site' failed; use -v for traceback
Traceback (most recent call last):
File &quot;/opt/SALOME-MECA-2008.1-GPL/SALOME/SALOME3/V3_2_9NoDebug/KERNEL_V3_2_9NoDebug/bin/salome/runSalome.py&quot;, line 22, in &lt;module&gt;
import sys, os, string, glob, time, pickle
ImportError: No module named os


Any suggestion, please?
Thanks
Mario

Please Log in or Create an account to join the conversation.

Moderators: catux
Time to create page: 0.107 seconds
Powered by Kunena Forum