Question: install obitools error
gravatar for liu_ming_xin
2.8 years ago by
liu_ming_xin10 wrote:


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

ADD COMMENTlink modified 5 months ago by Roman Luštrik80 • written 2.8 years ago by liu_ming_xin10
gravatar for frederic.boyer
2.7 years ago by
frederic.boyer10 wrote:


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"


ADD COMMENTlink written 2.7 years ago by frederic.boyer10

Hi Frederic,

Thank you very much. It really solved my problem.

Cheers, Mingxin

ADD REPLYlink written 2.6 years ago by liu_ming_xin10

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

ADD REPLYlink written 24 months ago by ieie0
gravatar for jojoezz
20 months ago by
jojoezz10 wrote:

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

ADD COMMENTlink written 20 months ago by jojoezz10
gravatar for calvi.c
2.1 years ago by
calvi.c0 wrote:

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.

ADD COMMENTlink modified 2.1 years ago • written 2.1 years ago by calvi.c0

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.

ADD REPLYlink written 21 months ago by MTA0
gravatar for Roman Luštrik
5 months ago by
Ljubljana, Slovenia
Roman Luštrik80 wrote:

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 ....

ADD COMMENTlink written 5 months ago by Roman Luštrik80
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1855 users visited in the last hour