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

Pip installation fails on PyVCF #98

Closed
haochenz96 opened this issue Feb 27, 2022 · 7 comments
Closed

Pip installation fails on PyVCF #98

haochenz96 opened this issue Feb 27, 2022 · 7 comments

Comments

@haochenz96
Copy link

haochenz96 commented Feb 27, 2022

Hi,

Thanks for developing this amazing tool!

While I tried to install it with pip today, I got an error saying:

Collecting pyvcf
  Downloading PyVCF-0.6.8.tar.gz (34 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in PyVCF setup command: use_2to3 is invalid.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

I believe this is related to PyVCF not compatible with setuptools used in newer Python (mine is Python 3.7.12), as mentioned in this issue: jamescasbon/PyVCF#332

Also, it seems that PyVCF only parses VCF format V4.0 and V4.1, whereas the standard right now is V4.2. The package does not seem to be maintained anymore. So it may be better to switch to a newer VCF parser.

Haochen

@rkimoakbioinformatics
Copy link
Contributor

rkimoakbioinformatics commented Feb 27, 2022

@haochenz96 Thanks for letting us know. It is indeed a known problem. First of all, a workaround is:

>pip install "setuptools<58" --upgrade
>pip uninstall pyvcf
>pip install pyvcf

VCFPy seems to be an alternative. If it proves to be better than PyVCF, it'll be used instead of PyVCF.

@haochenz96
Copy link
Author

Ok. Thanks. I seem to have got around it in another way: I just installed it with

conda install -c bioconda open-cravat

Will try it out and let you know if the PyVCF parser has any issue

@rkimoakbioinformatics
Copy link
Contributor

Ok great. Closing the thread for now.

@BenjaminDEMAILLE
Copy link

Same error

@jasminebro
Copy link
Collaborator

Same error

Hi @BenjaminDEMAILLE . Are you having the same error currently?

@BenjaminDEMAILLE
Copy link

BenjaminDEMAILLE commented Dec 16, 2024 via email

@kmoad
Copy link
Collaborator

kmoad commented Dec 16, 2024

@BenjaminDEMAILLE I'm getting clean installs. Could you please share:

  • What OS you're using
  • How you have python installed (native, anaconda, docker, etc)
  • The output of running pip install open-cravat

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

5 participants