install obitools error
Entering edit mode
5.0 years ago
liu_ming_xin ▴ 20


I was using command $python to install the obitools in Ubuntu 16.04.1 LTS x86_64. Just fail to successfully install in my laptop. The error reports like below:

/tmp/tmpzfS5CP/ Traceback (most recent call last): File "", line 45234, in <module> main() File "", line 45171, in main filename = pypidownload() File "", line 45156, in pypidownload pip = get_a_pip_module() File "", line 45095, in get_a_pip_module pipmodule = importlib.import_module('pip') File "/usr/lib/python2.7/importlib/", line 37, in import_module __import__(name) File "/tmp/tmpzfS5CP/", line 11, in <module> File "/tmp/tmpzfS5CP/", line 9, in <module> File "/tmp/tmpzfS5CP/", line 22, in <module> File "/tmp/tmpzfS5CP/", line 53, in <module> File "/tmp/tmpzfS5CP/", line 70, in <module> AttributeError: 'module' object has no attribute 'PROTOCOL_SSLv3'

I am very grateful if someone can help me out. Thanks in advance, guys.

Cheers, Mingxin

obitools ubuntu next-gen metabarcoding • 4.1k views
Entering edit mode
4.9 years ago


there is a bug in the install script for Ubuntu 16.04.

Just follow the next lines to install the obitools :

## go to your home dir or wherever you want

## create a virtual env with python 2.7
mkdir OBI
cd OBI
virtualenv-2.7 OBI-env

## get and extract the source
wget ''
tar -zxvf "archive.tar.gz?ref=master"

## activate the virtual env
source OBI-env/bin/activate

## last sphinx version has a problem, install one that is OK
pip install sphinx==1.4.8

## enter the source folder
cd obitools-master-*

## build the package
python build

## install it in the virtual env
python install

## leave the virtualenv

At this point the software should be installed within the OBI directory, just add the bin directory in your PATH

## add this line in your .bashrc
## to enable the OBITools

export PATH=${PATH}:"~/OBI/OBI-env/bin"


Entering edit mode

Hi Frederic,

Thank you very much. It really solved my problem.

Cheers, Mingxin

Entering edit mode

Hi, i tried to follow the steps described above, I am using ubuntu 16.04 and I am getting this error:

error in OBITools setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Invalid requirement, parse error at "'and <6'" can the problem be solved? thanks a lot

Entering edit mode
3.9 years ago
jojoezz ▴ 10

Hello I tried all the above suggestion but no luck. But someone helped me and I would like to share how it worked for me.

1) First, you need to install pip, in case you don't have it:

sudo apt-get install python-pip

2) Then install the biopython dependencies:

sudo pip install biopython

3) Then, simply install the OBITools python package. It will automatically install virtualenv, cython and sphinx:

sudo pip install obitools

(Probably, you will get some warnings and "compiling errors". But the OBITools will still work.)

To test if the OBITools have been properly installed, then try to write in the command line, for example:

obicount --help

And if you get the help screen of the command, then everything's working OK.

I hope it will work for you

Entering edit mode
4.3 years ago
calvi.c • 0

The answer above also solved my problem once (thanks!), but when I tried to install it on Ubuntu 16 LTS, it didn t work any more. Error:

error in OBITools setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Invalid requirement, parse error at "'and <6'"

In a bioinformatics group I got the message that apparently, there is a bug in the installation script of OBITools when run in Ubuntu 16.

One way was to go back to Ubuntu 14, but that s not a good long term solution.

Entering edit mode

I got the same 'install_requires' error when trying to install obitools as in the answer above on Ubuntu 16.04. Following the steps at Downloading and installing the OBITools section from the official page solved the problem for me.

Entering edit mode
2.6 years ago

If you are not averse to running a tool from docker, containerized obitools is now available (I'm the author of the repository):

You can use Python to send it commands, or just regular docker exec ....


Login before adding your answer.

Traffic: 2926 users visited in the last hour
Help About
Access RSS

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

Powered by the version 2.3.6