Geometry Viewer not found

Hi, I’m updating Flare and Flare-Geoviewer to 3.0-12 in preparation for the upcoming course. Geoviewer compiles and installs without any obvious errors, but Flare then produces the following error:

>w> Warning: Geometry Viewer not found
>e> ERROR: dlopen(/Users/tgiles/bin/flair-3.0/, 2): Symbol not found: _main
             Referenced from: /Users/tgiles/bin/flair-3.0/
             Expected in: flat namespace
            in /Users/tgiles/bin/flair-3.0/

This is on MacOS Catalina with MacPorts, gcc9, python 3.8 and xorg, all as per online instructions.
Any help gratefully received! -Tim

The detailed installation was as follows:

xcode-select --install
sudo port -v selfupdate
sudo port upgrade outdated
sudo port install xorg-server xorg # NB logout and back in to activate xorg-server
sudo port install gcc9
sudo port select gcc mp-gcc9
sudo port install python38 # NB python version should be consistent among the following lines
sudo port select --set python3 python38
sudo port install py38-tkinter
sudo port install pkgconfig
sudo port install ghostscript
sudo port install gdb
sudo port install xterm
sudo port install gnuplot
sudo port install py38-Pillow
sudo port install py38-numpy
sudo port install py38-matplotlib +tkinter
sudo port install py38-scipy
sudo port install py38-pydicom
# install Flair
cd ~/system
cd ~/tmp
tar -zxf ~/system/flair-3.0-12.tgz
mv ~/bin/flair-3.0{,.old}
mv flair-3.0 ~/bin/
# install Flair-Geoviewer
cd ~/system
cd ~/tmp
tar xzvf ~/system/flair-geoviewer-3.0-12.tgz
cd flair-geoviewer-3.0
make -j 2
make install DESTDIR=$HOME/bin/flair-3.0
echo >>~/.bash_profile "alias flair='$HOME/bin/flair-3.0/flair'"

Hi @tgiles,
it’s weird as I have the same setup…
Can you tell me what is the output of the command?
file /Users/tgiles/bin/flair-3.0/

Hi Luigi, This is what I get:

tgiles@macen36860 ~ $ file /Users/tgiles/bin/flair-3.0/
/Users/tgiles/bin/flair-3.0/ Mach-O 64-bit executable x86_64

I just switched to Python 3.7 and the Geometry module seems to be working!

Hi all,
please allow me to revive this thread, as I find myself in a similar situation.
On MacOS Catalina and MacPorts (gcc9, gfortran9, python 3.8 and xorg), as described above, I encounter the same warning message but a different error message when I open flair.

w> Warning: Geometry Viewer not found
e> ERROR: No module named ‘geoviewer’

All tabs in flair work, except for the Geometry tab.

I tried to follow switching to Python 3.7, as this was the solution here, but py37-numpy port fails. I copy below how:

sudo port install py37-numpy

—> Computing dependencies for py37-numpy

The following dependencies will be installed:
Continue? [Y/n]: y
—> Fetching archive for gcc10
—> Attempting to fetch gcc10-10.1.0_0.darwin_19.x86_64.tbz2 from
—> Attempting to fetch gcc10-10.1.0_0.darwin_19.x86_64.tbz2.rmd160 from
Error: Failed to archivefetch gcc10: Failed to fetch signature for archive: The requested URL returned error: 504
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc10/gcc10/main.log for details.
Error: Follow to report a bug.
Error: Processing of port py37-numpy failed

Could anybody provide some guidance on how to proceed?
Thank you in advance,

Dear @vkousk,
I was eventually able to reproduce your issue.
This is not related to the python version.
We’ll keep you updated as soon as we release the solution.
Sorry for the inconvenience.
Best regards

Dear @vkousk,
you need to recompile
So in geoviewer module, please change line 224 of the file from

# LDFLAGS = -dynamiclib
SOFLAGS = -dynamiclib

Then issue the commands (inside geoviewer)

  • make (don’t forget to delete before!) and
  • make install DESTDIR=PATH_FLAIR

as per the instructions on the Flair web site (Compile from source)

Let us know if it works.
Sorry for the inconvenience (the fix will be available in the next Flair release).
Thanks, luigi

Dear @luillo,
thank you very much for looking into this.
Indeed with this change the geometry tab in flair works properly.
Best regards,