Immediate crash in Python 3.14
Author: phormioCreated Aug 28, 2026Updated Sep 24, 2026
Labelsfeature-request
Issue search
- I have searched the existing issues and this bug has not been reported yet
Which component is affected?
Prowler CLI/SDK
Cloud Provider (if applicable)
Not applicable
Steps to Reproduce
I installed prowler as follows:
python3.14 -m venv /tmp/venv_prowler
/tmp/venv_prowler/bin/python3 -m pip install prowlerThen I did:
/tmp/venv_prowler/bin/prowler --helpExpected behavior
I expected a usage message, as is standard when programs are run with the --help option.
Actual Result with Screenshots or Logs
Prowler crashed immediately. Here is its full output:
Traceback (most recent call last):
File "/tmp/venv_prowler/bin/prowler", line 3, in <module>
from prowler.__main__ import prowler
File "/tmp/venv_prowler/lib/python3.14/site-packages/prowler/__main__.py", line 10, in <module>
from prowler.lib.check.check import (
...<15 lines>...
)
File "/tmp/venv_prowler/lib/python3.14/site-packages/prowler/lib/check/check.py", line 19, in <module>
from prowler.lib.check.models import Check, load_check_metadata
File "/tmp/venv_prowler/lib/python3.14/site-packages/prowler/lib/check/models.py", line 34, in <module>
class Check_Metadata_Model(BaseModel):
...<22 lines>...
Compliance: list = None
File "/tmp/venv_prowler/lib/python3.14/site-packages/pydantic/main.py", line 221, in __new__
inferred = ModelField.infer(
name=var_name,
...<3 lines>...
config=config,
)
File "/tmp/venv_prowler/lib/python3.14/site-packages/pydantic/fields.py", line 506, in infer
return cls(
name=name,
...<7 lines>...
field_info=field_info,
)
File "/tmp/venv_prowler/lib/python3.14/site-packages/pydantic/fields.py", line 436, in __init__
self.prepare()
~~~~~~~~~~~~^^
File "/tmp/venv_prowler/lib/python3.14/site-packages/pydantic/fields.py", line 546, in prepare
self._set_default_and_type()
~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/tmp/venv_prowler/lib/python3.14/site-packages/pydantic/fields.py", line 578, in _set_default_and_type
raise errors_.ConfigError(f'unable to infer type for attribute "{self.name}"')
pydantic.errors.ConfigError: unable to infer type for attribute "Compliance"How did you install Prowler?
From pip package (pip install prowler)
Environment Resource
Workstation.
OS used
Debian Linux 13.
Prowler version
3.11.3
Python version
3.14.0
Pip version
25.2
Context
Below is an analysis from Claude Code, very lightly edited.
pip install prowler(with no version pin) resolves to prowler 3.11.3, the latest release on PyPI under that package name. It hard-pinspydantic==1.10.13.- Your venv's interpreter is Python 3.14 [...]
- pydantic 1.x is incompatible with Python 3.14 because of how CPython 3.14 handles annotations (PEP 649/749, deferred/lazy annotation evaluation via
__annotate__). Previously, a class body's__annotations__dict was eagerly materialized as a literal key in the class namespace during class creation. On 3.14 it no longer is — I confirmed directly:
class Fake:
Provider: str
Compliance: list = None
'__annotations__' in Fake.__dict__ # False, even after accessing Fake.__annotations__- pydantic v1's model metaclass reads annotations via
namespace.get('__annotations__', {})— a dict-literal lookup on the raw class-body namespace, not through the__annotations__/__annotate__descriptor protocol. On 3.14 this always returns{}, so pydantic v1 thinks none of the model's fields are annotated. - For most fields this silently (and separately, badly) breaks; but
prowler/lib/check/models.pyhas:With the annotation lost, pydantic falls back to inferring the type from the default value — but the default isCompliance: list = NoneNone, so there's nothing to infer, and it raises:at import time ofpydantic.errors.ConfigError: unable to infer type for attribute "Compliance"prowler.lib.check.models, which crashesprowler --helpbefore argument parsing even runs.
Source: prowler-cloud/prowler