Bug ID 935038
Summary Import failed hook breaks Python 3 programs
Classification openSUSE
Product openSUSE Factory
Version 201505*
Hardware Other
OS Other
Status NEW
Severity Critical
Priority P5 - None
Component Other
Assignee bnc-team-screening@forge.provo.novell.com
Reporter lbeltrame@kde.org
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

The current import failed hook completely breaks third party modules when
Python 3 is used.

python3
Python 3.4.3 (default, Mar 27 2015, 02:30:53) [GCC] on linux
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
  File "/etc/pythonstart", line 7, in <module>
    import readline
  File "/usr/lib64/python3.4/_import_failed/readline.py", line 17, in <module>
    to install it.""".format(__name__, package))
ImportError: Module 'readline' is not installed.
Use:
  sudo zypper install python3

The issue is that it occurs also when running scripts or programs, that
suddenly fail to find working imports like sqlite3.

Everything boils down to the import hook
/usr/lib64/python3.4/site-packages/zzzz-import-failed-hooks.pth. If removed,
things start moving gain.


You are receiving this mail because: