% 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
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.
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
macOS Monterey (the latest version of the OS, newer than yours)
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?
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,