Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 19:51
    rodrigo-albuquerque edited #1961
  • 19:38
    codecov[bot] commented #1961
  • 19:37
    rodrigo-albuquerque synchronize #1961
  • 18:11
    rodrigo-albuquerque commented #1961
  • Jan 27 15:45
    ZoeyKats closed #1981
  • Jan 27 15:35
    ZoeyKats commented #1981
  • Jan 27 13:18
    FabioRosado commented #1981
  • Jan 26 23:21
    ZoeyKats commented #1981
  • Jan 26 20:46
    FabioRosado commented #1981
  • Jan 26 11:44
    ZoeyKats opened #1981
  • Jan 22 08:57

    FabioRosado on master

    Fix configuration sample entry … (compare)

  • Jan 22 08:57
    FabioRosado closed #1980
  • Jan 22 02:02
    codecov[bot] commented #1980
  • Jan 22 02:01
    codecov[bot] commented #1980
  • Jan 22 01:58
    github-actions[bot] labeled #1980
  • Jan 22 01:58
    pwillis-eiq opened #1980
  • Jan 20 15:56
    pwillis-eiq edited #1979
  • Jan 20 15:55
    codecov[bot] commented #1979
  • Jan 20 15:51
    github-actions[bot] labeled #1979
  • Jan 20 15:51
    pwillis-eiq opened #1979
Cadair
@cadair:cadair.com
[m]
currently I am stuck on:
INFO opsdroid.parsers.rasanlu: Starting Rasa NLU training.
Traceback (most recent call last):
  File "/home/stuart/.virtualenvs/opsdroid/bin/opsdroid", line 33, in <module>
    sys.exit(load_entry_point('opsdroid', 'console_scripts', 'opsdroid')())
  File "/home/stuart/.virtualenvs/opsdroid/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/stuart/.virtualenvs/opsdroid/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/stuart/.virtualenvs/opsdroid/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/stuart/.virtualenvs/opsdroid/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/stuart/.virtualenvs/opsdroid/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/stuart/Git/opsdroid/opsdroid/cli/start.py", line 43, in start
    opsdroid.run()
  File "/home/stuart/Git/opsdroid/opsdroid/core.py", line 166, in run
    self.sync_load()
  File "/home/stuart/Git/opsdroid/opsdroid/core.py", line 215, in sync_load
    self.eventloop.run_until_complete(self.load())
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/home/stuart/Git/opsdroid/opsdroid/core.py", line 228, in load
    await self.train_parsers(self.modules["skills"])
  File "/home/stuart/Git/opsdroid/opsdroid/core.py", line 355, in train_parsers
    await train_rasanlu(rasanlu, skills)
  File "/home/stuart/Git/opsdroid/opsdroid/parsers/rasanlu.py", line 93, in train_rasanlu
    if config["model"] in await _get_existing_models(config):
  File "/home/stuart/Git/opsdroid/opsdroid/parsers/rasanlu.py", line 76, in _get_existing_models
    if project in result["available_projects"]:
KeyError: 'available_projects'
Do I have to configure the project rasa server side?
Jacob Tomlinson (Slack)
@_slack_opsdroid_U5MK1BW83:matrix.org
[m]
No. Perhaps something broke. I havent used it for a while.
Cadair
@cadair:cadair.com
[m]
oh yay
cadair:cadair.com @cadair:cadair.com mutters things about nothing being easy
Jacob Tomlinson (Slack)
@_slack_opsdroid_U5MK1BW83:matrix.org
[m]
Ha! When I first wrote it things were super easy. I expect if you pulled an old version things would work.
SolarDrew
@solardrew:openastronomy.org
[m]
ah but then stuart's inherent aversion to not using the newest thing would kick in and immediately uninstall it 😛
Cadair
@cadair:cadair.com
[m]
yeah I think their API has changed like a lot
Jacob Tomlinson (Slack)
@_slack_opsdroid_U5MK1BW83:matrix.org
[m]
Hrm thats a shame
cadair:cadair.com @cadair:cadair.com attempts to install <2
Cadair
@cadair:cadair.com
[m]
installing less than 2 is not happy
looks like I am rewriting the rasa parser
FabioRosado
@fabiorosado:matrix.org
[m]
I have finally sat my ass down to work on the github PR that I have open. With the new tests do I need to bind ospdroid or the test to a different port? I'm getting a exception=OSError(98, "error while attempting to bind on address ('0.0.0.0', 8080): address already in use")>
Jacob Tomlinson (Slack)
@_slack_opsdroid_U5MK1BW83:matrix.org
[m]
Is something already on that port?
And are you on windows?
FabioRosado
@fabiorosado:matrix.org
[m]
yeah but using wsl, I checked with netstat and didn't show anything on that port 🤔 the tests failed with the same issue
I mean on github
Jacob Tomlinson (Slack)
@_slack_opsdroid_U5MK1BW83:matrix.org
[m]
Windows has a known thing where it takes a while to release ports. I expect that will still happen in WSL. Are you running multiple tests?
That starts opsdroid?
FabioRosado
@fabiorosado:matrix.org
[m]
yeah I was running all of the github ones
I'll try to run one by one
Jacob Tomlinson (Slack)
@_slack_opsdroid_U5MK1BW83:matrix.org
[m]
Good idea!
If that works we might need to update the fixture to start opsdroid on random ports.
FabioRosado
@fabiorosado:matrix.org
[m]
Although we still got the same issue on github 🤔 https://github.com/opsdroid/opsdroid/pull/1753/checks?check_run_id=2106613774
FabioRosado
@fabiorosado:matrix.org
[m]
Missed your last comment sorry,thanks I'll play with it
Jacob Tomlinson (Slack)
@_slack_opsdroid_U5MK1BW83:matrix.org
[m]
👍
FabioRosado
@fabiorosado:matrix.org
[m]
This is a bit weird, the fixture is using port 8089 so should work fine, I need to try and figure out what's happening here
FabioRosado
@fabiorosado:matrix.org
[m]
Actually I had a issue here, if we mess our code that fails a test with an exception we will get that exception
hkonala
@hkonala
Hello All,
I just started using Opsdroid(using slack connector for now) and could you please help me with the below queries:
  1. Is there any timeout for the websocket connection between slack and opsdroid?
  2. How does opsdroid handles the connection reset between slack and opsdroid?
  3. Can we use slack signed secrets with RTM API as we can use with slack Web APIs?
    Appreciate all the help I can get here
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.