ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Bittmann (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-13511) setup.py in python does not ambari_client include modules in subdirectories 'core' and 'model'
Date Thu, 22 Oct 2015 13:48:27 GMT

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

Mark Bittmann commented on AMBARI-13511:
----------------------------------------

Looks like this failed QA due to lack of tests. I don't see any existing automated tests around
packaging the python client, and none of my changes impact any of the existing unit tests.
I would welcome suggestions on testing the package generation.

In looking further into the codebase, it appears that there hasn't been much activity on the
python client. For example, it still uses the /stacks2 endpoint (removed in Ambari 2.0) in
this file: ambari/ambari-client/python-client/src/main/python/ambari_client/model/paths.py

Is the the python client still supported? 

> setup.py in python does not ambari_client include modules in subdirectories 'core' and
'model'
> ----------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-13511
>                 URL: https://issues.apache.org/jira/browse/AMBARI-13511
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-client
>    Affects Versions: trunk
>            Reporter: Mark Bittmann
>            Priority: Minor
>         Attachments: AMBARI-13511.patch
>
>
> After running 'python setup.py install', the python modules in the subdirectories 'core'
and 'model' are not available. This appears to affect the current distribution hosted on pypi
as well (ambari_client 1.0.3-SNAPSHOT). I have created a patch file and will upload. 
> Below is the error message: 
> >>> from ambari_client import ambari_api
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "build/bdist.macosx-10.10-x86_64/egg/ambari_client/ambari_api.py", line 19, in
<module>
> ImportError: No module named core.http_client 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message