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 · 3 comments
Open

Unable to generate pydantic-core schema #5518

vishal-spektrum opened this issue Oct 24, 2024 · 3 comments
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

vishal-spektrum commented Oct 24, 2024

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

@MrCloudSec
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!

@MrCloudSec MrCloudSec 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
@puchy22
Copy link
Member

puchy22 commented Oct 28, 2024

Hi @vishal-spektrum, right now it is not quite clear in our roadmap when the Pydantic version will be updated, but we will try to do it as soon as possible and we will notify you about it.
In the meantime you can try the default installation we recommend which is pipx. As it creates isolated environments to install Prowler and all its dependencies, it is the best practice to install packages in isolated environments otherwise you may encounter conflict problems like yours.
I hope you find this useful, let me know if this does not solve your problems.

Thank you very much for using Prowler 🚀

@puchy22
Copy link
Member

puchy22 commented Dec 13, 2024

Hi @vishal-spektrum,

Did the answer I provided work for you, or do you have any additional questions? If anything is still unclear, feel free to ask here again. If there’s no response within a week or so, I’ll consider the issue resolved.

Thank you for using Prowler!

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

3 participants