Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

umi_tools whitelist --help: ImportError: No module named Utilities #321

Closed
madaojjc opened this issue Feb 17, 2019 · 6 comments
Closed

umi_tools whitelist --help: ImportError: No module named Utilities #321

madaojjc opened this issue Feb 17, 2019 · 6 comments

Comments

@madaojjc
Copy link

I installed umi_tools by

git clone https://github.com/CGATOxford/UMI-tools.git
pip install -r requirements.txt
python setup.py install

and after that, when I run umi_tools , there was no problem, but when run umi_tools whitelist --help, it showed:

UMI-Tools: Version 1.0.0
Traceback (most recent call last):
File "/usr/local/bin/umi_tools", line 11, in
load_entry_point('umi-tools==1.0.0', 'console_scripts', 'umi_tools')()
File "/home/shen/.local/lib/python2.7/site-packages/umi_tools-1.0.0-py2.7-linux-x86_64.egg/umi_tools/umi_tools.py", line 58, in main
module = importlib.import_module("umi_tools." + command, "umi_tools")
File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/home/shen/.local/lib/python2.7/site-packages/umi_tools-1.0.0-py2.7-linux-x86_64.egg/umi_tools/whitelist.py", line 205, in
import umi_tools.Utilities as U
ImportError: No module named Utilities

@madaojjc
Copy link
Author

I tried pip install and conda, but there was still such a problem...

@IanSudbery
Copy link
Member

Hi,

As of this new version, 1.0.0 we no longer support python 2.7. Try creating a new python 3 conda environment and installing UMI-Tools with:

conda create -n umi_tools_env -c bioconda python=3.7 umi_tools 
source activate umi_tools_env

Alternatively, if you really need to install UMI-Tools in a python 2 enviornment, please install version 0.5.5 with conda install umi_tools==0.5.5 or pip install umi_tools==0.5.5

@madaojjc
Copy link
Author

Hi,

As of this new version, 1.0.0 we no longer support python 2.7. Try creating a new python 3 conda environment and installing UMI-Tools with:

conda create -n umi_tools_env -c bioconda python=3.7 umi_tools 
source activate umi_tools_env

Alternatively, if you really need to install UMI-Tools in a python 2 enviornment, please install version 0.5.5 with conda install umi_tools==0.5.5 or pip install umi_tools==0.5.5

Creating a new python 3 conda environment sovled my problem! THANKS A LOT!

@madaojjc
Copy link
Author

madaojjc commented Feb 19, 2019 via email

@IanSudbery
Copy link
Member

Your welcome.

@qicaibiology
Copy link

Hi,

As of this new version, 1.0.0 we no longer support python 2.7. Try creating a new python 3 conda environment and installing UMI-Tools with:

conda create -n umi_tools_env -c bioconda python=3.7 umi_tools 
source activate umi_tools_env

Alternatively, if you really need to install UMI-Tools in a python 2 enviornment, please install version 0.5.5 with conda install umi_tools==0.5.5 or pip install umi_tools==0.5.5

conda install umi_tools==0.5.5 also works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants