[
https://issues.apache.org/jira/browse/AMBARI-6365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14104516#comment-14104516
]
Eron Wright commented on AMBARI-6365:
--------------------------------------
I experienced a similar issue related to the password supplied to the
AmbariClient constructor (which is in turn passed to 'setopt'). The
workaround is to convert the string to ASCII:
{code}
client = AmbariClient(
server['host'], int(server['port']),
server['user'].encode('ascii'), server['password'].encode('ascii'),
version=1)
{code}
> python client :invalid arguments to setopt
> ------------------------------------------
>
> Key: AMBARI-6365
> URL: https://issues.apache.org/jira/browse/AMBARI-6365
> Project: Ambari
> Issue Type: Improvement
> Reporter: subin
> Assignee: subin
>
> self.c.setopt(pycurl.CUSTOMREQUEST, None)
> TypeError: invalid arguments to setopt
> change to c.setopt(pycurl.CUSTOMREQUEST, "")
--
This message was sent by Atlassian JIRA
(v6.2#6252)