Flair installation

Good morning,
I’m trying to install Flair on Ubuntu 18.04 through the repository.
I have python 3.8 and I do not receive any errors during the installation but when I try to run Flair I get the following error:

Traceback (most recent call last):
File “/usr/local/flair/flair.py”, line 3267, in
File “/usr/local/flair/flair.py”, line 3193, in initialize
File “/usr/local/flair/flair.py”, line 2814, in loadMaterialIni
Material.init([os.path.join(tkFlair.prgDir, “db/material.ini”),
File “/usr/local/flair/material.py”, line 357, in init
File “/usr/local/flair/material.py”, line 61, in make
File “/usr/local/flair/material.py”, line 124, in makeStoichiometry
self.stoichiometry = " %s%s" % (A, element.symbol)
AttributeError: ‘NoneType’ object has no attribute ‘symbol’

Thank you for all your help

Dear Lior,

if I’m correct, Ubuntu 18.10 has python 3.6 by default. Could you try to install Flair and Geoviewer from the .tgz packages?


I’ve upgraded my Ubuntu to 20.04 and now everything works
Thank you!