|
From: | Heungson Lee |
Subject: | Re: getfem_from_constructor problem |
Date: | Tue, 28 Apr 2020 10:14:09 +0900 |
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.5Later, I tryed to convert a Harwell-Boeing spars matrix using Spmat function:
import getfema = 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 = 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
[Prev in Thread] | Current Thread | [Next in Thread] |