Univention Bugzilla – Bug 37403
AttributeError: 'NoneCandidate' object has no attribute 'section'
Last modified: 2015-01-22 11:53:39 CET
Traceback: Die Ausführung des Kommandos appcenter/packages/get ist fehlgeschlagen: Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/univention/management/console/modules/__init__.py", line 176, in _decorated return function(self, request, *args, **kwargs) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 316, in _response result = _multi_response(self, request) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 460, in _response return list(function(self, iterator, *nones)) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 282, in _fake_func yield function(self, *args) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/__init__.py", line 401, in packages_get return self._package_to_dict(package, full=True) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/__init__.py", line 527, in _package_to_dict result['section'] = candidate.section AttributeError: 'NoneCandidate' object has no attribute 'section' Remark: seit dem Update auf Univention Corporate Server 4.0 funktioniert unsere PLUCS-Installation nicht mehr. Ich habe versucht diese neu zu installieren, was zu dem gemeldeten Fehler führt. Version: 4.0-0 errata10 (Walle)
A customer reported this issue also at Ticket #2014110621000331.
*** Bug 37531 has been marked as a duplicate of this bug. ***
(In reply to Dirk Wiesenthal from comment #2) > *** Bug 37531 has been marked as a duplicate of this bug. *** reported again.
Fixed in univention-management-console-module-appcenter 4.1.19-7.309.201501200113
REOPEN: Traceback (most recent call last): … File "/usr/lib/pymodules/python2.7/univention/management/console/modules/appcenter/__init__.py", line 72, in __init__ self.summary = self.version = self.description, self.section = _('Package not found in repository') ValueError: too many values to unpack
Please also add self.priority to NoneCandidate otherwise we will experience another failure.
Fixed. YAML added
OK: I reproduced the problem in the following way: * install any app * open the "Package Management" module * search for a package shipped by the app * remove the app * switch tab back to "Package Management" * open the details of the package (packages/get) → it contains now the correct "Package not found in repository" * Trigger a new search for the package → (packages/query) → "Package not found in repository" also in the description. YAML: OK
<http://errata.univention.de/ucs/4.0/48.html>