Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
sijis
@sijis:matrix.org
[m]
Joseph Walton-Rivers
@webpigeon:fossgalaxy.com
[m]
https://git.fossgalaxy.com/irc/errbot/backend-matrix is a matrix backend if you need it, mostly works :)
sijis
@sijis:matrix.org
[m]
Thanks. I'm trying to simplify my phone messaging apps
sijis
@sijis:matrix.org
[m]
Joseph Walton-Rivers: that's cool. I'm glad to see teams still using errbot :)
sijis
@sijis:matrix.org
[m]
I just released errbot version 6.1.9!
Versions are on pypi.org and dockerhub.
Carlos
@nzlosh
:clap: :thumbsup:
sijis
@sijis:matrix.org
[m]
Next release, is to focus on slack. Removing what's there and including the v3 version. :)
fernand0
@fernand0_twitter
Thansk for the new release!
I'm not sure about how to report this but in page: https://pypi.org/project/errbot/6.1.9/ the link in 'supports markdown extras formatting' (https://pythonhosted.org/Markdown/extensions/extra.html) seems to be not woking.
fernand0
@fernand0_twitter
fernand0
@fernand0_twitter
I've found it in the README of the project, I've suggested a change via PR.
sijis
@sijis:matrix.org
[m]
Pypi previously supported the syntax in the readme. That's new then. Thanks. I'll take a look at it
Carlos
@nzlosh

I'm in favour of keeping slackv3 outside of the errbot core repo so the backend developers can remain autonomous and apply fixes/features on different release cycles to the core.

If we must merge slackv3 for other reasons, I'd like to see the other backends merge into the core also for consistency sake, at least mattermost and discord (gitter perhaps).

A couple of other backends that'd be good to have in the errbot.io organisation would be MSTeam, Matrix and Keybase (I'm not sure if such a backend would fit with Errbot's architecture).

sijis
@sijis:matrix.org
[m]
I'm keeping it out of the main repo. My intent is to include in docker file and update documentarion
sijis
@sijis:matrix.org
[m]
And remove the existing slack that are already in the repo
I should had been more clear on that statement.
I do believe having the backends out of the core is a good thing long term, especially if it's heavy iteration one (like slack is)
Carlos
@nzlosh
Oh great! Sorry for the misunderstanding. Good to see the official docker image getting updated. Last time I checked, there were a few unofficial images and rroemhild's defacto image hadn't been updated to the latest errbot release.
Carlos
@nzlosh
I just did a clean installation of errbot 6.1.9 in a virtualenv using Python3.7 and got this error when running errbot -h. Has anyone else seen this?
(errbot) root@u1804:/opt/errbot# errbot -h
Traceback (most recent call last):
  File "/opt/errbot/bin/errbot", line 5, in <module>
    from errbot.cli import main
  File "/opt/errbot/lib/python3.7/site-packages/errbot/cli.py", line 27, in <module>
    from errbot.bootstrap import CORE_BACKENDS
  File "/opt/errbot/lib/python3.7/site-packages/errbot/bootstrap.py", line 10, in <module>
    from errbot.plugin_manager import BotPluginManager
  File "/opt/errbot/lib/python3.7/site-packages/errbot/plugin_manager.py", line 8, in <module>
    from graphlib import CycleError
ModuleNotFoundError: No module named 'graphlib'
Carlos
@nzlosh
The module graphlib-backport==1.0.3 was missing from the virtualenv. I'm not sure how pip handles dependency resolution when processing wheels, but my current guess is the errbot wheel was built on a version > 3.9 so graphlib-backport wasn't included. I'll need to dig into how all this works under the hood.
Carlos
@nzlosh
@sijis:matrix.org Do you build and upload the wheel manually to pypi? I can't seem to find any reference to it in github actions. From what I've read, one way to address this issue would be to build two versions of the wheel, one that is tagged with py37.py38 built using py3.7 or py3.8 and another tagged with py39.py310 built using py3.9 or py3.10. I'm not sure if the original wheel tagged with py3 would need to be taken down or if pip will select the most specific version first.
2 replies
Nyior Clement Jr.
@Nyior

I'm stuck trying to post the payload received by a webhook function to a Mattermost channel. This is what my webhook function looks like:

@webhook
 def github_issues(self,  payload):
       self.log.debug(repr(payload))
       return(payload)

Expected Outcome: I expect that return(payload) should forward the received payload to the Mattermost channels I've added my bot to. My bot account currently sits in two Mattermost channels

How it's Working Out: The payload is reaching the function, but it's not being forwarded to the channels I've added the bot to.

Is there anything I need to fix in the function or anywhere to make this arrangement work?

Carlos
@nzlosh
Take another look at the webhook documentation, it doesn't work like you're expecting https://errbot.readthedocs.io/en/latest/user_guide/plugin_development/webhooks.html. There is an example in the documentation how to send messages to the backend when the webhook is called.
Nyior Clement Jr.
@Nyior
@nzlosh Thank you :) I figured out I had to use send() to push data to the backend. This is my updated function just in case someone else needs it:
    @webhook
    def github_issues(self, payload):
        for room in self.rooms():
            self.send(
                self.build_identifier(f"~{room.name}"),
                'Title: Issue {0}!\n Issue URL: {1}'.format(payload['action'], payload['issue']['url']),
            )
Carlos
@nzlosh
:thumbsup: Good stuff and thanks for sharing.
sijis
@sijis:matrix.org
[m]
Ya, it shouldn't. I think the package will include the version of python
sijis
@sijis:matrix.org
[m]
@nzlosh: I've uploaded a specific py37 wheel. https://pypi.org/project/errbot/6.1.9/#files.
Carlos
@nzlosh
Thanks so much for sorting that out @sijis:matrix.org I'll test it shortly
Carlos
@nzlosh

Just tested a clean install of errbot 6.1.9 using a py37 virtualenv and it works as expected. Tested under py38, it fails.

errbot -h
Traceback (most recent call last):
  File "/root/virtualenv/errbot_py38/bin/errbot", line 5, in <module>
    from errbot.cli import main
  File "/root/virtualenv/errbot_py38/lib/python3.8/site-packages/errbot/cli.py", line 27, in <module>
    from errbot.bootstrap import CORE_BACKENDS
  File "/root/virtualenv/errbot_py38/lib/python3.8/site-packages/errbot/bootstrap.py", line 10, in <module>
    from errbot.plugin_manager import BotPluginManager
  File "/root/virtualenv/errbot_py38/lib/python3.8/site-packages/errbot/plugin_manager.py", line 8, in <module>
    from graphlib import CycleError
ModuleNotFoundError: No module named 'graphlib'

pip pulled in the py3 wheel.

(errbot_py38) root@u2004:~# pip install errbot
Collecting errbot
  Downloading errbot-6.1.9-py3-none-any.whl (198 kB)
Carlos
@nzlosh
Installation under python3.9 doesn't have a wheel for dulwich, so installing errbot requires a compiler and python headers to be present on the machine. I don't know if we consider this an errbot issue.
      dulwich/_objects.c:22:10: fatal error: Python.h: No such file or directory
         22 | #include <Python.h>
            |          ^~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> dulwich

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Installation under py310 works perfectly.
sijis
@sijis:matrix.org
[m]
Seems like I have to do one for each py version. Not a problem
Carlos
@nzlosh
Yeah, it seems to be one of the biggest pain points when supporting multiple Python versions.
sijis
@sijis:matrix.org
[m]
uploaded a py38 version.
the issue is mainly because of the version dependency of https://github.com/errbotio/errbot/blob/master/setup.py#L45-L46
1 reply
sijis
@sijis:matrix.org
[m]
we'll have to slim down the supported versions to simplify this a bit.
kennedy
@kennedy
I am using errbot for an internal ChatOps, and I am looking into publishing my plugins to a private repo. Is there away to have errbot to automatically install a list of plugins during startup?
sijis
@sijis:matrix.org
[m]

Yes, as part of your build process you can clone the repo and put it in the plugins directory.

You could also setup the server to use a private key/token that accesses your repo too

javabipe
@javabipe
hi
how are you?
sijis
@sijis:matrix.org
[m]
Setuptools does a good enough job in doing dependencies for version. It's not done much at all either,so its a matter of remembering to build those out when cutting a release. It's really easy actually
@javabipe: hello. Welcome
Carlos
@nzlosh
Fair enough. It would be great if we could automate the build process with GitHub actions. It could be triggered to build all the python versions when a commit is tagged with a semver number.
sijis
@sijis:matrix.org
[m]
auto-builds docker images and pushes to latest -> errbotio/errbot#1577
Carlos
@nzlosh
Great work, thanks sijis.
sijis
@sijis:matrix.org
[m]
Cleaning up documentation warnings => errbotio/errbot#1582
Starting to remove built-in slack backend in favor for v3 -> errbotio/errbot#1581
Jothimani
@JothimaniRkrish_twitter
Hello All,
need some help here pls,
  • is there a health check param to monitor BOT's health apart from infra metrics
  • also instead of sentry can I use something else for exception monitoring. Dynatrace, Datadog etc.
sijis
@sijis:matrix.org
[m]

@JothimaniRkrish_twitter: you can create your own webhook for a healthcheck.

For exception handling, not at a core level. You can configure custom/internal plugins to use whatever apm system of your choice.