Open genewater opened 2 years ago
I also meet this problem. I must use cyvcf2-0.20.0,but I try many methods stil cannot install successfully. Have you solved it?
Hi @empathy-c sorry for the troubles, indeed we're having difficulty with the builds. I would suggest to use bioconda to get that version.
But in bioconda I can only install the version 0.30.2 which is the lastest. But when I use MetaXcan to do some TWAS analysis,the project need cyvcf2=0.20.0. I have installed cyvcf2-0.30.2 by using whl to pip ,but the project still not work,so i think maybe I need to install the version of 0.20.0. But cyvcf2-0.20.0 not have whl
When I use pip install cyvcf2==0.20.0 in linux(it has installed python3.10),error shows:python setup.py bdist_wheel did not run successfully. exit code: 1 /root/anaconda3/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type' ERROR: Failed building wheel for cyvcf2 Running setup.py clean for cyvcf2 Failed to build cyvcf2 ERROR: Could not build wheels for cyvcf2, which is required to install pyproject.toml-based projects And I download cyvcf2-0.20.0.tar.gz and use local install by print:python setup.py install in linux,errors show: Cyvcf2/cyvcf2. c: In the function '_ Pyx TP Dealloc 6cyvcf2 6cyvcf2 In VCF ':
Cyvcf2/cyvcf2. c: 57897:5: Error: Autoincrement operand must be an lvalue
++Py_ REFCNT (o);
^
Cyvcf2/cyvcf2. c: 57899:5: Error: The self subtraction operand must be an lvalue
--Py_ REFCNT (o);
^
Cyvcf2/cyvcf2. c: In the function '_ Pyx TP Dealloc 6cyvcf2 6cyvcf2 In Genotypes:
Cyvcf2/cyvcf2. c: 58263:5: Error: Autoincrement operand must be an lvalue
++Py_ REFCNT (o);
^
Cyvcf2/cyvcf2. c: 58265:5: Error: The self subtraction operand must be an lvalue
--Py_ REFCNT (o);
^
Cyvcf2/cyvcf2. c: In the function '_ Pyx TP Dealloc 6cyvcf2 6cyvcf2 In 'Variant':
Cyvcf2/cyvcf2. c: 58420:5: Error: Autoincrement operand must be an lvalue
++Py_ REFCNT (o);
^
Cyvcf2/cyvcf2. c: 58422:5: Error: The self subtraction operand must be an lvalue
--Py_ REFCNT (o);
^
Cyvcf2/cyvcf2. c: In the function '_ Pyx TP Dealloc 6cyvcf2 6cyvcf2 In HREC ':
Cyvcf2/cyvcf2. c: 58838:5: Error: Autoincrement operand must be an lvalue
++Py_ REFCNT (o);
^
Cyvcf2/cyvcf2. c: 58840:5: Error: The self subtraction operand must be an lvalue
--Py_ REFCNT (o);
^
Cyvcf2/cyvcf2. c: In the function '_ Pyx TP Dealloc In 'array':
Cyvcf2/cyvcf2. c: 60333:5: Error: Autoincrement operand must be an lvalue
++Py_ REFCNT (o);
^
Cyvcf2/cyvcf2. c: 60335:5: Error: The self subtraction operand must be an lvalue
--Py_ REFCNT (o);
^
Cyvcf2/cyvcf2. c: In the function '_ Pyx TP Dealloc In 'memoryview':
Cyvcf2/cyvcf2. c: 60644:5: Error: Autoincrement operand must be an lvalue
++Py_ REFCNT (o);
^
Cyvcf2/cyvcf2. c: 60646:5: Error: The self subtraction operand must be an lvalue
--Py_ REFCNT (o);
^
Cyvcf2/cyvcf2. c: In the function ' Pyx TP Dealloc In 'memoryviewslice':
Cyvcf2/cyvcf2. c: 60894:5: Error: Autoincrement operand must be an lvalue
++Py_ REFCNT (o);
^
Cyvcf2/cyvcf2. c: 60896:5: Error: The self subtraction operand must be an lvalue
--Py_ REFCNT (o); error: command '/usr/bin/gcc' failed with exit code 1 I have tried so many methods but still didnot solve it.
Hi, you are using an old version of cyvcf2 on a new version of python. So you'll have to use an old version of python to do this. Also note this in the changelog from 0.20.0: https://github.com/brentp/cyvcf2/commit/f198f661be582d00c55b633192a018a20e845712
OK I will try to use an old version of python to solve it. Thank you for your help!
I cannot install somehow cyvcf2. I upgraded to python 3.9.x and also updated visual studio.