Can't import HTSeq module in python promt
1
0
Entering edit mode
7.3 years ago
stardust • 0

Having problems with the installation of HTSeq on Ubuntu 16.1. Followed instructions step by step and the installation seemed to go with no errors. But later when testing if the module is installed by typing

>>>import HTSeq 

ImportError: /home/ivan/anaconda2/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/ivan/.local/lib/python2.7/site-packages/HTSeq-0.6.1p1-py2.7-linux-x86_64.egg/HTSeq/_StepVector.so)
HTSeq • 3.0k views
ADD COMMENT
2
Entering edit mode

You have two versions of libstdc++, one from the system and the other from conda. Apparently, you compiled HTSeq with the system libstdc++, but the library found the conda version when running. The solution depends on how much you use conda and your system configuration. Hard to say without seeing these.

ADD REPLY
1
Entering edit mode
7.3 years ago

Can you try this

sudo apt-get install libstdc++6

and then try impoting HTSeq?

ADD COMMENT
0
Entering edit mode

Thank you so much. Now "Import HTSeq" command seems to be working in both - Python prompt ">>>" inside terminal , and also inside jupyter notebook .

ADD REPLY

Login before adding your answer.

Traffic: 2468 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6