Univention Bugzilla – Bug 50495
NameError: name '__path__' is not defined
Last modified: 2019-11-18 16:09:29 CET
With UCS 4.4-2e349 i am seeing the following error in the listener.log: 14.11.19 10:25:54.009 LDAP ( PROCESS ) : connecting to ldap://ucsmaster.mydomain.intranet:7389 14.11.19 10:25:54.747 ADMIN ( ERROR ) : admin.hook.import_hook_files: loading '/usr/lib/python2.7/dist-packages/univention/admin/hooks.d/__init__.py' failed 14.11.19 10:25:54.747 ADMIN ( ERROR ) : admin.hook.import_hook_files: TRACEBACK: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/univention/admin/hook.py", line 54, in import_hook_files exec(fd, sys.modules[__name__].__dict__) File "/usr/lib/python2.7/dist-packages/univention/admin/hooks.d/__init__.py", line 1, in <module> __path__ = __import__('pkgutil').extend_path(__path__, __name__) NameError: name '__path__' is not defined +++ This bug was initially created as a clone of Bug #50493 +++
[4.4-2 7a55bda689] Bug #50493: Remove wrong extend_path [4.4-2 9304cdc343] Bug #50495: changelog [4.4-2 87da3eb091] Bug #50495: yaml Package: univention-directory-manager-modules Version: 14.0.14-18A~4.4.0.201911141055 Branch: ucs_4.4-0 Scope: errata4.4-2 How to reproduce: ''' fd = open('/usr/lib/python2.7/dist-packages/univention/admin/hooks.d/__init__.py', 'r') exec(fd, sys.modules[__name__].__dict__) '''
OK: Works OK: YAML
<http://errata.software-univention.de/ucs/4.4/350.html>