Bug 50495 - NameError: name '__path__' is not defined
NameError: name '__path__' is not defined
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 4.4
Other Linux
: P5 normal (vote)
: UCS 4.4-2-errata
Assigned To: Jürn Brodersen
Florian Best
:
Depends on:
Blocks: 50514
  Show dependency treegraph
 
Reported: 2019-11-14 10:45 CET by Erik Damrose
Modified: 2019-11-18 16:09 CET (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 4: Will affect most installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.571
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Regression
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Damrose univentionstaff 2019-11-14 10:45:36 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 +++
Comment 1 Jürn Brodersen univentionstaff 2019-11-14 11:01:07 CET
[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__)
'''
Comment 2 Florian Best univentionstaff 2019-11-14 11:09:49 CET
OK: Works
OK: YAML
Comment 3 Erik Damrose univentionstaff 2019-11-14 11:26:51 CET
<http://errata.software-univention.de/ucs/4.4/350.html>