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

AttributeError: 'French' object has no attribute 'ISO_639_1' #2337

Open
Nozyx59 opened this issue Nov 28, 2023 · 1 comment
Open

AttributeError: 'French' object has no attribute 'ISO_639_1' #2337

Nozyx59 opened this issue Nov 28, 2023 · 1 comment

Comments

@Nozyx59
Copy link

Nozyx59 commented Nov 28, 2023

Hey, I have this error when i try to start my program :

Traceback (most recent call last):
  File "D:\DEV\ia\main.py", line 9, in <module>
    chatbot = ChatBot(
              ^^^^^^^^
  File "C:\Users\eziot\AppData\Roaming\Python\Python312\site-packages\chatterbot\chatterbot.py", line 28, in __init__
    self.storage = utils.initialize_class(storage_adapter, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\eziot\AppData\Roaming\Python\Python312\site-packages\chatterbot\utils.py", line 33, in initialize_class
    return Class(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\eziot\AppData\Roaming\Python\Python312\site-packages\chatterbot\storage\sql_storage.py", line 20, in __init__
    super().__init__(**kwargs)
  File "C:\Users\eziot\AppData\Roaming\Python\Python312\site-packages\chatterbot\storage\storage_adapter.py", line 22, in __init__
    self.tagger = Tagger(language=kwargs.get(
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\eziot\AppData\Roaming\Python\Python312\site-packages\chatterbot\tagging.py", line 26, in __init__
    self.nlp = spacy.load(self.language.ISO_639_1.lower())
                          ^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'French' object has no attribute 'ISO_639_1'

Can you help me ?

@WThirteen
Copy link

image
it is my way, hope help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants