alpacahq / alpaca-py

The Official Python SDK for Alpaca API
https://alpaca.markets/sdks/python/getting_started.html
Apache License 2.0
537 stars 134 forks source link

Allow pandas v1 compatibility #358

Closed alessiocastrica closed 11 months ago

alessiocastrica commented 11 months ago

Constraining pandas to be at least v2 is breaking the compatibility of alpaca-py with Google Colab default environment. image

hiohiohio commented 11 months ago

@alessiocastrica seems pydantic requires typing_extensions-4.8.0 which causes the error.

Collecting typing-extensions>=4.6.1 (from pydantic<3.0.0,>=2.0.3->alpaca-py==0.12.0)
  Downloading typing_extensions-4.8.0-py3-none-any.whl (31 kB)
...
tensorflow 2.13.0 requires typing-extensions<4.6.0,>=3.6.6, but you have typing-extensions 4.8.0 which is incompatible.

How to replicate an error in Google Colab

import tensorflow
! pip install git+https://github.com/alpacahq/alpaca-py.git@relax-dependencies-versions
import alpaca.data.requests