You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey everyone,
I would really appreciate some help with getting errbot to connect to a mattermost-preview server running locally
Issue description
I have a mattermost-preview server successfully running on a docker image with an account set up
I'm having trouble with cryptography and openssl.
I get this error when running errbot in the backend directory
11:32:32 ERROR errbot.bootstrap Some plugins failed to load:
from cryptography.hazmat.bindings._openssl import ffi, lib
ModuleNotFoundError: No module named '_cffi_backend
I fixed it prior somehow but not sure how I did it or how I undid it
PS C:\Users\marcu\Documents\2pi\LLMBot\err-backend-mattermost> errbot
11:32:32 INFO errbot.bootstrap Found Storage plugin: Shelf.
11:32:32 INFO errbot.bootstrap Found Backend plugin: Mattermost
11:32:32 DEBUG errbot.storage Opening storage 'repomgr'
11:32:32 DEBUG errbot.storage.shelf Open shelf storage C:\Users\marcu\Documents\2pi\LLMBot\err-backend-mattermost\data\repomgr.db
11:32:32 DEBUG errbot.core ErrBot init.
11:32:32 DEBUG errbot.backends.base Backend init.
11:32:32 DEBUG errbot.core created a thread pool of size 10.
11:32:32 DEBUG errbot.storage Opening storage 'core'
11:32:32 DEBUG errbot.storage.shelf Open shelf storage C:\Users\marcu\Documents\2pi\LLMBot\err-backend-mattermost\data\core.db
11:32:32 DEBUG errbot.core Initializing backend storage
11:32:32 DEBUG errbot.storage Opening storage 'mattermost_backend'
11:32:32 DEBUG errbot.storage.shelf Open shelf storage C:\Users\marcu\Documents\2pi\LLMBot\err-backend-mattermost\data\mattermost_backend.db
11:32:32 DEBUG errbot.plugin_manager New entries added to sys.path:
11:32:32 DEBUG errbot.plugin_manager C:\Users\marcu\.conda\envs\errbot-backend\lib\site-packages\errbot\core_plugins
11:32:32 DEBUG errbot.plugin_manager C:\Users\marcu\Documents\2pi\LLMBot\err-backend-mattermost\plugins\err-example
11:32:32 DEBUG errbot.plugins.ACLs Logger for plugin ACLs initialized...
11:32:32 DEBUG errbot.plugins.Backup Logger for plugin Backup initialized...
11:32:32 DEBUG errbot.plugins.ChatRoom Logger for plugin ChatRoom initialized...
11:32:32 DEBUG errbot.plugins.CommandNot Logger for plugin CommandNotFoundFilter initialized...
11:32:32 DEBUG errbot.plugins.Flows Logger for plugin Flows initialized...
11:32:32 DEBUG errbot.plugins.Health Logger for plugin Health initialized...
11:32:32 DEBUG errbot.plugins.Help Logger for plugin Help initialized...
11:32:32 DEBUG errbot.plugins.Plugins Logger for plugin Plugins initialized...
11:32:32 DEBUG errbot.plugins.TextCmds Logger for plugin TextCmds initialized...
11:32:32 DEBUG errbot.plugins.Utils Logger for plugin Utils initialized...
11:32:32 DEBUG errbot.plugins.VersionChe Logger for plugin VersionChecker initialized...
11:32:32 DEBUG errbot.plugins.Example Logger for plugin Example initialized...
11:32:32 ERROR errbot.bootstrap Some plugins failed to load:
Traceback (most recent call last):
File "C:\Users\marcu\.conda\envs\errbot-backend\lib\site-packages\errbot\plugin_manager.py", line 289, in _load_plugins_generic
plugin_classes = plugin_info.load_plugin_classes(
File "C:\Users\marcu\.conda\envs\errbot-backend\lib\site-packages\errbot\plugin_info.py", line 100, in load_plugin_classes
spec.loader.exec_module(modu1e)
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "C:\Users\marcu\.conda\envs\errbot-backend\lib\site-packages\errbot\core_plugins\webserver.py", line 9, in <module>
from OpenSSL import crypto
File "C:\Users\marcu\.conda\envs\errbot-backend\lib\site-packages\OpenSSL\__init__.py", line 8, in <module>
from OpenSSL import crypto, SSL
File "C:\Users\marcu\.conda\envs\errbot-backend\lib\site-packages\OpenSSL\crypto.py", line 16, in <module>
from OpenSSL._util import (
File "C:\Users\marcu\.conda\envs\errbot-backend\lib\site-packages\OpenSSL\_util.py", line 6, in <module>
from cryptography.hazmat.bindings.openssl.binding import Binding
File "C:\Users\marcu\.conda\envs\errbot-backend\lib\site-packages\cryptography\hazmat\bindings\openssl\binding.py", line 14, in <module>
from cryptography.hazmat.bindings._openssl import ffi, lib
ModuleNotFoundError: No module named '_cffi_backend'
11:32:32 DEBUG errbot.bootstrap Start serving commands from the mattermost backend.
11:32:32 DEBUG urllib3.connectionpool Starting new HTTP connection (1): localhost:8065
11:32:32 DEBUG urllib3.connectionpool http://localhost:8065 "POST /api/v4/users/login HTTP/1.1" 200 707
11:32:32 DEBUG urllib3.connectionpool Starting new HTTP connection (1): localhost:8065
11:32:32 DEBUG urllib3.connectionpool http://localhost:8065 "GET /api/v4/teams/name/George%20testing HTTP/1.1" 404 270
11:32:32 ERROR mattermostdriver.websocke Sorry, we could not find the page.
11:32:32 ERROR errbot.backends.base Exception occurred in serve_once:
Traceback (most recent call last):
File "C:\Users\marcu\.conda\envs\errbot-backend\lib\site-packages\errbot\backends\base.py", line 869, in serve_forever
if self.serve_once():
File "C:\Users\marcu\Documents\2pi\LLMBot\err-backend-mattermost\src\err-backend-mattermost\err-backend-mattermost.py", line 347, in serve_once
self.teamid = self.driver.teams.get_team_by_name(name=self.team)["id"]
File "C:\Users\marcu\.conda\envs\errbot-backend\lib\site-packages\mattermostdriver\endpoints\teams.py", line 46, in get_team_by_name
return self.client.get(
File "C:\Users\marcu\.conda\envs\errbot-backend\lib\site-packages\mattermostdriver\client.py", line 193, in get
response = self.make_request('get', endpoint, options=options, params=params)
File "C:\Users\marcu\.conda\envs\errbot-backend\lib\site-packages\mattermostdriver\client.py", line 179, in make_request
raise ResourceNotFound(message,self._basepath) from None
mattermostdriver.exceptions.ResourceNotFound: [Errno Sorry, we could not find the page.] /api/v4
11:32:32 INFO errbot.backends.base Reconnecting in 1 seconds (0 attempted reconnections so far).
11:32:33 DEBUG urllib3.connectionpool Starting new HTTP connection (1): localhost:8065
11:32:33 DEBUG urllib3.connectionpool http://localhost:8065 "POST /api/v4/users/login HTTP/1.1" 200 707
11:32:33 DEBUG urllib3.connectionpool Starting new HTTP connection (1): localhost:8065
11:32:33 DEBUG urllib3.connectionpool http://localhost:8065 "GET /api/v4/teams/name/George%20testing HTTP/1.1" 404 270
11:32:33 ERROR mattermostdriver.websocke Sorry, we could not find the page.
11:32:33 ERROR errbot.backends.base Exception occurred in serve_once:
Traceback (most recent call last):
File "C:\Users\marcu\.conda\envs\errbot-backend\lib\site-packages\errbot\backends\base.py", line 869, in serve_forever
if self.serve_once():
File "C:\Users\marcu\Documents\2pi\LLMBot\err-backend-mattermost\src\err-backend-mattermost\err-backend-mattermost.py", line 347, in serve_once
self.teamid = self.driver.teams.get_team_by_name(name=self.team)["id"]
File "C:\Users\marcu\.conda\envs\errbot-backend\lib\site-packages\mattermostdriver\endpoints\teams.py", line 46, in get_team_by_name
return self.client.get(
File "C:\Users\marcu\.conda\envs\errbot-backend\lib\site-packages\mattermostdriver\client.py", line 193, in get
response = self.make_request('get', endpoint, options=options, params=params)
File "C:\Users\marcu\.conda\envs\errbot-backend\lib\site-packages\mattermostdriver\client.py", line 179, in make_request
raise ResourceNotFound(message,self._basepath) from None
mattermostdriver.exceptions.ResourceNotFound: [Errno Sorry, we could not find the page.] /api/v4
Steps to reproduce
Here's the packages installed on the errbot conda environment
Hey everyone,
I would really appreciate some help with getting errbot to connect to a mattermost-preview server running locally
Issue description
I have a mattermost-preview server successfully running on a docker image with an account set up
I'm having trouble with cryptography and openssl.
I get this error when running errbot in the backend directory
I fixed it prior somehow but not sure how I did it or how I undid it
Steps to reproduce
Here's the packages installed on the errbot conda environment
I am using docker for the server and did have an issue when trying to connect to the server separately.
I'm running this on Windows 11
Environment :
The text was updated successfully, but these errors were encountered: