-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flye install fails with Python 3.12 #669
Labels
Comments
Fix proposed via #670 |
Thanks, will work on that in the next release. |
six should be removed too |
This was referenced Aug 26, 2024
Closed
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.061*1.00] collected minimizers
[M::mm_idx_gen::0.076*5.62] sorted minimizers
[M::main::0.076*5.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.083*5.22] mid_occ = 10
[M::mm_idx_stat] kmer size: 17; skip: 10; is_hpc: 0; #seq: 1
[M::mm_idx_stat::0.088*5.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 <#669 (comment)>, 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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.The text was updated successfully, but these errors were encountered: