This repository was archived by the owner on Nov 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
This repository was archived by the owner on Nov 30, 2022. It is now read-only.
Fideops fails to start with TypeError. #367
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Description
fidesops fails to start with the following error when python version is 3.9.12. (3.9.8 or above) It seems it is hitting uriyyo/fastapi-pagination#228, which is caused by pydantic. Please consider updating dependencies to address this issue with later version of python.
Startup configuration: reloading = False
Startup configuration: pii logging = False
Traceback (most recent call last):
File "/opt/fides/fidesops/bin/fidesops", line 33, in <module>
sys.exit(load_entry_point('fidesops', 'console_scripts', 'fidesops')())
File "/opt/fides/fidesops/bin/fidesops", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.9/importlib/metadata.py", line 86, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/opt/fides/fidesops/src/fidesops/cli.py", line 4, in <module>
from fidesops.main import start_webserver
File "/opt/fides/fidesops/src/fidesops/main.py", line 6, in <module>
from fidesops.api.v1.api import api_router
File "/opt/fides/fidesops/src/fidesops/api/v1/api.py", line 3, in <module>
from fidesops.api.v1.endpoints import (
File "/opt/fides/fidesops/src/fidesops/api/v1/endpoints/connection_endpoints.py", line 6, in <module>
from fastapi_pagination.ext.sqlalchemy import paginate
File "/opt/fides/fidesops/lib/python3.9/site-packages/fastapi_pagination/__init__.py", line 1, in <module>
from .api import (
File "/opt/fides/fidesops/lib/python3.9/site-packages/fastapi_pagination/api.py", line 25, in <module>
from .bases import AbstractPage, AbstractParams
File "/opt/fides/fidesops/lib/python3.9/site-packages/fastapi_pagination/bases.py", line 54, in <module>
class AbstractPage(GenericModel, Generic[T], ABC):
File "pydantic/main.py", line 282, in pydantic.main.ModelMetaclass.__new__
File "pydantic/typing.py", line 287, in pydantic.typing.resolve_annotations
For use of globalns and localns see the docstring for get_type_hints().
File "/usr/lib/python3.9/typing.py", line 292, in _eval_type
return t._evaluate(globalns, localns, recursive_guard)
File "/usr/lib/python3.9/typing.py", line 553, in _evaluate
type_ = _type_check(
File "/usr/lib/python3.9/typing.py", line 158, in _type_check
raise TypeError(f"{arg} is not valid as type argument")
TypeError: typing.ClassVar[typing.Type[fastapi_pagination.bases.AbstractParams]] is not valid as type argumentSteps to Reproduce
- Install fiesopt with python 3.9.8 or above
- perform
fidesops webserver
Expected behavior
fidesops should start up with python 3.9.8 or above.
Screenshots
n.a.
Environment
- Version: 1.3.0
- OS: macOS monterey 12.3.1 / Ubuntu 20.04.4 LTS (Focal Fossa)
- Python Version: 3.9.12
- Docker Version: 20.10.12, build e91ed57
Additional context
n.a.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working