Tinkoff / invest-python

Tinkoff Invest Python gRPC client
https://tinkoff.github.io/invest-python/
Apache License 2.0
301 stars 87 forks source link

[Bug] Ошибка зависимостей protobuf при установке с cudf #222

Closed serjpastukhov closed 1 year ago

serjpastukhov commented 1 year ago

Что случилось?

Добрый день!

Скачал с PYPI пакет и попытался воткнуть в проект с установленным cudf. При инсталляции возникла ошибка несовместимых зависимостей

"tinkoff-investments 0.2.0b54 requires protobuf<4.0.0,>=3.20.2, but you have protobuf 4.21.0"

Скажите, есть ли способ обойти требование?

Пытался завести в Custom Issue, но не вышло.

Воспроизведение

Для воспроизведения нужно следовать инструкциям https://docs.rapids.ai/install#selector
Суть в том, чтобы поставить cudf

conda create -n rapids-23.02 -c rapidsai -c conda-forge -c nvidia rapids=23.02 python=3.10 cudatoolkit=11.8

При попытке в этот же env запихать tinkoff-investments и сталкиваемся с проблемой зависимостей.

Tinkoff Invest Version

0.2.0-beta54

Python Version

3.10

OS

Linux

Логи

tinkoff<0.2.0,>=0.1.1 (from tinkoff-investments)
  Downloading tinkoff-0.1.1-py3-none-any.whl (1.0 kB)
Requirement already satisfied: packaging in /home/user/micromamba/envs/rapids-23.02/lib/python3.10/site-packages (from deprecation<3.0.0,>=2.1.0->tinkoff-investments) (23.1)
Requirement already satisfied: typing-extensions>=4.2.0 in /home/user/micromamba/envs/rapids-23.02/lib/python3.10/site-packages (from pydantic<2.0.0,>=1.9.2->tinkoff-investments) (4.5.0)
Requirement already satisfied: six>=1.5 in /home/user/micromamba/envs/rapids-23.02/lib/python3.10/site-packages (from python-dateutil<3.0.0,>=2.8.2->tinkoff-investments) (1.16.0)
Installing collected packages: tinkoff, pydantic, protobuf, grpcio, deprecation, tinkoff-investments
  Attempting uninstall: protobuf
    Found existing installation: protobuf 4.21.12
    Uninstalling protobuf-4.21.12:
      Successfully uninstalled protobuf-4.21.12
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.
cudf 23.2.0 requires protobuf==4.21, but you have protobuf 3.20.3 which is incompatible.
irusland commented 1 year ago

Фикс замержен