Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Nov 22 15:53
    codecov[bot] commented #1956
  • Nov 22 15:52
    codecov[bot] commented #1956
  • Nov 22 15:48
    github-actions[bot] labeled #1956
  • Nov 22 15:47
    7yl4r opened #1956
  • Nov 22 10:21
    codecov[bot] commented #1955
  • Nov 22 10:20
    codecov[bot] commented #1955
  • Nov 22 10:20
    codecov[bot] commented #1955
  • Nov 22 10:15
    github-actions[bot] labeled #1955
  • Nov 22 10:15
    dependabot[bot] labeled #1955
  • Nov 22 10:15
    dependabot[bot] opened #1955
  • Nov 22 10:15

    dependabot[bot] on pip

    Bump pillow from 9.0.1 to 9.3.0â€Ļ (compare)

  • Nov 21 10:39
    jacobtomlinson commented #1953
  • Nov 17 09:23
    fraimondo commented #1949
  • Nov 16 13:04
    FabioRosado commented #1949
  • Nov 16 12:52
    fraimondo commented #1949
  • Nov 15 14:00
    gereltuya commented #1949
  • Nov 15 08:54
    rodrigo-albuquerque synchronize #1936
  • Nov 15 08:54
    rodrigo-albuquerque closed #1936
  • Nov 11 07:43
    FabioRosado commented #1933
  • Nov 10 21:25
    cshel16 commented #1933
hkonala
@hkonala
Also, currently opsdroid is using slack classic apps and can we use updated slack apps? or is it planned for future? @fabiorosado:matrix.org @_slack_opsdroid_U5MK1BW83:matrix.org
Cadair
@cadair:cadair.com
[m]
There is an open PR to change from classic apps
hkonala
@hkonala
thanks @cadair:cadair.com for the info. I have gone through the PR and it looks great(using socket mode and making it default too!) waiting for the PR to be merged and use it. @fabiorosado:matrix.org @cadair:cadair.com if it is not too much to ask, could you tell me when are we going to merge the changes?
Cadair
@cadair:cadair.com
[m]
I haven't had any time to look at it, but they should be in the next release at the end of the month.
hkonala
@hkonala
that's great!! thanks again :)
Cadair
@cadair:cadair.com
[m]
No promises tho ;)
hkonala
@hkonala
Some skills are not getting loaded while running opsdroid in kuberbetes where as there are working fine in my local environment
DEBUG opsdroid.loader: Installing impact... DEBUG opsdroid.loader: Installed impact to /home/app/.local/share/opsdroid/opsdroid-modules/skill/impact. DEBUG opsdroid.loader: Couldn't find the file requirements.txt, skipping. DEBUG opsdroid.loader: Loaded skill: opsdroid-modules.skill.impact. DEBUG opsdroid.loader: Removing cache for local module /home/app/.local/share/opsdroid/opsdroid-modules/skill/help, set 'no-cache: false' to disable this. DEBUG opsdroid.loader: Installing help... DEBUG opsdroid.loader: Installed help to /home/app/.local/share/opsdroid/opsdroid-modules/skill/help. DEBUG opsdroid.loader: Couldn't find the file requirements.txt, skipping. ERROR opsdroid.loader: Failed to load skill: opsdroid-modules.skill.help. ERROR opsdroid.loader: Module help failed to import. DEBUG opsdroid.loader: Removing cache for local module /home/app/.local/share/opsdroid/opsdroid-modules/skill/severity, set 'no-cache: false' to disable this. DEBUG opsdroid.loader: Installing severity... DEBUG opsdroid.loader: Installed severity to /home/app/.local/share/opsdroid/opsdroid-modules/skill/severity. DEBUG opsdroid.loader: Couldn't find the file requirements.txt, skipping. DEBUG opsdroid.loader: Loaded skill: opsdroid-modules.skill.severity.
hkonala
@hkonala
could someone help on this
Jacob Tomlinson (Slack)
@_slack_opsdroid_U5MK1BW83:matrix.org
[m]
Strange. Could you raise an issue on GitHub?
Cadair
@cadair:cadair.com
[m]
My guess is something path related. Seeing how it just says "module can not be imported"
hkonala
@hkonala

Strange. Could you raise an issue on GitHub?

Definitely @_slack_opsdroid_U5MK1BW83:matrix.org

My guess is something path related. Seeing how it just says "module can not be imported"

Even I thought the same at first @cadair:cadair.com but the thing is, there is no fixed set of skills which are always failing to load. it is random after each restart

jindalo
@jindalo:matrix.org
[m]

Hi all, I am getting this error while loading database module in opsdroid. I am running this on containers.

DEBUG asyncio: Using selector: EpollSelector
Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 900, in _find_spec
AttributeError: '_Importer' object has no attribute 'find_spec'

Can someone please help me here. Not sure what I am missing.
If I remove DB config from the configuration.yaml, everything works fine.

Cadair
@cadair:cadair.com
[m]
What database are you configuring?
Also what version of Python/opsdroid
oshien jindal
@jindalo:matrix.org
[m]
Custom DB - postgres
Python- 3.7
Opsdroid - 0.19.0
hkonala
@hkonala

Strange. Could you raise an issue on GitHub?

raised opsdroid/opsdroid#1761

@_slack_opsdroid_U5MK1BW83:matrix.org please take look when you have time
FabioRosado
@fabiorosado:matrix.org
[m]

I feel very dumb... looking at this code in logging:

    try:
        if config["logging"]["path"]:
            logfile_path = os.path.expanduser(config["logging"]["path"])
        else:
            logfile_path = config["logging"]["path"]
    except KeyError:
        logfile_path = DEFAULT_LOG_FILENAME

Reference

I'm assuming because we can set path to false, that's the reason why we have that if/else statement there? 🤔

Jacob Tomlinson (Slack)
@_slack_opsdroid_U5MK1BW83:matrix.org
[m]
Yeah its because it can be false. The os.path.expanduser will fail if passed false.
If I were writing this today I'd probably use a try/except instead to catch the error when expanduser is passed false.
FabioRosado
@fabiorosado:matrix.org
[m]
Oh and now I get it why we were getting the logfile_path check for the file handler! I was assuming logfile always returned something
Jacob Tomlinson (Slack)
@_slack_opsdroid_U5MK1BW83:matrix.org
[m]
It's also a good use case for the walrus operator. Roll on Python 3.8!
FabioRosado
@fabiorosado:matrix.org
[m]
but is so weird haha
Jacob Tomlinson (Slack)
@_slack_opsdroid_U5MK1BW83:matrix.org
[m]
Yup haha
FabioRosado
@fabiorosado:matrix.org
[m]
I've seen one of those at work and I had to read upon it since I had no idea what the heck the thing did
Jacob Tomlinson (Slack)
@_slack_opsdroid_U5MK1BW83:matrix.org
[m]
Heh they are pretty new and 3.8+ so you dont see too many of them in the wild yet
FabioRosado
@fabiorosado:matrix.org
[m]
I shall try to use the walrus :D
FabioRosado
@fabiorosado:matrix.org
[m]
Opened a quick draft pr since I changed some things around and got the tmp folder tests failing locally
FabioRosado
@fabiorosado:matrix.org
[m]

I've finally finished the opsdroid/opsdroid#1767, I've added a video so you can see how the logs look like without having to test locally.

Cadair I've also added a new formatter config so a user can choose a formatting string. I remember you mentioned that it would be good to allow a user to do this 👍ī¸

Cadair
@cadair:cadair.com
[m]
Oooh nice. Can look at it towards the end of the week.
FabioRosado
@fabiorosado:matrix.org
[m]
No worries I had that open for a while and only sat down to finish it off now haha
Oleg
@oleg:fiksel.info
[m]
How do you debug skills?
I'm using Pycharm and a python venv with installed opsdroid.
Unfortunately my breakpoints don't stop at the skill script. ☚ī¸
1 reply
Jacob Tomlinson (Slack)
@_slack_opsdroid_U5MK1BW83:matrix.org
[m]
You've got to have your debugger launch the opsdroid module. I generally use VSCode and it works fine.
FabioRosado
@fabiorosado:matrix.org
[m]
Whenever someone has time can I eyes on the Rich logging PR?
cognifloyd (Jacob Floyd)
@cognifloyd:matrix.org
[m]
In PyCharm (pro) for remote debugging, PyCharm offers to map the paths to the local paths. I wonder if there's a similar option to handle this.
Jacob Tomlinson
@jacobtomlinson:matrix.org
[m]
Found some time to write some opsdroid code. Thought I'd rewrite some tests as I haven't actually used the new test machinery since Cadair polished it off. All I can say is that was super satisfying! I'm really happy with how we can write tests for external services now. opsdroid/opsdroid#1800
Cadair
@cadair:cadair.com
[m]
nice
A good test is very satisfying lol
Jacob Tomlinson
@jacobtomlinson:matrix.org
[m]
To bump a question on my Teams PR. I'd like to use VCRpy for testing because the Teams API and SDK are gross and canning responses by hand is hard. Any objections?
Cadair
@cadair:cadair.com
[m]
lol
I don't see why not
Jacob Tomlinson (Slack)
@_slack_opsdroid_U5MK1BW83:matrix.org
[m]
👍
cognifloyd (Jacob Floyd)
@cognifloyd:matrix.org
[m]
Yeah VCRpy should be fine
Jacob Tomlinson
@jacobtomlinson:matrix.org
[m]
I hate teams...
SolarDrew
@solardrew:openastronomy.org
[m]
from my limited experience with it that seems to be the intended response
Cadair
@cadair:cadair.com
[m]
Lol
Jacob Tomlinson (Slack)
@_slack_opsdroid_U5MK1BW83:matrix.org
[m]
I was struggling to use VCRpy or our request mocking because some of the URLs include a randomised UUID which changes every time! WHyyyyyyy!