getfem-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getfem_from_constructor problem


From: Umberto Cian
Subject: getfem_from_constructor problem
Date: Mon, 27 Apr 2020 12:43:41 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

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 = 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

Attachment: K.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]