[ 
https://issues.apache.org/jira/browse/ATLAS-4927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17900484#comment-17900484
 ] 

ASF subversion and git services commented on ATLAS-4927:
--------------------------------------------------------

Commit 69908e7834dd7673e1d544cfad5a287c0e3147af in atlas's branch 
refs/heads/branch-2.0 from Madhan Neethiraj
[ https://gitbox.apache.org/repos/asf?p=atlas.git;h=69908e783 ]

ATLAS-4927: Fix failure in Python API EntityClient.get_classifications()

(cherry picked from commit d6cec1683568176434d57d1f2b2fbfb487b827e4)


> Python: EntityClient.get_classifications(guid) fails with error "type object 
> 'Plist' has no attribute 'list'"
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-4927
>                 URL: https://issues.apache.org/jira/browse/ATLAS-4927
>             Project: Atlas
>          Issue Type: Bug
>          Components: atlas-intg
>            Reporter: Madhan Neethiraj
>            Assignee: Madhan Neethiraj
>            Priority: Major
>             Fix For: 3.0.0, 2.4.0
>
>         Attachments: ATLAS-4927.patch
>
>
>  
> {code:python}
> atlas = AtlasClient(atlas_url, atlas_auth)
> classifications = atlas.entity.get_classifications('1234-5678-90ab-cdef')
> {code}
> {code:python}
> Exception occurred while parsing response
> Traceback (most recent call last):
>   File "\Lib\site-packages\apache_atlas\client\base_client.py", line 95, in 
> call_api
>     return type_coerce(response.json(), response_type)
>   File "\Lib\site-packages\apache_atlas\utils.py", line 74, in type_coerce
>     ret.type_coerce_attrs()
>     ~~~~~~~~~~~~~~~~~~~~~^^
>   File "\Lib\site-packages\apache_atlas\model\instance.py", line 236, in 
> type_coerce_attrs
>     Plist.list = type_coerce_list(Plist.list, AtlasClassification)
>                                   ^^^^^^^^^^
> AttributeError: type object 'Plist' has no attribute 'list'
>  {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to