Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to initialize the Azerbaijani language #8638

Closed
BLKSerene opened this issue Jul 8, 2021 · 1 comment · Fixed by #8656
Closed

Failed to initialize the Azerbaijani language #8638

BLKSerene opened this issue Jul 8, 2021 · 1 comment · Fixed by #8656
Labels
bug Bugs and behaviour differing from documentation lang / az Azerbaijani language data and models

Comments

@BLKSerene
Copy link
Contributor

Some tests for the Azerbaijani language might be needed.

>>> import spacy
>>> nlp = spacy.blank('az')
Traceback (most recent call last):
  File "D:\Python\lib\site-packages\spacy\util.py", line 246, in get_lang_class
    module = importlib.import_module(f".lang.{lang}", "spacy")
  File "D:\Python\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 848, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "D:\Python\lib\site-packages\spacy\lang\az\__init__.py", line 1, in <module>
    from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS, TOKEN_MATCH
ModuleNotFoundError: No module named 'spacy.lang.az.tokenizer_exceptions'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    nlp = spacy.blank('az')
  File "D:\Python\lib\site-packages\spacy\__init__.py", line 71, in blank
    LangClass = util.get_lang_class(name)
  File "D:\Python\lib\site-packages\spacy\util.py", line 248, in get_lang_class
    raise ImportError(Errors.E048.format(lang=lang, err=err)) from err
ImportError: [E048] Can't import language az from spacy.lang: No module named 'spacy.lang.az.tokenizer_exceptions'
  • Operating System: Windows 10 x64
  • Python Version Used: 3.8.10 x64
  • spaCy Version Used: 3.1.0
@adrianeboyd adrianeboyd added bug Bugs and behaviour differing from documentation lang / az Azerbaijani language data and models labels Jul 8, 2021
@adrianeboyd adrianeboyd linked a pull request Jul 9, 2021 that will close this issue
3 tasks
@github-actions
Copy link
Contributor

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Bugs and behaviour differing from documentation lang / az Azerbaijani language data and models
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants