Skip to content

Docker: ImportError: cannot import name 'Iterable' from 'collections' #29

Description

@WildCard1

Hi!

The docker image exits instantly. Logs show this error message when trying to run the mha:latest image on docker version 20.10.10, build b485636

docker logs 94edf9098de3
Traceback (most recent call last):
File "/usr/src/mha/server.py", line 12, in
import pygal
File "/usr/local/lib/python3.10/site-packages/pygal/init.py", line 33, in
from pygal.graph.bar import Bar
File "/usr/local/lib/python3.10/site-packages/pygal/graph/bar.py", line 27, in
from pygal.graph.graph import Graph
File "/usr/local/lib/python3.10/site-packages/pygal/graph/graph.py", line 26, in
from pygal._compat import is_list_like, is_str, to_str
File "/usr/local/lib/python3.10/site-packages/pygal/_compat.py", line 23, in
from collections import Iterable
ImportError: cannot import name 'Iterable' from 'collections' (/usr/local/lib/python3.10/collections/init.py)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions