Repository navigation
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Using python version greater than 3.11 breaks the current implementation.
Here some logs to help debugging:
python -m edge_mining
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/Users/gabrielevernetti/Documents/development/edge-mining/core/edge_mining/__main__.py", line 21, in <module>
from edge_mining.bootstrap import configure_dependencies
File "/Users/gabrielevernetti/Documents/development/edge-mining/core/edge_mining/bootstrap.py", line 26, in <module>
from edge_mining.adapters.infrastructure.homeassistant.homeassistant_api import ServiceHomeAssistantAPI
File "/Users/gabrielevernetti/Documents/development/edge-mining/core/edge_mining/adapters/infrastructure/homeassistant/homeassistant_api.py", line 23, in <module>
from homeassistant_api import Client
File "/Users/gabrielevernetti/Documents/development/edge-mining/core/venv/lib/python3.13/site-packages/homeassistant_api/__init__.py", line 26, in <module>
from .client import Client
File "/Users/gabrielevernetti/Documents/development/edge-mining/core/venv/lib/python3.13/site-packages/homeassistant_api/client.py", line 5, in <module>
from .rawasyncclient import RawAsyncClient
File "/Users/gabrielevernetti/Documents/development/edge-mining/core/venv/lib/python3.13/site-packages/homeassistant_api/rawasyncclient.py", line 26, in <module>
from .models import Domain, Entity, Event, Group, History, LogbookEntry, State
File "/Users/gabrielevernetti/Documents/development/edge-mining/core/venv/lib/python3.13/site-packages/homeassistant_api/models/__init__.py", line 3, in <module>
from .domains import Domain, Service, ServiceField
File "/Users/gabrielevernetti/Documents/development/edge-mining/core/venv/lib/python3.13/site-packages/homeassistant_api/models/domains.py", line 15, in <module>
class Domain(BaseModel):
...<54 lines>...
return super().__getattribute__(attr)
File "/Users/gabrielevernetti/Documents/development/
863C
edge-mining/core/venv/lib/python3.13/site-packages/pydantic/_internal/_model_construction.py", line 114, in __new__
private_attributes = inspect_namespace(
namespace, config_wrapper.ignored_types, class_vars, base_field_names
)
File "/Users/gabrielevernetti/Documents/development/edge-mining/core/venv/lib/python3.13/site-packages/pydantic/_internal/_model_construction.py", line 448, in inspect_namespace
ann_type = eval_type_backport(
ForwardRef(ann_type), globalns=frame.f_globals, localns=frame.f_locals
)
File "/Users/gabrielevernetti/Documents/development/edge-mining/core/venv/lib/python3.13/site-packages/pydantic/_internal/_typing_extra.py", line 279, in eval_type_backport
return _eval_type_backport(value, globalns, localns, type_params)
File "/Users/gabrielevernetti/Documents/development/edge-mining/core/venv/lib/python3.13/site-packages/pydantic/_internal/_typing_extra.py", line 303, in _eval_type_backport
return _eval_type(value, globalns, localns, type_params)
File "/Users/gabrielevernetti/Documents/development/edge-mining/core/venv/lib/python3.13/site-packages/pydantic/_internal/_typing_extra.py", line 328, in _eval_type
return typing._eval_type( # type: ignore
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
value, globalns, localns, type_params=type_params
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/Cellar/python@3.13/3.13.0_1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/typing.py", line 474, in _eval_type
return t._evaluate(globalns, localns, type_params, recursive_guard=recursive_guard)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/python@3.13/3.13.0_1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/typing.py", line 1081, in _evaluate
eval(self.__forward_code__, globalns, localns),
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 1, in <module>
NameError: name 'Client' is not defined
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
- StatusShow more project fieldsNo status
Activity