This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Can't import HTSeq module in python promt

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

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.

1 answer

Can you try this

sudo apt-get install libstdc++6

and then try impoting HTSeq?

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

Log in to answer this question.