Personal tools
You are here: Home Forum Install & build salome 3.2.6 ubuntu 6.10 64bit --python problem

salome 3.2.6 ubuntu 6.10 64bit --python problem

Up to Install & build
  • salome 3.2.6 ubuntu 6.10 64bit --python problem

    Posted by yacu at April 01. 2008
    I managed to compile salome from source (after 50 painfull hour or so) .
    The gui works (geometry,mesh,postprocess & med ) , but there is some strange python problems that i can't figure out:

    system: ubuntu 6.10 64bit(AMD64).
    salome 3.2.6

    ./runSalome -g -z0

    Searching for a free port for naming service: 2810 - OK
    Lancement du Naming Service runNS.sh > /tmp/logs/mylinux/salomeNS.log 2>&1
    Searching Naming Service + found in 0.1 seconds
    Searching /Containers/laatikko/FactoryServerPy in Naming Service +Traceback (most recent call last):
      File "/usr/local/salome/bin/salome/SALOME_ContainerPy.py", line 39, in ?
        from SALOME_ComponentPy import *
      File "/usr/local/salome/bin/salome/SALOME_ComponentPy.py", line 53, in ?
        class SALOME_ComponentPy_i (Engines__POA.Component):
    AttributeError: 'module' object has no attribute 'Component'
    +Traceback (most recent call last):
      File "/usr/local/salome/bin/salome/runSalome.py", line 802, in useSalome
        clt = startSalome(args, modules_list, modules_root_dir)
      File "/usr/local/salome/bin/salome/runSalome.py", line 729, in startSalome
        clt.waitNSPID("/Containers/" + theComputer + "/FactoryServerPy",myServer.PID)
      File "/usr/local/salome/bin/salome/orbmodule.py", line 173, in waitNSPID
        raise "Impossible de trouver %s" % theName
    Impossible de trouver /Containers/laatikko/FactoryServerPy


    --- erreur au lancement Salome ---
    Traceback (most recent call last):
      File "", line 1, in ?
      File "/usr/local/salome/lib/python2.4/site-packages/salome/import_hook.py", line 156, in import_hook
        module= original_import(name, globals, locals, fromlist)
      File "SALOME_Container.py", line 42, in ?
        from SALOME_ComponentPy import *
      File "/usr/local/salome/lib/python2.4/site-packages/salome/import_hook.py", line 156, in import_hook
        module= original_import(name, globals, locals, fromlist)
      File "/usr/local/salome/bin/salome/SALOME_ComponentPy.py", line 53, in ?
        class SALOME_ComponentPy_i (Engines__POA.Component):
    AttributeError: 'module' object has no attribute 'Component'
    Traceback (most recent call last):
      File "", line 1, in ?
    NameError: name 'SALOME_Container' is not defined
    SetSignal( Standard_False ) is not implemented...
    ****************************************************************
    *    Warning: library Supervisor cannot be found
    *    Module will not be available
    ****************************************************************
    ****************************************************************
    *    Warning: library Component cannot be found
    *    Module will not be available
    ****************************************************************
    ****************************************************************
    *    Warning: library PyCalculator cannot be found
    *    Module will not be available
    ****************************************************************


    ---
    >>> print dir(Engines__POA);
    ['Component', 'Container', 'ContainerManager', 'SALOME_Component_idl', 'SALOME_ContainerManager_idl', 'SALOME_TestComponent_idl', 'TestComponent', '__builtins__', '__doc__', '__file__', '__name__', '__path__', 'fileRef', 'fileTransfer']


    • Re: salome 3.2.6 ubuntu 6.10 64bit --python problem

      Posted by JMB at August 11. 2008
      Hello,

      I am trying to do the same install Salome 3.2.6 (or 3.2.9) in Ubuntu Hardy (64bit) but have not succeeded.  Would you share your notes or steps please?  Maybe we can collectively figure it out.  Thanks.

      Regards,
      JMB
      • Re: salome 3.2.6 ubuntu 6.10 64bit --python problem

        Posted by jrz at August 11. 2008
        JMB wrote:
        Hello,

        I am trying to do the same install Salome 3.2.6 (or 3.2.9) in Ubuntu Hardy (64bit) but have not succeeded.  Would you share your notes or steps please?  Maybe we can collectively figure it out.  Thanks.

        Regards,
        JMB

        Hi,
        OK, I started SALOME finelly but it has some importatn errors such it cant make MESH, preprocess and so but you can do modelling.
        I'll write you it in a few moment.
        Regards,
        Jrz
      • Re: salome 3.2.6 ubuntu 6.10 64bit --python problem

        Posted by yacu at August 18. 2008
        JMB wrote:
        Hello,

        I am trying to do the same install Salome 3.2.6 (or 3.2.9) in Ubuntu Hardy (64bit) but have not succeeded.  Would you share your notes or steps please?  Maybe we can collectively

        First phase is to compile opencasecade.
        these compile flags are needed otherwise it wont compile far.
        CFLAGS: -m64 –D_OCC64
        CXXFLAGS: -fpermissive -ffriend-injection -m64 –D_OCC64
        also CXXFLAGS="$CPPFLAGS" ==> CXXFLAGS=$CXXFLAGS #somehwere in configure.sh

        Some compile erros from my notes:
        virtual Standard_EXPORT Standard_ErrorHandlerCallback::~Standard_ErrorHandlerCallback ();
        ==>virtual Standard_EXPORT ~Standard_ErrorHandlerCallback ();

        BOPTest/BOPTest_LowCommands.cxx:795: error: extra qualification 'X_Chr::' on member 'X_Chr'
        X_Chr::X_Chr()  ==>X_Chr()

        salome:
        needed packages: http://www.salome-platform.org/download/dl326/
        don't forget these:
         hdf5-serial
         hdf5-tools
         libcos4c2
         libcos4-dev
         libomniorb4
         libomniorb4-dev
         libomnithread3
         libomnithread3-dev
         omniidl4
         omniidl4-python
         omniorbpy
         omniorb4-nameserver
         boost ,libboost-thread
         python-sip4
         sip4
         pyqt-tools
         python-qt3
         qt3-dev-tools-compat

        salome kernel:
        in KERNEL_SRC_2.2.2/idl/Makefile
         #IDLPYFLAGS = -bpythonbe -p ...
         IDLPYFLAGS = -bpython -p
        also i added -p/usr/lib/python2.3/site-packages/omniidl_be to OMNIORB_IDLPYFLAGS

        salome gui:
         VTKViewerGeometryFilter.cxx #line 83
         //  vtkDataSet *input= this->GetInput();
         vtkDataObject *input= this->GetInput();

        salome med:
         it wont compile with med-2.3.3. version 2.3.1 is needed.
         error: bad fd number. ==> use bash: salome/src3.2.6/build_med$ bash ../MED_SRC_3.2.6/build_configure

        salome visu:
         Tons of compile errors. i'm using vtk5. salome uses vtk4. so i made tons of changes here..
         If there is problem with vtk5 and visu . I may try to look at source and pick those changes if needed.
         
        superv won't compile correctly  however it works. netgen plugin won't work at all.

        #salome gui
        CFLAGS="-fPIC -pipe -O2 -s -Wl,--no-keep-memory,-O1 -fomit-frame-pointer" CXXFLAGS="-fPIC -fpermissive -ffriend-injection -pipe -O2 -s  -Wl,--no-keep-memory,-O1 -fomit-frame-pointer" ../GUI_SRC_3.2.6/configure --disable-static --disable-debug --prefix=/usr/local/salome --with-pyqt_sips=/usr/share/sip/qt/qt

        Unfortunately i don't have any better notes. There has been quite long time since i last compiled salome.
        However if you reach a point where compiling stops post it in this threads and i may try to look what changes i made in salome source  to able to compile it.

        ---------
        i'm still suffering from the strange python problem i described above.


Powered by Ploneboard
Document Actions