Comments (11)
Facing the same issue in RHEL 7.
from vcf-kit.
Same issue here
from vcf-kit.
Same issue. Any news?
from vcf-kit.
Currently, vcf-kit only works with Python 2.7
from vcf-kit.
How do you change what version of python you're running vcf-kit through?
from vcf-kit.
@mayasheth Check out pyenv and pyenv-virtualenv. You can use them to set up python on a per-directory basis.
from vcf-kit.
I just ran into this issue on CentOS 7 as well. I tried with the system's Python 2.7.5, Python 3.4.9, and a custom Python 2.7.13 virtual environment.
In both Python 2 environments vk
fails with:
$ vk
Traceback (most recent call last):
File "/tmp/vcfkit/bin/vk", line 6, in <module>
from vcfkit.vk import main
File "/tmp/vcfkit/lib/python2.7/site-packages/vcfkit/vk.py", line 27, in <module>
from utils.vcf import *
File "/tmp/vcfkit/lib/python2.7/site-packages/vcfkit/utils/vcf.py", line 10, in <module>
np.set_printoptions(threshold=np.nan)
File "/tmp/vcfkit/lib/python2.7/site-packages/numpy/core/arrayprint.py", line 246, in set_printoptions
floatmode, legacy)
File "/tmp/vcfkit/lib/python2.7/site-packages/numpy/core/arrayprint.py", line 93, in _make_options_dict
raise ValueError("threshold must be numeric and non-NAN, try "
ValueError: threshold must be numeric and non-NAN, try sys.maxsize for untruncated representation
On Python 3.4 it fails with:
$ vk
Traceback (most recent call last):
File "/tmp/vcfkit-python3/bin/vk", line 11, in <module>
load_entry_point('VCF-kit==0.1.6', 'console_scripts', 'vk')()
File "/tmp/vcfkit-python3/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 487, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/tmp/vcfkit-python3/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 2728, in load_entry_point
return ep.load()
File "/tmp/vcfkit-python3/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 2346, in load
return self.resolve()
File "/tmp/vcfkit-python3/lib64/python3.4/site-packages/pkg_resources/__init__.py", line 2352, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/tmp/vcfkit-python3/lib64/python3.4/site-packages/vcfkit/vk.py", line 24, in <module>
from utils import lev, message
ImportError: No module named 'utils'
What is the correct Python to run VCF-Kit with? Can you please add some notice to the README.md to guide us? Thanks!
from vcf-kit.
I'm in the exact same situation as @alanorth. Any suggestions how to get it running?
from vcf-kit.
@alanorth @chromatimera It isn't compatible with Python3 currently.
I'm think there must be some sort of incompatibility with an update to numpy. I'm a bit stretched on time right now, but I would like to find a solution in the near future.
A quick workaround would be to use conda or docker.
Please see:
https://bioconda.github.io/recipes/vcfkit/README.html
Which also lists an available docker container:
docker pull quay.io/repository/biocontainers/vcfkit
from vcf-kit.
Hi @danielecook ! I was using VCF-kit over the last few days and after a conda update it is now giving an error as below:
Traceback (most recent call last): File "/home/ofelia/anaconda2/bin/vk", line 7, in <module> from vcfkit.vk import main File "/home/ofelia/anaconda2/lib/python2.7/site-packages/vcfkit/vk.py", line 27, in <module> from utils.vcf import * File "/home/ofelia/anaconda2/lib/python2.7/site-packages/vcfkit/utils/vcf.py", line 10, in <module> np.set_printoptions(threshold=np.nan) File "/home/ofelia/anaconda2/lib/python2.7/site-packages/numpy/core/arrayprint.py", line 246, in set_printoptions floatmode, legacy) File "/home/ofelia/anaconda2/lib/python2.7/site-packages/numpy/core/arrayprint.py", line 93, in _make_options_dict raise ValueError("threshold must be numeric and non-NAN, try " ValueError: threshold must be numeric and non-NAN, try sys.maxsize for untruncated representation
Same goes for trying to access it with docker:
Traceback (most recent call last): File "/home/ofelia/anaconda2/bin/vk", line 7, in <module> from vcfkit.vk import main File "/home/ofelia/anaconda2/lib/python2.7/site-packages/vcfkit/vk.py", line 27, in <module> from utils.vcf import * File "/home/ofelia/anaconda2/lib/python2.7/site-packages/vcfkit/utils/vcf.py", line 10, in <module> np.set_printoptions(threshold=np.nan) File "/home/ofelia/anaconda2/lib/python2.7/site-packages/numpy/core/arrayprint.py", line 246, in set_printoptions floatmode, legacy) File "/home/ofelia/anaconda2/lib/python2.7/site-packages/numpy/core/arrayprint.py", line 93, in _make_options_dict raise ValueError("threshold must be numeric and non-NAN, try " ValueError: threshold must be numeric and non-NAN, try sys.maxsize for untruncated representation
Is there any way I can downgrade the numpy package in order to make it work? I would really appreciate some help!
from vcf-kit.
If anyone is still trying to make VCF-kit work. It works on python 2.7.10 and gcc/4.7.2
from vcf-kit.
Related Issues (20)
- Conda install error
- something wrong installing with anaconda HOT 9
- vcf2tsv error HOT 1
- calculate Tajima'D on haploid HOT 2
- TypeError Python 3 HOT 2
- error loading tabix index for building a region specific tree HOT 2
- ImportError: No module named vcfkit HOT 4
- got an KeyError with the tajima.py HOT 1
- cannot get this to work HOT 5
- vk primer bio.alphabet error HOT 3
- KeyError: b'AC' in Tajima'sD calculation HOT 1
- Warning --sample option not given
- error while using docker image (andersenlab/vcf-kit:20200822175018b7b60d: TypeError: a bytes-like object is required, not 'str' HOT 1
- TypeError: '<' not supported between instances of 'int' and 'NoneType'
- Custom genome assembly?
- Memory Issues when running tajima module
- Muscle 5.1 no longer has "-maketree" command, breaking vk phylo
- Cannot find thermo path '/primer3_config/
- Running Docker version: "ModuleNotFoundError: No module named 'pomegranate'"
- problem with primer3 in both conda and docker
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vcf-kit.