Bug 51985 - Resource wordnet not found
Summary: Resource wordnet not found
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: python3-module-nltk (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: majioa@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-08 10:25 MSK by Alexander Makeenkov
Modified: 2024-11-15 17:28 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).