Closed dfm closed 1 year ago
Hi! Could you pls share the code a little bit? My firehose consumer (custom feed) works great without problems. How can I reproduce? Do you mean it crashes right after "import atproto"? Could you reproduce it in the terminal? pls run this command: python -c "import atproto; print(atproto.__version__)"
.
recently new pydantic version has been released. maybe that's a problem... try to downgrade pydantic from 2.4
to 2.3
Yes, I can confirm. The problem is new pydantic's update. I have no idea why it starts raising exceptions
btw release yesterday
pls use pip install pydantic==2.3
as temp workaround
I created the corresponding issue in pydantic's repo: https://github.com/pydantic/pydantic/issues/7638. Let's wait for the answer first
I've also just confirmed that downgrading Pydantic fixed my workflow. Thanks!!
I'm happy to close this thread as fixed for me, or you can keep it open to track the issue.
Thanks again!
(btw here's my code: https://github.com/dfm/bsky-nycasp)
fixed in pydantic v2.4.1
Thanks for all the work on this library!! š
I've been using it to run a bsky bot that posts twice daily and everything had been going smoothly until yesterday, when importing
atproto
started failing with the following Pydantic error:I've tested v0.0.26 and v0.0.28 and both seem to consistently fail. FWIW, my code runs on GitHub Actions with a fresh environment and installation of
atproto
every day.I'm not totally sure how to diagnose or debug this issue, so any pointers would be much appreciated! Thanks!