-
Notifications
You must be signed in to change notification settings - Fork 503
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
Compatibility issues with Cog Pydantic < 2.* #1384
Comments
I understood we can control the fastapi version on the
So I am trying to understand if all cog versions use:
|
I am updating the source code now. to: if request.id is not None and request.id != prediction_id:
errors = [{
'loc': ('body', 'id'),
'msg': "prediction ID must match the ID supplied in the URL",
'type': 'value_error',
}]
raise ValidationError(errors, PredictionRequest)
... But when I am building...
|
I was able to solve the problem by updating the golang to version 1.20 as stated in |
@sCarita is there any new release or fix instructions for this, i am also getting the same error
|
I am also using cog for push my model to replicate Traceback (most recent call last): how can i fix that problem? |
I don't believe this is fixed -- re-opening. |
This PR vendors all Python packages using the [vendoring](https://pypi.org/project/vendoring/) library. Vendoring allows users to install packages that rely on versions of libraries that are in conflict with Cog's dependencies (e.g. Pydantic, see replicate#1562, replicate#1384, replicate#1186, replicate#1586, replicate#1336, replicate#785). This PR is broken up into two commits: First one adds all the files in the `_vendor` directory, second one is the actually changed code. Closes replicate#409 Signed-off-by: andreasjansson <andreas@replicate.ai>
This PR vendors all Python packages using the [vendoring](https://pypi.org/project/vendoring/) library. Vendoring allows users to install packages that rely on versions of libraries that are in conflict with Cog's dependencies (e.g. Pydantic, see replicate#1562, replicate#1384, replicate#1186, replicate#1586, replicate#1336, replicate#785). This PR is broken up into two commits: First one adds all the files in the `_vendor` directory, second one is the actually changed code. Closes replicate#409 Signed-off-by: andreasjansson <andreas@replicate.ai>
This PR vendors all Python packages using the [vendoring](https://pypi.org/project/vendoring/) library. Vendoring allows users to install packages that rely on versions of libraries that are in conflict with Cog's dependencies (e.g. Pydantic, see replicate#1562, replicate#1384, replicate#1186, replicate#1586, replicate#1336, replicate#785). Vendored packages are gitignored and are sync'd by the default `make` rule. Closes replicate#409 Signed-off-by: andreasjansson <andreas@replicate.ai>
This PR vendors all Python packages using the [vendoring](https://pypi.org/project/vendoring/) library. Vendoring allows users to install packages that rely on versions of libraries that are in conflict with Cog's dependencies (e.g. Pydantic, see replicate#1562, replicate#1384, replicate#1186, replicate#1586, replicate#1336, replicate#785). Vendored packages are gitignored and are sync'd by the default `make` rule. Closes replicate#409 Signed-off-by: andreasjansson <andreas@replicate.ai>
This PR vendors all Python packages using the [vendoring](https://pypi.org/project/vendoring/) library. Vendoring allows users to install packages that rely on versions of libraries that are in conflict with Cog's dependencies (e.g. Pydantic, see replicate#1562, replicate#1384, replicate#1186, replicate#1586, replicate#1336, replicate#785). Vendored packages are gitignored and are sync'd by the default `make` rule. Closes replicate#409 Signed-off-by: andreasjansson <andreas@replicate.ai>
This PR vendors all Python packages using the [vendoring](https://pypi.org/project/vendoring/) library. Vendoring allows users to install packages that rely on versions of libraries that are in conflict with Cog's dependencies (e.g. Pydantic, see replicate#1562, replicate#1384, replicate#1186, replicate#1586, replicate#1336, replicate#785). Vendored packages are gitignored and are sync'd by the default `make` rule. Closes replicate#409 Signed-off-by: andreasjansson <andreas@replicate.ai>
This PR vendors all Python packages using the [vendoring](https://pypi.org/project/vendoring/) library. Vendoring allows users to install packages that rely on versions of libraries that are in conflict with Cog's dependencies (e.g. Pydantic, see replicate#1562, replicate#1384, replicate#1186, replicate#1586, replicate#1336, replicate#785). Vendored packages are gitignored and are sync'd by the default `make` rule. Closes replicate#409 Signed-off-by: andreasjansson <andreas@replicate.ai>
This PR vendors all Python packages using the [vendoring](https://pypi.org/project/vendoring/) library. Vendoring allows users to install packages that rely on versions of libraries that are in conflict with Cog's dependencies (e.g. Pydantic, see replicate#1562, replicate#1384, replicate#1186, replicate#1586, replicate#1336, replicate#785). Vendored packages are gitignored and are sync'd by the default `make` rule. Closes replicate#409 Signed-off-by: andreasjansson <andreas@replicate.ai>
This PR vendors all Python packages using the [vendoring](https://pypi.org/project/vendoring/) library. Vendoring allows users to install packages that rely on versions of libraries that are in conflict with Cog's dependencies (e.g. Pydantic, see replicate#1562, replicate#1384, replicate#1186, replicate#1586, replicate#1336, replicate#785). Vendored packages are gitignored and are sync'd by the default `make` rule. Closes replicate#409 Signed-off-by: andreasjansson <andreas@replicate.ai>
Hello everyone,
I am building an image that needs
segments-ai
python package, which requires pydantic to be above version2.*
. The problem is that if I install the pydantic python package above version 2, I get an error during the "Validating model schema..." phase.It seems that the fastapi version used by cog is expecting pydantic to be below version 2, where "Undefined" object exists...
My current cog version is:
cog version 0.8.6 (built 2023-08-07T21:51:56Z)
Any ideas on how to workaround this are gladly accepted.
Thank you for your time.
The text was updated successfully, but these errors were encountered: