I tried it myself under Anaconda 3 environment without Mingw and Msys and it shows the same error. (The install page says it requires Mingw. If you don't have it, please refer to http://getfem.org/install/install_windows.html ) It seems that the python script cannot read the cpython library file ( _ getfem.cpython-37m-x86_64-linux-gnu.so, I believe the file name depends on an environment you are working).
You might wan to try this with the pre-compiled packages (getfem5.3win-amd64-py3.7.exe) or under Windows Subsystem for Linux too. It would be much simpler than configuring this under Mingw and Msys. It works well for me. On Mon, Apr 27, 2020 at 11:41 PM Umberto Cian <umberto.c...@gmail.com> wrote: > Greetings, > > I've just downloaded the getfem pakage for python 3.8. > > I work on Windows 10, 64-bit and I installed getfem using the command > window: > > > > > > > > > > *C:\Users\directory > pip install getfem Collecting getfem Downloading > getfem-5.3.5.tar.gz (114 kB) |████████████████████████████████| 114 kB > 469 kB/s Requirement already satisfied: scipy in c:\users\umberto > cian\appdata\local\programs\python\python38\lib\site-packages (from getfem) > (1.4.1) Requirement already satisfied: numpy>=1.13.3 in c:\users\umberto > cian\appdata\local\programs\python\python38\lib\site-packages (from > scipy->getfem) (1.18.1) Installing collected packages: getfem Running > setup.py install for getfem ... done Successfully installed getfem-5.3.5* > > Later, I tryed to convert a Harwell-Boeing spars matrix using Spmat > function: > import getfem > a = getfem.Spmat('load', 'harwell-boeing', 'K.txt') > > where is 'K.txt' a Harwell-Boeing format text file (attached). > > Running the script I got the following error message: > > *C:\Users\Umberto Cian\Desktop>py script.py* > *Traceback (most recent call last):* > * File "script.py", line 7, in <module>* > * a = getfem.Spmat('load', 'harwell-boeing', 'K.txt')* > * File "C:\Users\Umberto > Cian\AppData\Local\Programs\Python\Python38\lib\site-packages\getfem\__init__.py", > line 5467, in __init__* > * generic_constructor(self,'spmat',*args)* > * File "C:\Users\Umberto > Cian\AppData\Local\Programs\Python\Python38\lib\site-packages\getfem\__init__.py", > line 57, in generic_constructor* > * self.id <http://self.id> = getfem_from_constructor(clname,*args)* > *NameError: name 'getfem_from_constructor' is not defined* > > It seems to be missing *getfem_from_constructor() *definition. > > Is it possible I made some mistake installing getfem? > > Best regards, > > Umberto Cian >