/usr/share/python/pyversions.py defines requested_versions(), which
returns either a list:
 versions = [current]
or a set:
 versions = vinfo['versions'].intersection(supported)

Then /usr/bin/pycentral calls that function, and expects it to return a list:
 def set_default_runtime_from_version_info(self):
     versions = pyversions.requested_versions(self.version_field,
version_only=True)
     self.default_runtime = get_runtime_for_version(versions[0])

When I run it, versions is Set(['2.4']) <class 'sets.Set'>, and so
trying to evaluate versions[0] causes TypeError: unindexable object.

I guess the solution is to make requested_versions() always return a
list, but I don't know.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to