Closed dburkhardt closed 7 years ago
Thank you for the bug report. The python script is generated by plot-vcfstats
. This commit should fix the issue https://github.com/samtools/bcftools/commit/68898afa967eb3175faed1918971c7bf65f67839
Hi, how to solve this problem. CMD- plot-vcfstats hg38multi.vchk -p plots/ Parsing bcftools stats output: hg38multi.vchk Plotting graphs: python plots/plot.py File "plots/plot.py", line 60 if x.ndim != 1: raise ValueError, "smooth only accepts 1 dimension arrays." ^ SyntaxError: invalid syntax The command exited with non-zero status 256: python plots/plot.py
at /usr/bin/plot-vcfstats line 78. main::error("The command exited with non-zero status 256:\x{a}\x{9}python plots/pl"...) called at /usr/bin/plot-vcfstats line 271 main::plot(HASH(0x27f55f0)) called at /usr/bin/plot-vcfstats line 67
Same problem here. Does anybody have any updated info to share? Thanks a lot!
Never mind! Found out the problem:
The syntax error is related to the two lines containing:
....raise ValueError, "smooth only accepts 1 dimension arrays."
One for python2.x (first line) and the other, python 3.x. Simply delete the first line of both for python3.x.
When I run plot-vcfstats, there's an error with the version of python that's being used. Here's the output.
My guess is that in
plot.py
, python3, not python2 is being invoked. I can't seem to find this file though.