Comments (5)
Hey there, thx for the report! 🚀
Make sure to not install python-telegram-bot v20, which is a massive breaking change. Instead downgrade to the last v13 version (currently v13.15).
This project currently doesn't pin dependencies in a good way, so you probably got the latest v20 version. To improve this we could use a poetry configuration, instead of the requirements.txt
.
from cli2telegram.
Thank you for getting back to me so quickly. I have downgraded python-telegram-bot to v13.15 and now getting this error:
emojize() got an unexpected keyword argument 'use_aliases'
Traceback (most recent call last):
File "/home/maksima/.local/lib/python3.10/site-packages/cli2telegram/util.py", line 95, in _try_send_message
send_message(bot=updater.bot, chat_id=chat_id, message=message, parse_mode="markdown")
File "/home/maksima/.local/lib/python3.10/site-packages/cli2telegram/util.py", line 43, in send_message
emojized_text = emojize(message, use_aliases=True)
TypeError: emojize() got an unexpected keyword argument 'use_aliases'
Error sending message, retrying in 10.0 seconds...
Here is pip output:
`[]$ pip check]$ pip show cli2telegram
No broken requirements found.
[
Name: cli2telegram
Version: 2.0.0
Summary: Small utility to send Telegram messages from the CLI.
Home-page: https://github.com/markusressel/cli2telegram
Author: Markus Ressel
Author-email: [email protected]
License: AGPLv3+
Location: /home/user/.local/lib/python3.10/site-packages
Requires: click, container-app-conf, emoji, python-telegram-bot
Required-by:
[~]$
[~]$ pip show click container-app-conf emoji python-telegram-bot > cli.log
Name: click
Version: 8.1.3
Summary: Composable command line interface toolkit
Home-page: https://palletsprojects.com/p/click/
Author: Armin Ronacher
Author-email: [email protected]
License: BSD-3-Clause
Location: /home/user/.local/lib/python3.10/site-packages
Requires:
Required-by: cli2telegram
Name: container-app-conf
Version: 5.2.2
Summary: Convenient configuration of containerized applications
Home-page: https://github.com/markusressel/container-app-conf
Author: Markus Ressel
Author-email: [email protected]
License: MIT
Location: /home/user/.local/lib/python3.10/site-packages
Requires: py-range-parse, python-dateutil, pytimeparse, ruamel.yaml, ruamel.yaml.clib, six, toml, voluptuous
Required-by: cli2telegram
Name: emoji
Version: 2.2.0
Summary: Emoji for Python
Home-page: https://github.com/carpedm20/emoji/
Author: Taehoon Kim, Kevin Wurster and Tahir Jalilov
Author-email: [email protected]
License: New BSD
Location: /home/user/.local/lib/python3.10/site-packages
Requires:
Required-by: cli2telegram
Name: python-telegram-bot
Version: 13.15
Summary: We have made you a wrapper you can't refuse
Home-page: https://python-telegram-bot.org/
Author: Leandro Toledo`
from cli2telegram.
Meh, the same issue but for emojize. This issue has been addressed already in #13, however I think there hasn't been a release since then so the change is not part of the v2.0.0 release.
You can also downgrade emojize to 1.7.0 to get this running for now. Of course this is only a temporary solution, and a new release would be necessary to correct this.
from cli2telegram.
Thank you, this got it working!
from cli2telegram.
I have just released 2.0.1, which should fix all of the issues.
Feel free to give it a try! 🚀 🤓
from cli2telegram.
Related Issues (5)
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 cli2telegram.