Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Errors when running tests, when installing from AUR

Aperta
#124 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
testing

Direzione di ricerca

Inizia da tests/test_fonts.py, in particolare da register_font e font_list, quindi esamina come tests/test_list_fonts.py importa i dati dei font raccolti. Riproduci gli errori di raccolta nell’ambiente AUR Python 3.14 con pytest. Il lavoro è completato quando entrambi i file di test vengono raccolti senza l’IndexError e l’esecuzione dei test riportata può proseguire.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hello, I'm getting two errors and a warning when running the tests while installing python-manimpango from the AUR, and so I'm unable to update from 0.6.0 to 0.6.1:

===================================================================== test session starts =====================================================================
platform linux -- Python 3.14.2, pytest-8.4.2, pluggy-1.6.0
benchmark: 4.0.0 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
ManimPango version 0.6.1
Pango version 1.57.0
Cairo version 1.18.4
rootdir: /home/aiden/.cache/yay/python-manimpango/src/manimpango-0.6.1
configfile: setup.cfg
testpaths: tests
plugins: anyio-4.12.1, inline-snapshot-0.31.1, asyncio-1.3.0, hypothesis-6.150.0, cov-6.1.1, examples-0.0.18, benchmark-4.0.0, xdist-3.8.0, flaky-3.8.1, typeguard-4.4.4
asyncio: mode=Mode.STRICT, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
collected 20 items / 2 errors                                                                                                                                 

=========================================================================== ERRORS ============================================================================
____________________________________________________________ ERROR collecting tests/test_fonts.py _____________________________________________________________
tests/test_fonts.py:41: in <module>
    font_lists_dict = font_list()
                      ^^^^^^^^^^^
tests/test_fonts.py:36: in font_list
    with register_font(i) as f:
         ^^^^^^^^^^^^^^^^
/usr/lib/python3.14/contextlib.py:141: in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
tests/test_fonts.py:24: in register_font
    yield list(set(final) - set(init))[0]
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E   IndexError: list index out of range
__________________________________________________________ ERROR collecting tests/test_list_fonts.py __________________________________________________________
tests/test_list_fonts.py:8: in <module>
    from .test_fonts import font_lists_dict as font_lists
<frozen importlib._bootstrap>:1371: in _find_and_load
    ???
<frozen importlib._bootstrap>:1342: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:938: in _load_unlocked
    ???
/usr/lib/python3.14/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_fonts.py:41: in <module>
    font_lists_dict = font_list()
                      ^^^^^^^^^^^
tests/test_fonts.py:36: in font_list
    with register_font(i) as f:
         ^^^^^^^^^^^^^^^^
/usr/lib/python3.14/contextlib.py:141: in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
tests/test_fonts.py:24: in register_font
    yield list(set(final) - set(init))[0]
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E   IndexError: list index out of range
====================================================================== warnings summary =======================================================================
../../../../../../../usr/lib/python3.14/site-packages/coverage/control.py:632
  /usr/lib/python3.14/site-packages/coverage/control.py:632: CoverageWarning: Plugin file tracers (Cython.Coverage.Plugin) aren't supported with SysMonitor
    self._warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=================================================================== short test summary info ===================================================================
ERROR tests/test_fonts.py - IndexError: list index out of range
ERROR tests/test_list_fonts.py - IndexError: list index out of range
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================================================ 1 warning, 2 errors in 1.20s =================================================================
Lingua principale
Python
Stelle
62
Fork
22
Merge medio
2g 4h
PR unite (30g)
2

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ManimCommunity/ManimPango

Tutte le issue di ManimCommunity/ManimPango

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.