Open pushkarnk opened 9 months ago
Fix proposed via https://github.com/fenderglass/Flye/pull/670
Thanks, will work on that in the next release.
six should be removed too
Version 2.9.5 now supports Python 3.12. six is not removed yet, but will be in the next release.
Thanks. I went and installed it. I followed the instructions to install from source. All looked good (apart from a large number of warnings from g++), but when I went to test it, I got the attached error. I’m totally baffled; it’s the same error message I have been receiving. I ran the same dataset thought 2.9.2 on another system and everything works fine. Any suggestions?
[2024-08-27 13:12:22] ERROR: Error running minimap2, terminating. See the alignment error log for details: /Spawn/Isolates/LT001001/results_flye_correct/10-consensus/minimap.stderr [2024-08-27 13:12:22] ERROR: Cmd: flye-minimap2 '/Spawn/Isolates/LT001001/results_flye_correct/00-assembly/draft_assembly.fasta' '/Spawn/Isolates/LT001001/LT001001_correct_nano.fasta.gz' -x map-ont -t 32 -k 17 -a -p 0.5 -N 10 --sam-hit-only -L -K 1G -z 1000 -Q --secondary-seq -I 64G | flye-samtools view -T '/Spawn/Isolates/LT001001/results_flye_correct/00-assembly/draft_assembly.fasta' -u - | flye-samtools sort -T '/Spawn/Isolates/LT001001/results_flye_correct/10-consensus/sort_240827_131218' -O bam -@ 4 -l 1 -m 1G -o '/Spawn/Isolates/LT001001/results_flye_correct/10-consensus/minimap.bam' [2024-08-27 13:12:22] ERROR: Command '['/bin/bash', '-c', "set -eo pipefail; flye-minimap2 '/Spawn/Isolates/LT001001/results_flye_correct/00-assembly/draft_assembly.fasta' '/Spawn/Isolates/LT001001/LT001001_correct_nano.fasta.gz' -x map-ont -t 32 -k 17 -a -p 0.5 -N 10 --sam-hit-only -L -K 1G -z 1000 -Q --secondary-seq -I 64G | flye-samtools view -T '/Spawn/Isolates/LT001001/results_flye_correct/00-assembly/draft_assembly.fasta' -u - | flye-samtools sort -T '/Spawn/Isolates/LT001001/results_flye_correct/10-consensus/sort_240827_131218' -O bam -@ 4 -l 1 -m 1G -o '/Spawn/Isolates/LT001001/results_flye_correct/10-consensus/minimap.bam'"]' returned non-zero exit status 134. [2024-08-27 13:12:22] ERROR: Pipeline aborted Command exited with non-zero status 1 572.74user 3.78system 1:53.98elapsed 505%CPU (0avgtext+0avgdata 1805432maxresident)k 992inputs+8432outputs (3major+774067minor)pagefaults 0swaps (base) @.**:/Spawn/Isolates/LT001001$ less /Spawn/Isolates/LT001001/results_flye_correct/10-consensus/minimap.stderr [samfaipath] build FASTA index... flye-samtools: bgzf.c:305: bgzf_open: Assertion `compressBound(BGZF_BLOCK_SIZE) < BGZF_MAX_BLOCK_SIZE' failed. [M::mm_idx_gen::0.0611.00] collected minimizers [M::mm_idx_gen::0.0765.62] sorted minimizers [M::main::0.0765.61] loaded/built the index for 1 target sequence(s) flye-samtools: bgzf.c:351: bgzf_hopen: Assertion `compressBound(BGZF_BLOCK_SIZE) < BGZF_MAX_BLOCK_SIZE' failed. [M::mm_mapopt_update::0.0835.22] mid_occ = 10 [M::mm_idx_stat] kmer size: 17; skip: 10; is_hpc: 0; #seq: 1 [M::mm_idx_stat::0.0885.01] distinct minimizers: 666242 (95.39% are singletons); average occurrences: 1.053; average spacing: 5.496; total length: 3855235 /bin/bash: line 1: 525222 Broken pipe flye-minimap2 '/Spawn/Isolates/LT001001/results_flye_correct/00-assembly/draft_assembly.fasta' '/Spawn/Isolates/LT001001/LT001001_correct_nano.fasta.gz' -x map-ont -t 32 -k 17 -a -p 0.5 -N 10 --sam-hit-only -L -K 1G -z 1000 -Q --secondary-seq -I 64G 525223 Aborted (core dumped) | flye-samtools view -T '/Spawn/Isolates/LT001001/results_flye_correct/00-assembly/draft_assembly.fasta' -u - 525224 Aborted (core dumped) | flye-samtools sort -T '/Spawn/Isolates/LT001001/results_flye_correct/10-consensus/sort_240827_131218' -O bam -@ 4 -l 1 -m 1G -o '/Spawn/Isolates/LT001001/results_flye_correct/10-consensus/minimap.bam'
On Aug 27, 2024, at 08:56, Mikhail Kolmogorov @.***> wrote:
Version 2.9.5 now supports Python 3.12. six is not removed yet, but will be in the next release.
— Reply to this email directly, view it on GitHub https://github.com/mikolmogorov/Flye/issues/669#issuecomment-2312946528, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMXPRSHAWMQMDHKWIB7OQ3ZTSORTAVCNFSM6AAAAABCYFZ2IWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJSHE2DMNJSHA. You are receiving this because you are subscribed to this thread.
@mikolmogorov Thanks -- much appreciated -- fixed for me Python 3.12 under Rocky 9.
With Python 3.12 installed on the Ubuntu dev release, when I tried to make, install and run the install test, the test fails with :
In short, Python 3.12 fails to find the "moves" module which is dynamically loaded using flye/six.py. This is likely to be because Python3 has gradually moved away from
find_module()
tofind_spec()
for path-based finders searching the meta path:flye/six.py hasn't yet moved from
find_module()
tofind_spec()
and this is likely to be the reason for the above error.