anybadge가 실패함: 'anybadge.templates'에서 'get_template' 이름을 가져올 수 없습니까?

anybadge가 실패함: 'anybadge.templates'에서 'get_template' 이름을 가져올 수 없습니까?

실행하고 싶지만 anybadge다음 오류로 인해 실패합니다. 왜?

- apt-get update
- apt-get install --yes --no-install-recommends python3-pip
- pip3 install anybadge

용법:

anybadge --label='mylabel' --value='myvalue' --file='my.svg' --color=yellow

결과:

Traceback (most recent call last):
  File "/usr/local/bin/anybadge", line 5, in <module>
    from anybadge.cli import main
  File "/usr/local/lib/python3.10/dist-packages/anybadge/__init__.py", line 2, in <module>
    from .badge import Badge
  File "/usr/local/lib/python3.10/dist-packages/anybadge/badge.py", line 13, in <module>
    from .templates import get_template
ImportError: cannot import name 'get_template' from 'anybadge.templates' (unknown location)

답변1

알려진 문제, 어쨌든 anybadge 업데이트로 인해 문제가 발생했습니다.https://github.com/ Jongracecox/anybadge/issues/63

관련 정보