Closed greenaar closed 6 months ago
Tracked this down.
https://errbot.readthedocs.io/en/latest/user_guide/plugin_development/basics.html#python-submodules uses an example folder lib/
but the slack plugin uses lib.py - which immediately conflicts.
other than potentially renaming that to something unique, there's no action to be taken on your side.
Describe the bug Errbot running on python 3.11 in docker, using the slackv3 backend is unable to load a python library into a plugin
To Reproduce plugin code:
python library (in plugins/lib/chatutils.py)
Expected behavior Errbot should load the plugin.
Actual behavior
Environment (please complete the following information):
Additional context
Config.py includes a reference to plugins, and sys.path via errbot returns:
Path: ['/errbot-data/code', '/errbot-data/code', '/errbot-data/bin', '/usr/lib/python311.zip', '/usr/lib/python3.11', '/usr/lib/python3.11/lib-dynload', '/errbot-data/lib/python3.11/site-packages', '/errbot-data/lib/python3.11/site-packages/errbot/storage', '/errbot-data/eks-ops/errbot/backends/err-backend-slackv3/src/slackv3', '/errbot-data/lib/python3.11/site-packages/errbot/core_plugins', '/errbot-data/eks-ops/errbot/plugins/mytest', '/errbot-data/eks-ops/errbot/plugins/ops', '/errbot-data/eks-ops/errbot/plugins/Git', '/errbot-data/eks-ops/errbot/plugins']
This includes (last entry) the plugins/ dir in the search path.
When using backend Text (or Discord) this error does not occur.