Skip to content
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

Unable to generate pydantic-core schema #5518

Open
vishal-spektrum opened this issue Oct 24, 2024 · 1 comment
Open

Unable to generate pydantic-core schema #5518

vishal-spektrum opened this issue Oct 24, 2024 · 1 comment
Labels
bug dependencies Dependabot Updates pip Dependabot Updates Python severity/low Bug won't result in any noticeable breakdown of the execution.

Comments

@vishal-spektrum
Copy link

Steps to Reproduce

i have system with installed fastapi which uses pydantic version == 2.9.2
which conflicts with the pydantic version ==1.10.18 which is used by prowler

which gets me the error as
pydantic.errors.PydanticSchemaGenerationError: Unable to generate pydantic-core schema for <class 'prowler.lib.check.compliance_models.CIS_Requirement_Attribute_Profile'>. Set arbitrary_types_allowed=True in the model_config to ignore this error or implement __get_pydantic_core_schema__ on your type to fully support it.

Expected behavior

prowler should use latest version of pydantic in order for the code to work

Actual Result with Screenshots or Logs

Screenshot from 2024-10-24 12-59-38
Screenshot from 2024-10-24 12-59-10

How did you install Prowler?

From pip package (pip install prowler)

Environment Resource

docker containers

OS used

ubuntu

Prowler version

Prowler 4.2.1

Pip version

pip 23.0.1

Context

No response

@sergargar
Copy link
Member

Hi @vishal-spektrum, I will discuss it internally with the team to upgrade pydantic to the latest version and I will get back to you. Thanks!

@sergargar sergargar added severity/low Bug won't result in any noticeable breakdown of the execution. dependencies Dependabot Updates pip Dependabot Updates Python and removed status/needs-triage Issue pending triage labels Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug dependencies Dependabot Updates pip Dependabot Updates Python severity/low Bug won't result in any noticeable breakdown of the execution.
Projects
None yet
Development

No branches or pull requests

2 participants