Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import Error: version `CXXABI_1.3.9' not found #92

Closed
diegoquintanav opened this issue Oct 19, 2017 · 13 comments
Closed

Import Error: version `CXXABI_1.3.9' not found #92

diegoquintanav opened this issue Oct 19, 2017 · 13 comments

Comments

@diegoquintanav
Copy link

diegoquintanav commented Oct 19, 2017

Hi. I've just forked the repo and tried to run the first code, nsfg.py. I get an error regarding something with matplotlib.

My intuition tells me that this may have alreade a solution, but I have found none. The full trace of the error is the following

diego@ubuntu:~/Documents/dev/ThinkStats2/code$ python nsfg.py 
Traceback (most recent call last):
  File "nsfg.py", line 12, in <module>
    import thinkstats2
  File "/home/diego/Documents/dev/ThinkStats2/code/thinkstats2.py", line 34, in <module>
    import thinkplot
  File "/home/diego/Documents/dev/ThinkStats2/code/thinkplot.py", line 12, in <module>
    import matplotlib.pyplot as plt
  File "/home/diego/anaconda3/lib/python3.5/site-packages/matplotlib/pyplot.py", line 29, in <module>
    import matplotlib.colorbar
  File "/home/diego/anaconda3/lib/python3.5/site-packages/matplotlib/colorbar.py", line 32, in <module>
    import matplotlib.artist as martist
  File "/home/diego/anaconda3/lib/python3.5/site-packages/matplotlib/artist.py", line 15, in <module>
    from .transforms import (Bbox, IdentityTransform, TransformedBbox,
  File "/home/diego/anaconda3/lib/python3.5/site-packages/matplotlib/transforms.py", line 39, in <module>
    from matplotlib._path import (affine_transform, count_bboxes_overlapping_bbox,
ImportError: /home/diego/anaconda3/lib/python3.5/site-packages/matplotlib/../../../libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /home/diego/anaconda3/lib/python3.5/site-packages/matplotlib/_path.cpython-35m-x86_64-linux-gnu.so)

If it means something, I'm using
matplotlib (2.0.2)
Python 3.5.4 :: Anaconda, Inc.
conda 4.3.30
gcc (GCC) 4.8.5

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial

Thanks

@diegoquintanav
Copy link
Author

diegoquintanav commented Oct 20, 2017

I managed to find a solution. It seems that a newer version of gcc is required, in particular one that contains CXXABI_1.3.9

After some reading, there are two possible solutions:

  1. One for the people without anaconda, which is somehow explained here.

  2. In my case I use Anaconda, and the problem is solved with conda install libgcc, which upgrades the current gcc compiler.

More info about this can be found here

@AllenDowney
Copy link
Owner

AllenDowney commented Oct 20, 2017 via email

@wasiahmad
Copy link

I am facing the same issue but conda install libgcc didn't work for me.

@AllenDowney
Copy link
Owner

AllenDowney commented Apr 17, 2018 via email

@Orientier7
Copy link

I solve this problem by pip uninstalling/reinstalling scipy

@Saleh-Gholam-Zadeh
Copy link

Typing

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/diego/anaconda3/lib/

in the terminal will solve the problem

@yilunzhao
Copy link

Typing

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/diego/anaconda3/lib/

in the terminal will solve the problem

Thanks! This works for me.

@LetsGoFir
Copy link

Typing

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/diego/anaconda3/lib/

in the terminal will solve the problem

works for me too

@jzhoubu
Copy link

jzhoubu commented Jun 26, 2020

Typing

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/diego/anaconda3/lib/

in the terminal will solve the problem

works for me too :)

@euna-cho
Copy link

euna-cho commented Nov 13, 2020

I managed to find a solution. It seems that a newer version of gcc is required, in particular one that contains CXXABI_1.3.9

After some reading, there are two possible solutions:

  1. One for the people without anaconda, which is somehow explained here.
  2. In my case I use Anaconda, and the problem is solved with conda install libgcc, which upgrades the current gcc compiler.

More info about this can be found here

I faced error : libstdc++.so.6: version 'CXXABI_1.3.9' not found
but conda install libgcc worked for me! thanks

@brando90
Copy link

conda install libgcc

that didn't work for me

@soodeh-nilforoushan
Copy link

export LD_LIBRARY_PATH

Thanks, Work for me

@k-aleksandrovich
Copy link

k-aleksandrovich commented Apr 26, 2022

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/diego/anaconda3/lib/

in the terminal will solve the problem

Oh thank you so much, man
I've almost lost my hope

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests