[Trennmuster] Python-Fehler mit verschiedenen Skripten

Guenter Milde milde at users.sf.net
Mo Dez 7 15:16:50 CET 2020


On  5.12.20, Werner LEMBERG wrote:

> Nach

>   cd skripte/lib/py_wortliste

> verursacht

>   ./wortliste.py

> diesen Fehler:

>   Traceback (most recent call last):
>     File "./wortliste.py", line 37, in <module>
>       from py_wortliste.stilfilter import morphemisch
>   ModuleNotFoundError: No module named 'py_wortliste'

> Das gleiche gilt für »split_wortliste.py«:

>   ./split_wortliste.py

>   Traceback (most recent call last):
>     File "./split_wortliste.py", line 22, in <module>
>       from py_wortliste.wortliste import sortkey_duden, umschrift_skey, WordFile
>   ModuleNotFoundError: No module named 'py_wortliste'

Ist korrigiert.


> Auch »hyphenate-diff.py« macht Mätzchen:

>   ./hyphenate_diff.py

>   Traceback (most recent call last):
>     File "./hyphenate_diff.py", line 79, in <module>
>       current_patterns = sorted(glob.glob(ppath))[-1]
>   IndexError: list index out of range

> Das gleiche gilt für »hyphenate_neueintraege.py«:

>   ./hyphenate_neueintraege.py

>   Traceback (most recent call last):
>     File "./hyphenate_neueintraege.py", line 170, in <module>
>       patterns[cat] = sorted(glob.glob(ppath))[-1]
>   IndexError: list index out of range

Hier hilft cp dehyphn-x* muster/ (im Wurzelverzeichnis) um die Mustersätze
an ihren neuen Platz zu verlegen. (make ... hilft auch, aber dann liegen die
alten Muster immer noch im Weg.)

Danke für die Meldung,

Günter



Mehr Informationen über die Mailingliste Trennmuster