Open GeertvanGeest opened 3 days ago
Related issue: https://github.com/brentp/cyvcf2/issues/307 And this post on stackoverflow: https://stackoverflow.com/questions/78634235/numpy-dtype-size-changed-may-indicate-binary-incompatibility-expected-96-from
Can confirm that updating to cyvcf2 = 0.31.1
fixes the issue.
Thank you, @GeertvanGeest, for reporting this in detail with a solution on hand!
May I kindly ask you to help me reproduce and understand how you came up with the dependency fix?
I've had some trouble reproducing the exact error. On my machine, I run into:
rule consensus_bcftools:
...
File "/Users/koehng/Workspace/cyvcf_new/vp-analysis/V-pipe/workflow/rules/../scripts/enhance_bcf.py", line 6, in <module>
from cyvcf2 import VCF, Writer
ModuleNotFoundError: No module named 'cyvcf2'
(both on arm
and intel
architecture)
Given your steps and with the modified workflow/envs/bcftools.yaml
as you suggested.
And even in the current setup with bcftools = 1.20
and cyvcf2 = 0.31.0
, this appears to happen.
Thank you for sharing the GitHub thread; I follow and agree to pin cyvcf2 = 0.31.1
once I can reproduce it.
bcftools = 1.13
to this version ? Whoops! indeed this seems to have been fixed 4 months ago in 5befca4. Should've kept my fork up to date ...
Note sure why you're having the issue with 'module not found'. Possibly the conda env is not loaded properly? I'll retry after merging my fork with master.
Can confirm that after merging with cbg-ethz/V-pipe:master this error did not occur for me. So for me it's solved.
Describe the bug In the script
enhance_bcf.py
,cyvcf2 v0.30.11
is used. On a mac, this leads to the error:To Reproduce
Expected behavior cyvcf2 load without errors
Desktop (please complete the following information): MacOS 14.6.1 (23G93)
Possible fix
Change
workflow/envs/bcftools.yaml
to: