Closed darose closed 11 months ago
Hi @darose this is expected as pydantic v2 isn't supported yet from the current released versions, we'll release a new version with pydantic v2 support soon, hopefully in that version we can also solve the other setup.py
issue you opened.
@darose following up on this, with alpaca-py v0.11 you should be able to use pydantic v2 as well which should solve this issue. Please let me know if I can close this up.
Looks all good!
$ pacman -Q python-alpaca-py
python-alpaca-py 0.11.0-1
$ python
Python 3.11.5 (main, Sep 2 2023, 14:16:33) [GCC 13.2.1 20230801] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from alpaca.trading.client import TradingClient
>>>
Thanks much for the quick fix!
Is there an existing issue for this?
Current Behavior
My distro updated to pydantic v2.3.0 recently. Now I'm unable to use alpaca-py. It shows the following error:
Expected Behavior
Executing
from alpaca.trading.client import TradingClient
should just silently succeed.SDK Version I encountered this issue in
This is using v0.8.0 of alpaca-py. (I am unable to upgrade to v0.10.0 due to bug #311, which is blocking me from upgrading.)
Steps To Reproduce
Filled out the Steps to Reproduce section?
Anything else?
No response