ImportError: dynamic module does not define module export function (PyInit__mgis) #93
jeanmichelscherer
started this conversation in
General
Replies: 1 comment
-
Thanks for the feed-back @jeanmichelscherer. I would admit that I totally forgot about this issue... and the fix ! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Thomas,
I would like to report on how to solve the above error I ran into when installing mgis, because others might face the same issue.
I installed boost version 1.65 with
apt-get install libboost-python1.65-dev
and then rancmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/MFrontGenericInterfaceSupport/install-python-3.6/ -Denable-c-bindings=ON -Denable-fortran-bindings=ON -Denable-python-bindings=ON -DPython_ADDITIONAL_VERSIONS=3.6
as recommended inINSTALL-cmake.md
.After setting my
$PYTHONPATH
and$LD_LIBRARY_PATH
adequately, the following error occurred:Trying to fix this issue, I came across this thread:
https://sourceforge.net/p/tfel/discussion/installation/thread/32dd128c2a/
Adding
-Denable-broken-boost-python-module-visibility-handling=ON
to thecmake
command above solved the problem.mgis
is now imported nicely.Hope this can help future users.
Best,
Jean-Michel
Beta Was this translation helpful? Give feedback.
All reactions