Error when we run powershell-empire

Traceback (most recent call last):
File “/usr/share/powershell-empire/”, line 11, in
import empire.server.server as server
File “/usr/share/powershell-empire/empire/server/”, line 14, in
from empire.server.api import app
File “/usr/share/powershell-empire/empire/server/api/”, line 9, in
from fastapi import FastAPI
File “/usr/lib/python3/dist-packages/fastapi/”, line 7, in
from .applications import FastAPI as FastAPI
File “/usr/lib/python3/dist-packages/fastapi/”, line 4, in
from fastapi import routing
File “/usr/lib/python3/dist-packages/fastapi/”, line 23, in
from fastapi.dependencies.models import Dependant
File “/usr/lib/python3/dist-packages/fastapi/dependencies/”, line 3, in
from import SecurityBase
File “/usr/lib/python3/dist-packages/fastapi/security/”, line 1, in
from .api_key import APIKeyCookie as APIKeyCookie
File “/usr/lib/python3/dist-packages/fastapi/security/”, line 3, in
from fastapi.openapi.models import APIKey, APIKeyIn
File “/usr/lib/python3/dist-packages/fastapi/openapi/”, line 103, in
class Schema(BaseModel):
File “/usr/lib/python3/dist-packages/pydantic/”, line 291, in new
cls.signature = ClassAttribute(‘signature’, generate_model_signature(cls.init, fields, config))
File “/usr/lib/python3/dist-packages/pydantic/”, line 256, in generate_model_signature
merged_params[param_name] = Parameter(
File “/usr/lib/python3.11/”, line 2722, in init
raise ValueError(‘{!r} is not a valid parameter name’.format(name))
ValueError: ‘not’ is not a valid parameter name

does any person have the same issues and how he fix it

I am getting the exact same issue and can’t find anything that helps all videos are outdated. Also, when I try to run starkiller or powershell empire directly from kali it fails due to this same error.