Univention Bugzilla – Bug 38297
AttributeError in admin.modules.update()
Last modified: 2015-07-03 14:10:20 CEST
We received the following traceback, 4.0-0 errata17 (Walle): Konnte das Modul udm nicht laden: 'module' object has no attribute 'module' Traceback (most recent call last): File "%PY2.7%/univention/management/console/protocol/modserver.py", line 100, in _load_module self.__module = __import__(file_, [], [], modname) File "%PY2.7%/univention/management/console/modules/udm/__init__.py", line 69, in <module> from .udm_ldap import ( File "%PY2.7%/univention/management/console/modules/udm/udm_ldap.py", line 69, in <module> udm_modules.update() File "%PY2.7%/univention/admin/modules.py", line 92, in update os.path.walk(dir, _walk, p) File "/usr/lib/python2.7/posixpath.py", line 246, in walk walk(name, func, arg) File "/usr/lib/python2.7/posixpath.py", line 238, in walk func(arg, top, names) File "%PY2.7%/univention/admin/modules.py", line 78, in _walk modules[m.module]=m AttributeError: 'module' object has no attribute 'module'
Just ignoring these modules (probably occurs during development). touch /usr/lib/pymodules/python2.7/univention/admin/handlers/users/foo.py touch /usr/share/pyshared/univention/admin/handlers/users/foo.py python >>> import univention.debug >>> univention.debug.init('stderr', True, True) 13.05.15 18:14:21.167 DEBUG_INIT <open file 'stderr', mode 'a+' at 0x7fa714e254b0> >>> import univention.admin.modules >>> univention.admin.modules.update() 13.05.15 18:14:39.764 ADMIN ( ERROR ) : admin.modules.update: attribute "module" is missing in module 'univention.admin.handlers.users.foo' echo 'module = "users/foo"' > /usr/share/pyshared/univention/admin/handlers/users/foo.py → no followup errors in update() Fix: svn r60938 YAML: 2015-05-28-univention-directory-manager-modules.yaml
Fix: OK Yaml: OK
<http://errata.univention.de/ucs/4.0/217.html>