Skip to content

Errbot version 6.0.0+ fails to start because "Found more that one plugin for <class 'errbot.core.ErrBot'>" #1484

@tmcevoy14

Description

@tmcevoy14

In order to let us help you better, please fill out the following fields as best you can:

I am...

  • Reporting a bug
  • Suggesting a new feature
  • Requesting help with running my bot
  • Requesting help writing plugins
  • Here about something else

I am running...

  • Errbot version: 6.1.6
  • OS version: CentOS 7.8.2003
  • Python version: 3.6.8
  • Using a virtual environment: yes

Issue description

I'm trying to upgrade our errbot version from 5.2.0 to 6.1.6 and after upgrading to version 6.1.6 errbot fails to start because of this error:
Found more that one plugin for <class 'errbot.core.ErrBot'>.

We are using errbot with the slack configuration and only have one backend defined. Any suggestions?

Our requirements.txt file looks like this:

pytz==2020.1           # (2020-04-20) - latest version
datadog==0.19.0        # (2018-06-04)
pyOpenSSL==17.5.0      # (2017-11-30)
errbot[slack]==6.1.6   # (2020-11-16) - latest version
slackclient==1.0.6     # (2017-08-02)
Markdown==3.3.3        # (2020-10-25) - latest version
pytest==3.7.1          # (2018-08-02)
paramiko==2.7.1        # (2019-12-09) - latest version
GitPython==2.1.11      # (2018-07-11)
black==20.8b1

We are using a custom slack backend that updates a few things for our use case:
BACKEND = 'CustomSlack'
BOT_EXTRA_BACKEND_DIR = os.getenv('BACKENDS_PATH', '/srv/backends')

And then our Custom Slack backend looks something like this (which is copied into /srv/backends when we build the image):

from plugins.libs.common import ui_blocks
from errbot.backends.base import Message
from errbot.backends.slack import (
    SlackBackend,
    SlackPerson,
    SlackRoomOccupant,
    SlackBot,
    SlackRoomBot,
    SlackRoom,
    SlackAPIResponseError,
)

log = logging.getLogger(__name__)


class CustomSlack(SlackBackend):
[Core]
Name = CustomSlack
Module = udemy_slack

[Python]
Version = 2+

[Documentation]
Description = Test stuff

Steps to reproduce

Upgrade to 6.1.6 and run errbot

Upgrade to
6.1.6 or 6.0.0

Additional info

none

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions