equinix / equinix/equinix-sdk-python

Import error "type object 'RaAttachmentSortItemProperty' has no attribute 'CHANGE_LOG_SLASH_UPDATED_DATE_TIME'"

Open Beginner friendly
#98 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3
Forks
0
Avg merge
2d 14h
Merged PRs (30d)
4

Description

SDK version: 0.19.0

We get an import error because there is a reference to CHANGE_LOG_SLASH_UPDATED_DATE_TIME, which has been updated to SLASH_CHANGE_LOG_SLASH_UPDATED_DATE_TIME.

```
>>> import equinix.services.fabricv4
Traceback (most recent call last):
File "", line 1, in
File "/opt/nautobot/lib64/python3.12/site-packages/equinix/services/fabricv4/__init__.py", line 16, in
from equinix.services.fabricv4.api.agent_templates_api import AgentTemplatesApi
File "/opt/nautobot/lib64/python3.12/site-packages/equinix/services/fabricv4/api/__init__.py", line 4, in
from equinix.services.fabricv4.api.agent_templates_api import AgentTemplatesApi
File "/opt/nautobot/lib64/python3.12/site-packages/equinix/services/fabricv4/api/agent_templates_api.py", line 21, in
from equinix.services.fabricv4.api_client import ApiClient, RequestSerialized
File "/opt/nautobot/lib64/python3.12/site-packages/equinix/services/fabricv4/api_client.py", line 27, in
import equinix.services.fabricv4.models
File "/opt/nautobot/lib64/python3.12/site-packages/equinix/services/fabricv4/models/__init__.py", line 127, in
from equinix.services.fabricv4.models.cloud_router_route_aggregations_search_base import CloudRouterRouteAggregationsSearchBase
File "/opt/nautobot/lib64/python3.12/site-packages/equinix/services/fabricv4/models/cloud_router_route_aggregations_search_base.py", line 21, in
from equinix.services.fabricv4.models.ra_attachment_sort_item import RaAttachmentSortItem
File "/opt/nautobot/lib64/python3.12/site-packages/equinix/services/fabricv4/models/ra_attachment_sort_item.py", line 23, in
class RaAttachmentSortItem(BaseModel):
File "/opt/nautobot/lib64/python3.12/site-packages/equinix/services/fabricv4/models/ra_attachment_sort_item.py", line 27, in RaAttachmentSortItem
var_property: Optional[RaAttachmentSortItemProperty] = Field(default=RaAttachmentSortItemProperty.CHANGE_LOG_SLASH_UPDATED_DATE_TIME, alias="property")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'RaAttachmentSortItemProperty' has no attribute 'CHANGE_LOG_SLASH_UPDATED_DATE_TIME'. Did you mean: 'SLASH_CHANGE_LOG_SLASH_UPDATED_DATE_TIME'?
>>>
```

Contributor guide

Open the contributing guide

Research direction

Start with equinix/services/fabricv4/models/ra_attachment_sort_item.py and inspect the RaAttachmentSortItemProperty definition referenced in the traceback. Check the related generated model files for the expected property naming, then verify that importing equinix.services.fabricv4 succeeds and no longer raises the reported AttributeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.