Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency conflicts #10

Open
cyberdust2k opened this issue Oct 27, 2024 · 0 comments
Open

Dependency conflicts #10

cyberdust2k opened this issue Oct 27, 2024 · 0 comments

Comments

@cyberdust2k
Copy link

When running the script these two things happen:

Install python telegram bot

Requirement already satisfied: python-telegram-bot in /usr/local/lib/python3.10/dist-packages (21.6)
Collecting httpx~=0.27
  Using cached httpx-0.27.2-py3-none-any.whl (76 kB)
Requirement already satisfied: sniffio in /usr/local/lib/python3.10/dist-packages (from httpx~=0.27->python-telegram-bot) (1.3.1)
Requirement already satisfied: certifi in /usr/lib/python3/dist-packages (from httpx~=0.27->python-telegram-bot) (2020.6.20)
Requirement already satisfied: anyio in /usr/local/lib/python3.10/dist-packages (from httpx~=0.27->python-telegram-bot) (3.7.1)
Requirement already satisfied: idna in /usr/lib/python3/dist-packages (from httpx~=0.27->python-telegram-bot) (3.3)
Collecting httpcore==1.*
  Using cached httpcore-1.0.6-py3-none-any.whl (78 kB)
Requirement already satisfied: h11<0.15,>=0.13 in /usr/local/lib/python3.10/dist-packages (from httpcore==1.*->httpx~=0.27->python-telegram-bot) (0.14.0)
Requirement already satisfied: exceptiongroup in /usr/local/lib/python3.10/dist-packages (from anyio->httpx~=0.27->python-telegram-bot) (1.2.2)
Installing collected packages: httpcore, httpx
  Attempting uninstall: httpcore
    Found existing installation: httpcore 0.17.3
    Uninstalling httpcore-0.17.3:
      Successfully uninstalled httpcore-0.17.3
  Attempting uninstall: httpx
    Found existing installation: httpx 0.24.1
    Uninstalling httpx-0.24.1:
      Successfully uninstalled httpx-0.24.1
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
signalstickers-client 3.3.0 requires httpx<=0.24.1,>=0.16.1, but you have httpx 0.27.2 which is incompatible.
Successfully installed httpcore-1.0.6 httpx-0.27.2
Install SignalStickers Client

Requirement already satisfied: signalstickers-client in /usr/local/lib/python3.10/dist-packages (3.3.0)
Requirement already satisfied: anyio<4.0.0,>=3.0.0 in /usr/local/lib/python3.10/dist-packages (from signalstickers-client) (3.7.1)
Requirement already satisfied: cryptography<4.0.0,>=3.1.1 in /usr/lib/python3/dist-packages (from signalstickers-client) (3.4.8)
Requirement already satisfied: protobuf<4.0.0,>=3.13.0 in /usr/local/lib/python3.10/dist-packages (from signalstickers-client) (3.20.3)
Collecting httpx<=0.24.1,>=0.16.1
  Using cached httpx-0.24.1-py3-none-any.whl (75 kB)
Requirement already satisfied: sniffio>=1.1 in /usr/local/lib/python3.10/dist-packages (from anyio<4.0.0,>=3.0.0->signalstickers-client) (1.3.1)
Requirement already satisfied: idna>=2.8 in /usr/lib/python3/dist-packages (from anyio<4.0.0,>=3.0.0->signalstickers-client) (3.3)
Requirement already satisfied: exceptiongroup in /usr/local/lib/python3.10/dist-packages (from anyio<4.0.0,>=3.0.0->signalstickers-client) (1.2.2)
Collecting httpcore<0.18.0,>=0.15.0
  Using cached httpcore-0.17.3-py3-none-any.whl (74 kB)
Requirement already satisfied: certifi in /usr/lib/python3/dist-packages (from httpx<=0.24.1,>=0.16.1->signalstickers-client) (2020.6.20)
Requirement already satisfied: h11<0.15,>=0.13 in /usr/local/lib/python3.10/dist-packages (from httpcore<0.18.0,>=0.15.0->httpx<=0.24.1,>=0.16.1->signalstickers-client) (0.14.0)
Installing collected packages: httpcore, httpx
  Attempting uninstall: httpcore
    Found existing installation: httpcore 1.0.6
    Uninstalling httpcore-1.0.6:
      Successfully uninstalled httpcore-1.0.6
  Attempting uninstall: httpx
    Found existing installation: httpx 0.27.2
    Uninstalling httpx-0.27.2:
      Successfully uninstalled httpx-0.27.2
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
python-telegram-bot 21.6 requires httpx~=0.27, but you have httpx 0.24.1 which is incompatible.
Successfully installed httpcore-0.17.3 httpx-0.24.1

this seems to break the entire script and I cannot download anything, Using the script it only says:

Token found continuing
Please input link to pack to be converted eg https://t.me/addstickers/HalloUtya
https://t.me/addstickers/softnqtcollection
Can't download pack https://t.me/addstickers/softnqtcollection

and using the script directly with python3 download.py pack with pack being a file with the URL to the pack, it gives me a traceback, probably related to httpx being the wrong version:

$ python3 download.py pack
Traceback (most recent call last):
  File "/home/cyberdust/signalApngSticker-main/scripts_linux/script_v4/download.py", line 6, in <module>
    bot= Bot(token)
  File "/usr/local/lib/python3.10/dist-packages/telegram/_bot.py", line 267, in __init__
    HTTPXRequest() if get_updates_request is None else get_updates_request,
  File "/usr/local/lib/python3.10/dist-packages/telegram/request/_httpxrequest.py", line 205, in __init__
    self._client = self._build_client()
  File "/usr/local/lib/python3.10/dist-packages/telegram/request/_httpxrequest.py", line 240, in _build_client
    return httpx.AsyncClient(**self._client_kwargs)
TypeError: AsyncClient.__init__() got an unexpected keyword argument 'proxy'

Platform is Ubuntu 22.04.5 LTS under WSL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant