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

ModuleNotFoundError: No module named 'tabix' #9

Open
CeballosGene opened this issue Jan 27, 2022 · 3 comments
Open

ModuleNotFoundError: No module named 'tabix' #9

CeballosGene opened this issue Jan 27, 2022 · 3 comments

Comments

@CeballosGene
Copy link

CeballosGene commented Jan 27, 2022

I have a problem running your script! I used the following line:
python bin/PGxPOP.py --vcf ./prueba/C11_v1.vcf.gz.tbi --phased --g CYP2D6 --build hg19 -o ./prueba/

And I have the following lines:

Traceback (most recent call last):
  File "/home/rembukai/BIOSOFT/PGxPOP/bin/PGxPOP.py", line 16, in <module>
    import Gene
  File "/home/rembukai/BIOSOFT/PGxPOP/bin/Gene.py", line 8, in <module>
    from Variant import Variant
  File "/home/rembukai/BIOSOFT/PGxPOP/bin/Variant.py", line 2, in <module>
    from DawgToys import clean_chr, iupac_nt
  File "/home/rembukai/BIOSOFT/PGxPOP/bin/DawgToys.py", line 2, in <module>
    import tabix
ModuleNotFoundError: No module named 'tabix'

I have installed tabix along with python in:
/home/rembukai/.local/lib/python3.8/site-packages (0.1)
How can I tell PGxPOP where to find tabix?

Thank you very much

@cariaso
Copy link

cariaso commented Jan 27, 2022 via email

@CeballosGene
Copy link
Author

Thank you very much. I already haver done that and I got:

Requirement already satisfied: pytabix in /home/rembukai/.local/lib/python3.8/site-packages (0.1)

@CeballosGene
Copy link
Author

I'm sorry to keep bothering you. But I cant make PGxPP work and it is really important for me to use it.
I unistalled PGxPOP and installed it again.
When I run the line
pip install -r requirements.txt
I obtained the following text:

Requirement already satisfied: numpy==1.15.2 in /home/rembukai/.local/lib/python3.8/site-packages (from -r requirements.txt (line 1)) (1.15.2)
Requirement already satisfied: pyliftover==0.4 in /home/rembukai/.local/lib/python3.8/site-packages (from -r requirements.txt (line 2)) (0.4)
Requirement already satisfied: pytabix==0.1 in /home/rembukai/.local/lib/python3.8/site-packages (from -r requirements.txt (line 3)) (0.1)

Then I run the line to complete the process:
python ./bin/PGxPOP.py --vcf ./pruebas/C11_v1.vcf.gz.tbi --phased --g CYP2D6 --build hg19 -o ./pruebas/

However I obtained this error message:

  File "/home/rembukai/BIOSOFT/PGxPOP/bin/PGxPOP.py", line 11, in <module>
    import numpy as np
ModuleNotFoundError: No module named 'numpy'

First it was the module tabix and now is the module numpy. Please, could you help me to solve this issue. For the last 3 days I have been trying everything without success.

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

2 participants