Hi Philip, Could you also confirm which version of juju (`juju version`) and jujuclient (pip3 list|grep jujuclient)
Thanks! Adam Israel - Software Engineer Canonical Ltd. http://juju.ubuntu.com/ - Automate your Cloud Infrastructure > On Jan 29, 2016, at 9:06 PM, Adam Israel <adam.isr...@canonical.com> wrote: > > Hi Philip, > > Is it possible for you to pastebin or send the code you’re using that > triggers this error? I’d like to track this down and get a fix out for you > ASAP. > > Thanks! > -- > Adam Israel - Software Engineer > Canonical Ltd. > http://juju.ubuntu.com/ <http://juju.ubuntu.com/> - Automate your Cloud > Infrastructure > >> On Jan 29, 2016, at 8:31 PM, Philip Joseph <jphili...@gmail.com >> <mailto:jphili...@gmail.com>> wrote: >> >> Hi, >> >> I am seeing an error in jujuclient when using python3: >> >> Traceback (most recent call last): >> File "./juju-ctrl.py", line 579, in <module> >> api.execute() >> File "./juju-ctrl.py", line 476, in execute >> self.deploy_service(service, details) >> File "./juju-ctrl.py", line 289, in deploy_service >> result = self.env.add_local_charm_dir(deploy['directory'], series) >> File "/usr/lib/python3.4/site-packages/jujuclient.py", line 578, in >> add_local_charm_dir >> fh, series, os.stat(fh.name).st_size) >> File "/usr/lib/python3.4/site-packages/jujuclient.py", line 586, in >> add_local_charm >> conn, headers, path_prefix = self._http_conn() >> File "/usr/lib/python3.4/site-packages/jujuclient.py", line 561, in >> _http_conn >> '%(user)s:%(password)s' % (self._creds))} >> File "/usr/lib64/python3.4/base64.py", line 62, in b64encode >> encoded = binascii.b2a_base64(s)[:-1] >> TypeError: 'str' does not support the buffer interface >> >> The error is seen when charm is to be downloaded to juju using HTTP >> connection. The script works correctly with python 2. I am using jujuclient >> (0.50.4) on fedora. >> >> Anyone workaround for this. >> >> Regards, >> Philip >> >> -- >> Juju mailing list >> Juju@lists.ubuntu.com <mailto:Juju@lists.ubuntu.com> >> Modify settings or unsubscribe at: >> https://lists.ubuntu.com/mailman/listinfo/juju >
smime.p7s
Description: S/MIME cryptographic signature
-- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju