-
Notifications
You must be signed in to change notification settings - Fork 0
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
Error with pydantic in latest release #38
Comments
Currently my laptop is broken and so I'm unable tohelp or investigate. Will take some days if that is fine for you |
yeah, sure. As posted on the bottom, I have a work-a-round, which I also added for anyone else finding this problem. That is sufficient for me for now... |
on saturday replacement parts are coming i guess i've got time then after repairing my machine |
Laptop repaired. Will get to it shortly releasing all the old versions. Did not know that anyone actually using it, besides me. There where zero interaction or stars or forks so I figured I could stop supporting versions. But now i know so I start keeping up the versions. |
Btw what i just saw is that you should use the same matrix-testutils version as you use matrix synapse. Like if you use 1.95.1 as Matrix Version you should use 1.95.1.0 as testitils version. The first three digits correspond to Matrix Version the last is some kind of Bugfix for these. |
released corresponding matrix-synapse-testutils 1.95.1.0 please try |
@julianhille thanks, mate! Seems to work fine. My example was just pointing out how this fails. I have not bound either dependency in my actual code, and pip resolves that fine enough. |
Hey. Great to hear. You need to pin your testutils version. Pip is not able to find the correct version for your matrix synapse. If you use 1.95.1 of synapse you should pin testutils to 1.95.1.x or if you use version. 1.76.0 of synapse you should to pin to testutils 1.76.0.x otherwise there might be unforeseen test issues. |
Trying to build a new synapse module using the cookiecutter template. Adding tests using the released
matrix-synapse-testutils
(big thanks for doing that!) but run into the pydantic v2 error ( #16332 ) which is meant to work in the latest matrix-synapse release already (using the compat layer) but as I am pulling in matrix-synapse-testutils it fails. The latest release of that package is 1.80.0 from April leading to pulling in matrix-synapse 1.80 which doesn't have the fix either :( .Would highly appreciate if a new release of the testutils could be cut fixing that issue.
Steps to reproduce
See it fail:
Workaround
Workaround until then: adding
"pydantic >=1.7.4, <2"
as a dev dependency on the local project:The text was updated successfully, but these errors were encountered: