Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Can't import bcolz #326

Closed
QuantGongbin opened this issue Dec 6, 2016 · 9 comments
Closed

Can't import bcolz #326

QuantGongbin opened this issue Dec 6, 2016 · 9 comments

Comments

@QuantGongbin
Copy link

QuantGongbin commented Dec 6, 2016

I installed bcolz by pip(Python version 2.7.12),when import bcolz, it has error like this :

Think:~$ python -c "import bcolz"
Traceback (most recent call last):
File "", line 1, in
File "/home/gongbin/DEVELOP/ENTER/lib/python2.7/site-packages/bcolz/init.py", line 76, in
from bcolz.carray_ext import (
ImportError: /home/gongbin/DEVELOP/ENTER/lib/python2.7/site-packages/bcolz/carray_ext.so: undefined symbol: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm

@leewhenyoung
Copy link

The same problem! Have you solved it?

@FrancescAlted
Copy link
Member

Release bcolz 1.1.2 should have a fix for this.

@QuantGongbin
Copy link
Author

@leewhenyoung I have solved this problem.The problem is that I installed Python by Anaconda, then bcolz use libstdc++.so provided by Anaconda, but this libstdc++.so lacks the nessceary symbol used in bcolz.
I solved this problem by use the nm command as follows:
nm /usr/lib/libstdc++.so.6 /usr/lib/libstdc++/so/6.0.22
Hope it can help you

@leewhenyoung
Copy link

@QuantGongbin Bingo! thanks a lot!

@FrancescAlted
Copy link
Member

Cool. So it was a packaging problem. Closing then.

@yashk2810
Copy link

yashk2810 commented Mar 1, 2017

@QuantGongbin
When I run this command:- nm /usr/lib/libstdc++.so.6 /usr/lib/libstdc++/so/6.0.22
I get the following error:
nm: '/usr/lib/libstdc++.so.6': No such file
nm: '/usr/lib/libstdc++/so/6.0.22': No such file

Can someone suggest another way?

@phsilveira
Copy link

phsilveira commented Mar 11, 2017

@yashk2810
I solved, with Anaconda Installed, using this command
$ conda install libgcc

@MattKleinsmith
Copy link

@phsilveira

Thank you, this worked for me. How did you know to do this?

@AbhimanyuAryan
Copy link

@phsilveira thanks it really helped 👍

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

No branches or pull requests

7 participants