URL: https://github.com/freeipa/freeipa/pull/272
Title: #272: Build: makerpms.sh generates Python 2 & 3 packages at the same time
martbab commented:
"""
Yep, running `ipa ping` on Fedora 25 confirms this:
```
# ipa ping
ipa: ERROR: AttributeError: 'str' object has no attribute 'decode'
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/ipaclient/remote_plugins/__init__.py",
line 109, in get_package
plugins = api._remote_plugins
AttributeError: 'API' object has no attribute '_remote_plugins'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/ipalib/cli.py", line 1348, in run
api.finalize()
File "/usr/lib/python3.5/site-packages/ipalib/plugable.py", line 714, in
finalize
self.__do_if_not_done('load_plugins')
File "/usr/lib/python3.5/site-packages/ipalib/plugable.py", line 421, in
__do_if_not_done
getattr(self, name)()
File "/usr/lib/python3.5/site-packages/ipalib/plugable.py", line 592, in
load_plugins
for package in self.packages:
File "/usr/lib/python3.5/site-packages/ipalib/__init__.py", line 919, in
packages
ipaclient.remote_plugins.get_package(self),
File "/usr/lib/python3.5/site-packages/ipaclient/remote_plugins/__init__.py",
line 111, in get_package
server_info = ServerInfo(api)
File "/usr/lib/python3.5/site-packages/ipaclient/remote_plugins/__init__.py",
line 25, in __init__
hostname = DNSName(api.env.server).ToASCII()
File "/usr/lib/python3.5/site-packages/ipapython/dnsutil.py", line 74, in
ToASCII
return self.to_text().decode('ascii') # must be unicode string
AttributeError: 'str' object has no attribute 'decode'
ipa: ERROR: an internal error has occurred
```
"""
See the full comment at
https://github.com/freeipa/freeipa/pull/272#issuecomment-266018649
--
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code