"ModuleNotFoundError: No module named 'pheweb.command_line'"
by soo94 from LinuxQuestions.org on (#6E0YM)
I am trying to run a software called 'Pheweb' on Ubuntu.<br>
I followed the guideline here
but got `'permission denied'` error when I ran Code:pip3 install pheweb. So I installed with this code:<br>
Code:sudo apt-get update
sudo apt-get install python3-pip python3-dev libz-dev libffi-dev
sudo python3 -m pip install wheel cython
sudo python3 -m pip install phewebas the guideline author suggests in the 'detailed install instructions'.
I wanted to check that it's properly installed by typing Code:pheweb --helpbut I got this error:
Code:Traceback (most recent call last):
File "/usr/local/bin/pheweb", line 5, in <module>
from pheweb.command_line import main
ModuleNotFoundError: No module named 'pheweb.command_line'This is what else I've tried:
1. The author states the below proceedure in 'the detailed install instructions' and I tried this but still got the same error;<br>
If installation was successful but the command pheweb --help is not found,
you need to add pheweb to your PATH. You should be able to just run Code:echo
'PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc, start a new terminal, and try
pheweb --help again.
2. When I run this code:
Code:sudo python3 -m pip show phewebI get this result:
Code:Name: PheWeb
Version: 1.3.16
Summary: A tool for building PheWAS websites from association files
Home-page: <https://github.com/statgen/pheweb>
Author: Peter VandeHaar
Author-email: pjvh@umich.edu
License: UNKNOWN
Location: /usr/local/lib/python3.6/dist-packages
Requires: boltons, cffi, Flask, Flask-Compress, Flask-Login, gevent, gunicorn, intervaltree, numpy, psutil, pysam, rauth, requests, scipy, tqdm, wgetI tried adding
Code:PATH="/usr/local/lib/python3.6/dist-packages:$PATH"to `~/.bashrc` as well but I still got the same error.
When I run Code:which phewebI get the result: Code:/usr/local/bin/phewebHow could I solve this problem?
I followed the guideline here
but got `'permission denied'` error when I ran Code:pip3 install pheweb. So I installed with this code:<br>
Code:sudo apt-get update
sudo apt-get install python3-pip python3-dev libz-dev libffi-dev
sudo python3 -m pip install wheel cython
sudo python3 -m pip install phewebas the guideline author suggests in the 'detailed install instructions'.
I wanted to check that it's properly installed by typing Code:pheweb --helpbut I got this error:
Code:Traceback (most recent call last):
File "/usr/local/bin/pheweb", line 5, in <module>
from pheweb.command_line import main
ModuleNotFoundError: No module named 'pheweb.command_line'This is what else I've tried:
1. The author states the below proceedure in 'the detailed install instructions' and I tried this but still got the same error;<br>
If installation was successful but the command pheweb --help is not found,
you need to add pheweb to your PATH. You should be able to just run Code:echo
'PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc, start a new terminal, and try
pheweb --help again.
2. When I run this code:
Code:sudo python3 -m pip show phewebI get this result:
Code:Name: PheWeb
Version: 1.3.16
Summary: A tool for building PheWAS websites from association files
Home-page: <https://github.com/statgen/pheweb>
Author: Peter VandeHaar
Author-email: pjvh@umich.edu
License: UNKNOWN
Location: /usr/local/lib/python3.6/dist-packages
Requires: boltons, cffi, Flask, Flask-Compress, Flask-Login, gevent, gunicorn, intervaltree, numpy, psutil, pysam, rauth, requests, scipy, tqdm, wgetI tried adding
Code:PATH="/usr/local/lib/python3.6/dist-packages:$PATH"to `~/.bashrc` as well but I still got the same error.
When I run Code:which phewebI get the result: Code:/usr/local/bin/phewebHow could I solve this problem?