statgen / pheweb

A tool to build a website to browse hundreds or thousands of GWAS.
MIT License
154 stars 65 forks source link

ModuleNotFoundError: No module named 'pheweb.command_line' #211

Closed sylee20 closed 5 months ago

sylee20 commented 10 months ago

I first tried to install with 'pip3 install pheweb' but got 'permission denied' error.

So I installed with the code suggested in 'detailed install instructions'.

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 pheweb

Then I wanted to check if it's properly installed by typing 'pheweb --help' but I got this error:

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. I ran this code:

    echo 'PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc

    Then closed the session and opened a new one but got the same error

  2. When I run this code:

    sudo python3 -m pip show pheweb

    I get this result:

    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, wget

I tried adding this to /.bashrc file but it didn't workout:

PATH="/usr/local/lib/python3.6/dist-packages:$PATH"
  1. I uninstalled and re-installed pheweb but still got the same error.

Can you please help me address this issue?

Thank you.

pjvandehaar commented 10 months ago

What if you run “sudo pheweb”?

If that doesn’t work, I recommend installing miniconda3 and using that to install pheweb.

On Mon, Aug 21, 2023 at 2:05 AM sylee20 @.***> wrote:

I first tried to install with 'pip3 install pheweb' but got 'permission denied' error.

So I installed with the code suggested in 'detailed install instructions'.

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 pheweb

Then I wanted to check if it's properly installed by typing 'pheweb --help' but I got this error:

Traceback (most recent call last): File "/usr/local/bin/pheweb", line 5, in from pheweb.command_line import main ModuleNotFoundError: No module named 'pheweb.command_line'

This is what else I've tried:

  1. I ran this code:

echo 'PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc

Then closed the session and opened a new one but got the same error

  1. When I run this code:

sudo python3 -m pip show pheweb

I get this result:

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: @.*** 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, wget

I tried adding this to /.bashrc file but it didn't workout:

PATH="/usr/local/lib/python3.6/dist-packages:$PATH"

  1. I uninstalled and re-installed pheweb but still got the same error.

Can you please help me address this issue?

Thank you.

— Reply to this email directly, view it on GitHub https://github.com/statgen/pheweb/issues/211, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGSPCNGCKSEPFGFIQ7BL2TXWMJEFANCNFSM6AAAAAA3X7PZWU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

sylee20 commented 10 months ago

Running "sudo pheweb" solved the problem. Thank you so much for your help!

pjvandehaar commented 10 months ago

Thanks for letting me know that it worked. I updated the instructions.

On Mon, Aug 21, 2023 at 10:49 PM sylee20 @.***> wrote:

Running "sudo pheweb" solved the problem. Thank you so much for your help!

— Reply to this email directly, view it on GitHub https://github.com/statgen/pheweb/issues/211#issuecomment-1687413877, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGSPCMTQLCUH6TEQSUQUGTXWQ24RANCNFSM6AAAAAA3X7PZWU . You are receiving this because you commented.Message ID: @.***>