Comments (10)
There was a recent fix to the mattermostdriver package related to websocket connection. Could you try with the latest mattermostdriver from the HEAD of that repo?
from mmpy_bot.
As we are now using a different driver, could you please re-test if the latest version from the main
branch still displays this bug and report here?
Thanks!
from mmpy_bot.
We're receiving the same issue after upgrade to mattermost 7.1.2 from 5.38.2.
Error with mmpy-bot=2.0.2
If we enable debug mode then it works.
Error with mmpy-bot=2.1.0
In this case if we enable debug mode it doesn't work.
We're using a custom plugin and we don't understand what's the function that is failing on our code. I share with you part of our code to try to find where is the issue.
Thanks!
from mmpy_bot.
In the first case, there's a problem in mattermostdriver
that was since fixed but an upgrade is required.
Regarding the plugin.initialize()
error in 2.1.0, there was an API change that introduced another argument (plugin_manager
).
See the difference in the function signature between 2.0.2
mmpy_bot/mmpy_bot/plugins/base.py
Line 40 in 81e29ea
and 2.1.0
mmpy_bot/mmpy_bot/plugins/base.py
Line 34 in 641b918
from mmpy_bot.
How can I fix the issue with mattermostdriver? upgrading mattermost(version?)?? or mmpy-bot?
Regarding the API changes, how should I initialize the Bot? I'm not sure how to pass the plugins arg Optional[Union[List[Plugin], PluginManager]]
from mmpy_bot.
You can continue using:
plugins=[SealPlugin()]
but you need to update the signature of def initialize(driver, plugin_manager, settings):
in your plugin.
You don't need to use your own PluginManager
instance unless you want to customize/override its behavior.
from mmpy_bot.
Please see #306 for a follow up on the mattermostdriver
issue.
I believe the issue is solved by embl-bio-it/python-mattermost-autodriver@b699cb9 but a version of mmpy_bot
that uses this fix hasn't been released yet.
Please try the latest code from the main
branch and lets us know if the problem is gone.
I'm using it on Mattermost 7.1.2 without problems.
from mmpy_bot.
it works!! thnks! :)
from mmpy_bot.
Closing as resolved in main
.
from mmpy_bot.
Just made release 2.1.1 from the latest main
Thanks for confirming the fixes work for you @cristianjuve
from mmpy_bot.
Related Issues (20)
- Send a message direct to user who joins room HOT 2
- RuntimeError: this event loop is already running. HOT 9
- No connection with docker image 2.0.0 and MM7.1.3 HOT 2
- Improvement: Add `type` optional param for `create_post(...)` function HOT 7
- Unable to run concurrent asyncio processes HOT 5
- [Question] Register plugins at runtime HOT 1
- Scheduled responses to channel instead of reply HOT 5
- How to send files to bot directly for some postpone processing? HOT 3
- HTTP/1.1 404 Not Found : Wrong api endpoint HOT 4
- dev requirements inside main project HOT 3
- [Feature Request] Handler for message editions HOT 1
- Need to fix issue flagged when using latest Pytype HOT 2
- Websocket HOT 3
- Legal way to get raw events HOT 6
- Mandatory MATTERMOST_PORT breaks MATTERMOST_URL with subpaths HOT 2
- Disable httpx logging? HOT 2
- Reading previously sent messages HOT 1
- Bot.run does not return when stop is called HOT 3
- Bot fails to respond with copied ping if username is capitalized HOT 2
- Import plugins from separate files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mmpy_bot.