Bugzilla – Bug 1187199
PowerLIne Plugin for iPython doesn't work
Last modified: 2021-07-07 07:51:23 UTC
After having installed powerline and successfully configured it for both bash and vim i couldn't have it working with ipython3. So as tells the Documentation i've added these lines into the config file: ~/.ipython/profile_default/ipython_config.py from powerline.bindings.ipython.since_5 import PowerlinePrompts c = get_config() c.TerminalInteractiveShell.simple_prompt = False c.TerminalInteractiveShell.prompts_class = PowerlinePrompts but then it didn't work with the error message: [TerminalIPythonApp] ERROR | Exception while loading config file /home/aram/.ipython/profile_default/ipython_config.py Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/traitlets/config/application.py", line 563, in _load_config_files config = loader.load_config() File "/usr/lib/python3.8/site-packages/traitlets/config/loader.py", line 457, in load_config self._read_file_as_dict() File "/usr/lib/python3.8/site-packages/traitlets/config/loader.py", line 489, in _read_file_as_dict py3compat.execfile(conf_filename, namespace) File "/usr/lib/python3.8/site-packages/ipython_genutils/py3compat.py", line 198, in execfile exec(compiler(f.read(), fname, 'exec'), glob, loc) File "/home/aram/.ipython/profile_default/ipython_config.py", line 3, in <module> from powerline.bindings.ipython.since_5 import PowerlinePrompts File "/usr/lib/python3.8/site-packages/powerline/bindings/ipython/since_5.py", line 11, in <module> from powerline.bindings.ipython.post_0_11 import PowerlineMagics, ShutdownHook ModuleNotFoundError: No module named 'powerline.bindings.ipython.post_0_11' [TerminalIPythonApp] ERROR | Exception while loading config file /home/aram/.ipython/profile_default/ipython_config.py Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/traitlets/config/application.py", line 563, in _load_config_files config = loader.load_config() File "/usr/lib/python3.8/site-packages/traitlets/config/loader.py", line 457, in load_config self._read_file_as_dict() File "/usr/lib/python3.8/site-packages/traitlets/config/loader.py", line 489, in _read_file_as_dict py3compat.execfile(conf_filename, namespace) File "/usr/lib/python3.8/site-packages/ipython_genutils/py3compat.py", line 198, in execfile exec(compiler(f.read(), fname, 'exec'), glob, loc) File "/home/aram/.ipython/profile_default/ipython_config.py", line 3, in <module> from powerline.bindings.ipython.since_5 import PowerlinePrompts File "/usr/lib/python3.8/site-packages/powerline/bindings/ipython/since_5.py", line 11, in <module> from powerline.bindings.ipython.post_0_11 import PowerlineMagics, ShutdownHook ModuleNotFoundError: No module named 'powerline.bindings.ipython.post_0_11' Python 3.8.10 (default, May 05 2021, 15:36:36) [GCC] Type 'copyright', 'credits' or 'license' for more information IPython 7.22.0 -- An enhanced Interactive Python. Type '?' for help. so basically some modules are missing which should've been in place. thanks.
this may help https://bugzilla.redhat.com/show_bug.cgi?id=1554741