Hi Frederic,
Thank you very much. It really solved my problem.
Cheers, Mingxin
Hello,
I was using command $python get-obitools.py 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/obitools.zip Traceback (most recent call last): File "get-obitools.py", line 45234, in <module> main() File "get-obitools.py", line 45171, in main filename = pypidownload() File "get-obitools.py", line 45156, in pypidownload pip = get_a_pip_module() File "get-obitools.py", line 45095, in get_a_pip_module pipmodule = importlib.import_module('pip') File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/tmp/tmpzfS5CP/obitools.zip/pip/__init__.py", line 11, in <module> File "/tmp/tmpzfS5CP/obitools.zip/pip/vcs/mercurial.py", line 9, in <module> File "/tmp/tmpzfS5CP/obitools.zip/pip/download.py", line 22, in <module> File "/tmp/tmpzfS5CP/obitools.zip/pip/_vendor/requests/__init__.py", line 53, in <module> File "/tmp/tmpzfS5CP/obitools.zip/pip/_vendor/requests/packages/urllib3/contrib/pyopenssl.py", 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
Hi,
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
cd
## create a virtual env with python 2.7
mkdir OBI
cd OBI
virtualenv-2.7 OBI-env
## get and extract the source
wget 'https://git.metabarcoding.org/obitools/obitools/repository/archive.tar.gz?ref=master'
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 setup.py build
## install it in the virtual env
python setup.py install
## leave the virtualenv
deactivate
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"
regards
Hi Frederic,
Thank you very much. It really solved my problem.
Cheers, Mingxin
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
sudo apt-get install python-pip
sudo pip install biopython
sudo pip install obitools
obicount --help
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.
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.
If you are not averse to running a tool from docker, containerized obitools is now available (I'm the author of the repository): https://hub.docker.com/r/romunov/obitools
You can use Python to send it commands, or just regular docker exec ....
Log in to answer this question.