Bug 1187199 - PowerLIne Plugin for iPython doesn't work
Summary: PowerLIne Plugin for iPython doesn't work
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Development (show other bugs)
Version: Current
Hardware: x86-64 Other
: P5 - None : Major with 5 votes (vote)
Target Milestone: ---
Assignee: Andreas Schneider
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-10 23:43 UTC by Aram Grigoryan
Modified: 2021-07-07 07:51 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aram Grigoryan 2021-06-10 23:43:10 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.
Comment 1 Aram Grigoryan 2021-07-07 07:51:23 UTC
this may help
https://bugzilla.redhat.com/show_bug.cgi?id=1554741