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

Error with Rocket.Chat=6.7.1 and txtai=7.2.0 and txtchat=0.2.0 #19

Open
yiouyou opened this issue Apr 25, 2024 · 1 comment
Open

Error with Rocket.Chat=6.7.1 and txtai=7.2.0 and txtchat=0.2.0 #19

yiouyou opened this issue Apr 25, 2024 · 1 comment

Comments

@yiouyou
Copy link

yiouyou commented Apr 25, 2024

Error when running 'python -m txtchat.agent wikitalk.yml' with Rocket.Chat=6.7.1 and txtai=7.2.0 and txtchat=0.2.0

(txtai) songz:~/txtchat$ python -m txtchat.agent wikitalk.yml
Loading checkpoint shards: 100%|██████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00,  1.17it/s]
Fetching 5 files: 100%|██████████████████████████████████████████████████████████████]██████████████████████████████| 5/5 [00:00<00:00, 13547.49it/s]
2024-04-25 22:52:38,422 [INFO] __call__: Starting agent
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/songz/miniconda3/envs/txtai/lib/python3.11/site-packages/txtchat/agent/__main__.py", line 24, in <module>
    agent()
  File "/home/songz/miniconda3/envs/txtai/lib/python3.11/site-packages/txtchat/agent/base.py", line 43, in __call__
    self.start()
  File "/home/songz/miniconda3/envs/txtai/lib/python3.11/site-packages/txtchat/agent/rocketchat.py", line 46, in start
    asyncio.run(self.run())
  File "/home/songz/miniconda3/envs/txtai/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/home/songz/miniconda3/envs/txtai/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/songz/miniconda3/envs/txtai/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/songz/miniconda3/envs/txtai/lib/python3.11/site-packages/txtchat/agent/rocketchat.py", line 55, in run
    await self.chat.start(*self.connection())
  File "/home/songz/miniconda3/envs/txtai/lib/python3.11/site-packages/rocketchat_async/core.py", line 38, in start
    self.user_id = await self._login(username, password)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/songz/miniconda3/envs/txtai/lib/python3.11/site-packages/rocketchat_async/core.py", line 80, in _login
    return await Login.call(self._dispatcher, username, password)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/songz/miniconda3/envs/txtai/lib/python3.11/site-packages/rocketchat_async/methods.py", line 87, in call
    return cls._parse(response)
           ^^^^^^^^^^^^^^^^^^^^
  File "/home/songz/miniconda3/envs/txtai/lib/python3.11/site-packages/rocketchat_async/methods.py", line 80, in _parse
    return response['result']['id']
           ~~~~~~~~^^^^^^^^^^
KeyError: 'result'
@davidmezzetti
Copy link
Member

Likely same as this: #17 (comment)

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