-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Running botserver for local development #12669
Comments
Hello @zulip/server-bots members, this issue was labeled with the "area: bots" label, so you may want to check it out! |
@arthurpankiewicz thanks for the report! I suspect that the |
@zulipbot claim |
@timabbott yeah I was getting some funky behaviour. I edited the server.py to log the error, and it was trying to import a bot module at If you require more information @thedeveloperr I can rerun my steps and provide some more context |
@thedeveloperr any status update on this? |
@arthurpankiewicz I am sorry I am still reading the docs and code of this, this my first issue regarding this area and was also working on few other ongoing issues. So progress is a bit slow. I will try to fix this soon.
Sorry I missed notification of your previous message. I would like to have as much information regarding the issue as possible if you don't mind re-running. 😅 |
Hello @thedeveloperr, you have been unassigned from this issue because you have not updated this issue or any referenced pull requests for over 14 days. You can reclaim this issue or claim any other issue by commenting Thanks for your contributions, and hope to see you again soon! |
@thedeveloperr sorry I just returned from vacation, I can update with some extra info this weekend |
@zulipbot claim |
when I cloned
When I follow deploy instructions found here, installing the zulip python packages, when I run pip in a separate directory (where I am developing a standalone bot), running
with no location.
|
@arthurpankiewicz Can you get your bot to run by specifying the path in place of the botname, wherever it is located? One future approach which I proposed for this, which may make this simpler for you, is where you would install the zulip-bots package (eventually just from pypi, for now from git in a PR) and install your own bot package separately, with an appropriate element in My understanding is that the |
@neiljp I receive the same error when using absolute paths
|
Hello @thedeveloperr, you have been unassigned from this issue because you have not updated this issue or any referenced pull requests for over 14 days. You can reclaim this issue or claim any other issue by commenting Thanks for your contributions, and hope to see you again soon! |
@arthurpankiewicz I might have some good news on this. We recently merged some code that allows you to import out-of-tree bots in botserver. If you're willing to test this, you would need to install the zulip-botserver package from git; we haven't published a release since this was merged. |
I'm trying to setup an environment where I'm able to run a bot locally for either
My current workaround was pulling the zulip
python-zulip-api
, placing my bot in there, and using either thezulip-run-bot <bot>
command or interacting via thezulip-terminal
I'd like to manage my bot separately in my git, without the need for all the extra bots/files found in
python-zulip-api
Following the instrucitons here I've installed the
zulip-botserver
package, and my current project directory looks like:I have a production version of zulip running with an organization where I created a bot and downloaded it's
zuliprc
When I run (from within
zulip-mybot
directory):zulip-botserver --config-file /path/to/zuliprc
I receive the error: "Error: Bot "mybot" doesn't exist. Please make sure you have set up the botserverrc file correctly."
My zuliprc file looks like:
I'm not even sure if this is the correct way to run for local dev/testing, but the goal is to not have to develop within the
python-zulip-api
and copy and paste working code to my git directory.Thanks!
The text was updated successfully, but these errors were encountered: