Dear Marcelo,

If the python installation is correct, it should be detected by the configure script. When you run the configure script, at the end, it should be noted that python is detected. Is it the case ?

Best regards,

Yves


Le 29/06/2021 à 15:05, Marcelo Frydman a écrit :

Yves,

Thank you very much for your ready answer. Please see below the PYTHONPATH and Environment set in Spyder/Anaconda.

There wasn’t any /_getfem.*/created during the compilation process. I am not sure I am building the Pyhton interface properly. There was a step:

/Install Anaconda2 and add to windows path //C:\install_dir\Anaconda2// and //C:\install_dir\Anaconda2\Scripts// where //install_dir// is the installation directory of Anaconda2 (//ProgramData// by default for a system installation)/

I am not sure what does it mean. Do I need to set these variables elsewhere in MSYS beforebuilding the Pyhton interface? Any problem with the PYTHONPATH set?

Thanks again,

Marcelo

*From:*Yves Renard <[email protected]>
*Sent:* martes, 29 de junio de 2021 04:28
*To:* Marcelo Frydman <[email protected]>; [email protected]
*Subject:* Re: ModuleNotFoundError: No module named '_getfem'

Dear Marcelo,

Did you set the PYTHONPATH variable after building the interface ?

Best regards,

Yves

Le 28/06/2021 à 20:57, Marcelo Frydman a écrit :

    Dear GetFem users,

    I have just installed Getfem on Windows (Msys). I have followed
    the instructions on:
    http://getfem.org/install/install_windows.html
    <http://getfem.org/install/install_windows.html>

    The compilation process was working fine, without major issue. I
    ran “make check” before building the Pyhton interface, and got a
    positive message:

    /Testsuite summary for getfem 5.4.1/

    
/============================================================================/

    */# TOTAL: 41/*

    /# PASS:  41/

    /# SKIP:  0/

    /# XFAIL: 0/

    /# FAIL:  0/

    /# XPASS: 0/

    /# ERROR: 0/

    However, Python interface is not working. I ran “make check” for
    the Pyhton examples:

    /FAIL//: check_export.py/

    /FAIL//: check_global_functions.py/

    /FAIL//: check_asm.py/

    /FAIL//: check_secondary_domain.py/

    /FAIL//: check_mixed_mesh.py/

    /FAIL//: demo_wave.py/

    /FAIL//: demo_wave_equation.py/

    /FAIL//: demo_laplacian.py/

    /FAIL//: demo_laplacian_HHO.py/

    /FAIL//: demo_elasticity_HHO.py/

    /FAIL//: demo_thermo_elasticity_electrical_coupling.py/

    /FAIL//: check_levelset.py/

    
/============================================================================/

    /Testsuite summary for getfem 5.4.1/

    
/============================================================================/

    */# TOTAL: 12/*

    /# PASS:  0/

    /# SKIP:  0/

    /# XFAIL: 0/

    /# FAIL:  12/

    /# XPASS: 0/

    /# ERROR: 0/

    
/============================================================================/

    /See interface/tests/python/test-suite.log/

    
/============================================================================/

    I tried to run one of the examples in Spyder, and got the
    following error:


    /Python 3.8.10 (default, May 19 2021, 13:12:57) [MSC v.1916 64 bit
    (AMD64)]/

    /Type "copyright", "credits" or "license" for more information./

    //

    /IPython 7.22.0 -- An enhanced Interactive Python./

    //

    /Traceback (most recent call last):/

    //

    /  File
    "C:\msys64\home\m.frydman\getfem\interface\src\python\getfem.py",
    line 45, in <module>/

    /    from ._getfem import */

    //

    /ImportError: attempted relative import with no known parent package/

    //

    //

    /During handling of the above exception, another exception occurred:/

    //

    /Traceback (most recent call last):/

    //

    /  File
    "C:\msys64\home\m.frydman\getfem\interface\src\python\getfem.py",
    line 47, in <module>/

    /    from _getfem import */

    //

    /ModuleNotFoundError: No module named '_getfem'/

    //

    Looking forward to start having fun with GetFem.

    Thanks,

    Marcelo

--
   Yves Renard ([email protected]  <mailto:[email protected]>)    
   tel : (33) 04.72.43.87.08
   INSA-Lyon
   20, rue Albert Einstein
   69621 Villeurbanne Cedex, FRANCE
   http://math.univ-lyon1.fr/~renard  <http://math.univ-lyon1.fr/~renard>
---------


--

  Yves Renard ([email protected])       tel : (33) 04.72.43.87.08
  INSA-Lyon
  20, rue Albert Einstein
  69621 Villeurbanne Cedex, FRANCE
  http://math.univ-lyon1.fr/~renard

---------

Reply via email to