Skip to content

Snakemake issue with asyncio / python3.11 #497

@abel-betraoui

Description

@abel-betraoui

Hi all,

Snakemake is encountering this issue snakemake/snakemake#1952 which leads to this error when running pangolin:

****
Pangolin running in usher mode.
****
Maximum ambiguity allowed is 0.3.
****
Query file:     /pangolin/data/SRR14855875.consensus.fa
****
Data files found:
usher_pb:       /opt/conda/envs/pangolin/lib/python3.11/site-packages/pangolin_data/data/lineageTree.pb
****
Traceback (most recent call last):
  File "/opt/conda/envs/pangolin/lib/python3.11/site-packages/snakemake/__init__.py", line 699, in snakemake
    success = workflow.execute(
              ^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/pangolin/lib/python3.11/site-packages/snakemake/workflow.py", line 960, in execute
    self.scheduler = JobScheduler(
                     ^^^^^^^^^^^^^
  File "/opt/conda/envs/pangolin/lib/python3.11/site-packages/snakemake/scheduler.py", line 98, in __init__
    from ratelimiter import RateLimiter
  File "/opt/conda/envs/pangolin/lib/python3.11/site-packages/ratelimiter.py", line 36, in <module>
    class RateLimiter(object):
  File "/opt/conda/envs/pangolin/lib/python3.11/site-packages/ratelimiter.py", line 127, in RateLimiter
    __aexit__ = asyncio.coroutine(__exit__)
                ^^^^^^^^^^^^^^^^^
AttributeError: module 'asyncio' has no attribute 'coroutine'

The problem is only encountered with python3.11 but this can be a problem when using the pangolin docker image as there is no constraint on the python version when using base image continuumio/miniconda3:4.9.2-alpine.

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions