FLAIR. Warning: Geometry Viewer not found

Hello, the same error as the Flair installation error: bus error 10. Fixed according to this algorithm:

% make clean
% make PYTHON=python3.9 DESTDIR=/Users/ialexpovod/FLUKA/flair-3.1/
% make PYTHON=python3.9 DESTDIR=/Users/ialexpovod/FLUKA/flair-3.1/ install

Then I had the same error:

>w> Warning: Geometry Viewer not found
>e> ERROR: dynamic module does not define module export function (PyInit_geoviewer)

I tried to fix it using the same algorithm:

% make clean
% make DEBUG=yes
% make install DESTDIR=/Users/ialexpovod/FLUKA/flair-3.1

Launching, opening Geometry. I’m coming out on the first mistake:

>w> Warning: Geometry Viewer not found
>e> ERROR: dynamic module does not define module export function (PyInit_geoviewer)

Try:

% make clean
% make DEBUG=yes PYTHON=python3.9 DESTDIR=/Users/ialexpovod/FLUKA/flair-3.1
% make install PYTHON=python3.9 DESTDIR=/Users/ialexpovod/FLUKA/flair-3.1

It doesn’t come out. What to do?

Hello @ialexpovod ,

it’s not clear if you have replaced {mynameuser} with your user name in the commands above.
Can you confirm?

Hello. This is my directory under my name – . Habit :slight_smile:


And % make clean && make >& makecomp.txt
makecomp.txt (94.7 KB)

for confirm

Hello @ialexpovod

from the makecomp.txt file looks like that the library geoviewer.so is correctly compiled.

Have you run the command
make install DESTDIR=/Users/ialexpovod/FLUKA/flair-3.1
and tested flair?

Performed repeated actions again:

% make clean
% make install DESTDIR=/Users/ialexpovod/FLUKA/flair-3.1

Result:

install -m 644 geoviewer.so /Users/ialexpovod/FLUKA/flair-3.1
install -m 755 usrbin2dvh /Users/ialexpovod/FLUKA/flair-3.1
install: usrbin2dvh: No such file or directory
make: *** [install] Error 71

Flair launched. I go to the Geometry tab – crashes from GUI:

ialexpovod@ipovodmacbook flair-geoviewer-3.1 % flair
/Users/ialexpovod/FLUKA/flair-3.1/flair: line 14: 39144 Bus error: 10           ${PYTHON} -O -W ignore ${DIR}/flair.py "$@"

According to this algorithm:

% make clean
% make DEBUG=yes
% make install DESTDIR=/Users/ialexpovod/FLUKA/flair-3.1

Result:

/Users/ialexpovod/FLUKA/flair-3.1/flair: line 14: 41713 Bus error: 10           ${PYTHON} -O -W ignore ${DIR}/flair.py "$@"

I tried to solve the problem in PyInit_geoviewer. Found a similar problem on stackoverflow - dynamic module does not define module export function. I realised the my refers to opt/homebrew/bin/python. Then I replaced it with /opt/local/bin/python3 - this location port. And then I run FLAIR in Terminal:

% flair

Finally, FLAIR without giving out errors, GUI d not launching.

Dear @ialexpovod

to reproduce your problem, could you provide me these info:

  • What is the OSX version you’re using?
  • The output of the command port echo installed
  • The output of the command port select --summary
  • The output of the command which gfortran
  • The command gfortran -print-sysroot prints in the terminal a directory name. Does it exist?

port_echo_installed.txt (15.8 KB)

and what is your OS version? sw_vers
and CPU processor? uname -a

macOS Big Sur
System Version 11.5.1
Kernel Version: Darwin 20.6.0
MacBook Air
Chip Apple M1
Memory 8 Gb

Hello @ialexpovod

the M1 processor is rather new and the gcc installation is sometime still troublesome…
However, I was able to compile geoviewer and running Flair on a Mac with M1.

The Mac I used for test has

  1. macOS Monterey (the latest version of the OS, newer than yours)
  2. the same list of ports you have

However, I had to compile geoviewer with the debug option activated (as you also mentioned in a previous message).
Sometime, it might be useful to reinstall MacPorts since it can be corrupted.

Before doing that

  • Are you still using the changes implemented in PyInit_geoviewer?
  • Did you log out and log in to use MacPorts’ X11 as the default server?
1 Like

Dear @luillo
I did it! Hooray!
I followed your instructions. I reinstalled all the MacPorts package. They were indeed damaged. XQuartz just installed properly after reinstalling the MacPorts packages.
In fact, I didn’t behave neatly in Terminal. As they say,

With great power comes great responsibility.