This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Pyvcf Install Error

Can PyVCF be installed in Python3.3? I found some errors when I installed it in Python3.3. Can anyone help me to solve this problem?

I first installed distribute-0.6.36, then use 'python setup.py install' to install PyVCF. When I tried to use PyVCF, then there was the errors.

>>> import vcf
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".\vcf\__init__.py", line 175, in <module>
    from vcf.parser import Reader, Writer
  File ".\vcf\parser.py", line 24, in <module>
    from model import _Call, _Record, make_calldata_tuple
ImportError: No module named 'model'
>>>
vcf

your question contains too few details, put the entire traceback and error there not just one line, specify when you get the error, compilation, installation runtime etc.

Thanks Istvan, I have reedit my post.

1 answer

this looks a little strange, even though you say that you have installed the module it still gets imported from the local path. The error has nothing to do with Python 3 or not, it is a basic import error.

try the same from a different folder, one that does not also have the vcf module in the path,

then also check that you have that file present wherever the module installed,

from somewhere else do a

python -m vcf

Log in to answer this question.