On my machine (Ubuntu 12.04 with enablement stack) I could trace the
error
oneconf.networksync:Invalid package data from server
This comes from:
/usr/lib/python2.7/dist-packages/oneconf/networksync
starting in line 89
def list_packages(self, machine_uuid):
"""List all packages for that machine"""
package_list = self._get('packages/%s/' % machine_uuid,
scheme=AUTHENTICATED_API_SCHEME)
if not package_list:
raise APIError('Package list empty')
# FIXME: need to do this hack to transform the http request to a json
format content
try:
package_list = json.loads(package_list[1:-1].replace("'",
'"').replace("True", "true").replace("False", 'false'))
except ValueError, e:
raise APIError('Package list invalid: %s' % e)
return package_list
The #FIXME is not enough, because the server delivers a kind of unicode string.
json.loads(package_list[1:-1].replace("u'", "'").replace("'",
'"').replace("True", "true").replace("False", 'false')
does it for me
** Attachment added: "infraclient_pristine.py"
https://bugs.launchpad.net/ubuntu/+source/oneconf/+bug/1165104/+attachment/4093725/+files/infraclient_pristine.py
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1165104
Title:
oneconf is only showing the pc you are on in raring and isn't sharing
to other machines
To manage notifications about this bug go to:
https://bugs.launchpad.net/hundredpapercuts/+bug/1165104/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs