Code Monkey home page Code Monkey logo

Comments (5)

markusressel avatar markusressel commented on August 28, 2024

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.

maksimaee avatar maksimaee commented on August 28, 2024

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
No broken requirements found.
[
]$ pip show cli2telegram

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.

markusressel avatar markusressel commented on August 28, 2024

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.

maksimaee avatar maksimaee commented on August 28, 2024

Thank you, this got it working!

from cli2telegram.

markusressel avatar markusressel commented on August 28, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.