Open glennmatthews opened 1 year ago
@glennmatthews I ran into this also, @joewesch was able to help me.
I started off by only installing the chatops application 3.0.1 with no extras and hit the error above. We poetry added grpcio and ran into an error with the next import for arista in that file cvpgrpcutils.py.
We then re-installed the app with the "all" integrations settings and it worked.
Only thing is now when I run my /slash command it's saying that /cloudvision is available, but weird that it isn't listing all the other integrations.
Feels like it trying to load cloudvision even though I'm not requesting it to be loaded with the base install no extras.
Interesting, It shouldn't be trying to load cloudvision unless it is enabled. I will look into this.
This was my pyproject.toml and it worked, but had to add in django-rq.
# Used for local development
nautobot = { version = "2.0.3", optional = true }
python = ">=3.8,<3.12"
nautobot-chatops = {extras = ["aristacv"], version = "^3.0.1"}
django-rq = "^2.8.1"
Markdown = "*"
I know it has been a few weeks, but I am curious @glennmatthews and @zackt25 what you have in your nautobot_config.py. It should only try to load integrations that are enabled in your nautobot_config. For Instance:
PLUGINS_CONFIG = {
"nautobot_chatops": {
"enable_aristacv": True,
},
}
Nevermind, I see the issue. it was renamed from "cloudvision" to "aristacv", but only partially. Also, there is still a reference to rq, which is why you had to install it. I will get a fix out for this.
Environment
Seeing the below recurring traceback from Nautobot: