Skip to content

Commit ed392dc

Browse files
authored
Merge pull request zulip#15 from fredfishgames/master
interactive bots: Run the helloworld bot for fredfishgames.
2 parents 38b3b4f + a11ad4c commit ed392dc

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed
46 KB
Loading
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
There were a few issues, mainly the `zulip-run-bot helloworld --config-file ~/zuliprc-hello-world` command ran with the error
2+
```
3+
Traceback (most recent call last):
4+
File "/srv/zulip-py3-venv/bin/zulip-run-bot", line 11, in <module>
5+
load_entry_point('zulip-bots==0.3.8', 'console_scripts', 'zulip-run-bot')()
6+
File "/srv/zulip-venv-cache/e6ede0343bbe3ec1b5ff20d6263c9baded9bfc02/zulip-py3-venv/lib/python3.5/site-packages/zulip_bots/run.py", line 112, in main
7+
bot_name=bot_name
8+
File "/srv/zulip-venv-cache/e6ede0343bbe3ec1b5ff20d6263c9baded9bfc02/zulip-py3-venv/lib/python3.5/site-packages/zulip_bots/lib.py", line 230, in run_message_handler_for_bot
9+
restricted_client = ExternalBotHandler(client, bot_dir, bot_details)
10+
File "/srv/zulip-venv-cache/e6ede0343bbe3ec1b5ff20d6263c9baded9bfc02/zulip-py3-venv/lib/python3.5/site-packages/zulip_bots/lib.py", line 111, in __init__
11+
self._storage = StateHandler(client)
12+
File "/srv/zulip-venv-cache/e6ede0343bbe3ec1b5ff20d6263c9baded9bfc02/zulip-py3-venv/lib/python3.5/site-packages/zulip_bots/lib.py", line 68, in __init__
13+
raise StateHandlerError("Error initializing state: {}".format(str(response)))
14+
zulip_bots.lib.StateHandlerError: Error initializing state: {'msg': 'Unexpected error from the server', 'result': 'http-error', 'status_code': 404}
15+
```
16+
This needed to be fixed, and once it was, I had also accidentally not downloaded the development version of the `zulip_bots` package. However, eventually everything was fixed, and the bot ran perfectly, by uninstalling the `zulip_bots` package, then running the appropriate setup steps from the `python-zulip-api` repository.
10.1 KB
Loading

0 commit comments

Comments
 (0)