import biogeme.biogeme as bio / cythonbiogeme.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNSt15__exception_ptr13exception_ptr10_M_releaseEv

15 views
Skip to first unread message

sara gharavi

unread,
May 17, 2023, 1:29:13 AM5/17/23
to Biogeme
Bonjour À tous

I am trying to use biogeme codes in file( b01logit.py) , I have an Ubuntu 22.04.2 LTS system on virtual machine , I installed the biogeme via pip, and it correctly installed and show me the version , but when I want to import the models and bio it gives this error:


 import biogeme

import biogeme.version as ver

ver.getText()

'biogeme 3.2.10 [2023-05-16]\nVersion entirely written in Python\nHome page: http://biogeme.epfl.ch\nSubmit questions to https://groups.google.com/d/forum/biogeme\nMichel Bierlaire, Transport and Mobility Laboratory, Ecole Polytechnique Fédérale de Lausanne (EPFL)\n


mport biogeme.biogeme as bio
from biogeme import models
from biogeme.expressions import Beta

ImportError: /home/sara/anaconda3/lib/python3.7/site-packages/biogeme/cythonbiogeme.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNSt15__exception_ptr13exception_ptr10_M_releaseEv


Note that I am using jupyter notebook from the terminal ,

can you kindly help me to fix this issue 
Merci et bonnes journées,

Michel Bierlaire

unread,
May 17, 2023, 1:37:06 AM5/17/23
to Biogeme
Do you use conda? 
This issue is documented on the internet. If you Google it, you’ll find several discussions.
For instance:
https://github.com/pybind/pybind11/issues/3623

Among the proposed solutions: 
Use “python -m pip” instead of “pip”

Or define CXX=g++-9
Reply all
Reply to author
Forward
0 new messages