Bug 51985

Summary: Resource wordnet not found
Product: Sisyphus Reporter: Alexander Makeenkov <amakeenk>
Component: python3-module-nltkAssignee: majioa <majioa>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: felixz, slev
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Alexander Makeenkov 2024-11-08 10:25:32 MSK
Версия пакета: python3-module-nltk-3.9.1-alt1

Шаги воспроизведения:
```
# apt-get install python3-module-nltk
$ nltk
$ python3 -c "import nltk"
```

Получаемый результат:
```
Traceback (most recent call last):
  File "/usr/lib/python3/site-packages/nltk/corpus/util.py", line 84, in __load
    root = nltk.data.find(f"{self.subdir}/{zip_name}")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/site-packages/nltk/data.py", line 579, in find
    raise LookupError(resource_not_found)
LookupError: 
**********************************************************************
  Resource wordnet not found.
  Please use the NLTK Downloader to obtain the resource:

  >>> import nltk
  >>> nltk.download('wordnet')
```

Не воспроизводится в p11 с версией python3-module-nltk-3.8.1-alt1.1.
Comment 1 Repository Robot 2024-11-15 17:28:02 MSK
python3-module-nltk-3.9.1-alt2 -> sisyphus:

 Fri Nov 15 2024 Stanislav Levin <slev@altlinux> 3.9.1-alt2
 - Backported fix for WordNetLemmatizer (closes: #51985).