Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1689966 - [abrt] python3-ipykernel: module(): interactiveshell.py:22:<module>:ImportError: cannot import name 'create_prompt_application' from 'prompt_toolkit.shortcuts' (/usr/local/lib/python3.7/site-packages/prompt_toolkit/shortcuts/__init__.py) [NEEDINFO]
Summary: [abrt] python3-ipykernel: module(): interactiveshell.py:22:<module>:ImportErr...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-ipykernel
Version: 29
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Paulo Andrade
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:62d262f0d004c85ca055b761b82...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-18 14:27 UTC by James McDermott
Modified: 2019-04-09 10:03 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
mhroncok: needinfo? (jammcder)


Attachments (Terms of Use)
File: backtrace (deleted)
2019-03-18 14:27 UTC, James McDermott
no flags Details
File: cgroup (deleted)
2019-03-18 14:27 UTC, James McDermott
no flags Details
File: cpuinfo (deleted)
2019-03-18 14:27 UTC, James McDermott
no flags Details
File: environ (deleted)
2019-03-18 14:27 UTC, James McDermott
no flags Details
File: mountinfo (deleted)
2019-03-18 14:27 UTC, James McDermott
no flags Details
File: namespaces (deleted)
2019-03-18 14:27 UTC, James McDermott
no flags Details
File: open_fds (deleted)
2019-03-18 14:27 UTC, James McDermott
no flags Details

Description James McDermott 2019-03-18 14:27:13 UTC
Description of problem:
Fire off jupyter notebook.
Open any notebook, or create a new notebook

Version-Release number of selected component:
python3-ipykernel-4.8.2-4.fc29

Additional info:
reporter:       libreport-2.10.0
cmdline:        /usr/bin/python3 -m ipykernel_launcher -f /run/user/1000/jupyter/kernel-25208289-e79e-4a8a-93b5-722c0e69dbd8.json
crash_function: module
exception_type: ImportError
executable:     /usr/lib/python3.7/site-packages/ipykernel_launcher.py
interpreter:    python3-3.7.2-4.fc29.x86_64
kernel:         4.20.15-200.fc29.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
#1 [/usr/lib/python3.7/site-packages/IPython/terminal/interactiveshell.py:22] <module>
#2 [/usr/lib/python3.7/site-packages/IPython/terminal/embed.py:16] <module>
#3 [/usr/lib/python3.7/site-packages/IPython/__init__.py:55] <module>
#4 [/usr/lib/python3.7/site-packages/ipykernel/connect.py:13] <module>
#5 [/usr/lib/python3.7/site-packages/ipykernel/__init__.py:2] <module>
#6 [/usr/lib/python3.7/site-packages/ipykernel_launcher.py:15] <module>
#7 [/usr/lib64/python3.7/runpy.py:85] _run_code
#8 [/usr/lib64/python3.7/runpy.py:193] _run_module_as_main

Comment 1 James McDermott 2019-03-18 14:27:15 UTC
Created attachment 1545282 [details]
File: backtrace

Comment 2 James McDermott 2019-03-18 14:27:16 UTC
Created attachment 1545283 [details]
File: cgroup

Comment 3 James McDermott 2019-03-18 14:27:17 UTC
Created attachment 1545284 [details]
File: cpuinfo

Comment 4 James McDermott 2019-03-18 14:27:18 UTC
Created attachment 1545285 [details]
File: environ

Comment 5 James McDermott 2019-03-18 14:27:18 UTC
Created attachment 1545286 [details]
File: mountinfo

Comment 6 James McDermott 2019-03-18 14:27:19 UTC
Created attachment 1545287 [details]
File: namespaces

Comment 7 James McDermott 2019-03-18 14:27:20 UTC
Created attachment 1545288 [details]
File: open_fds

Comment 8 Miro Hrončok 2019-04-09 10:03:21 UTC
Traceback (most recent call last):
  File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.7/site-packages/ipykernel_launcher.py", line 15, in <module>
    from ipykernel import kernelapp as app
  File "/usr/lib/python3.7/site-packages/ipykernel/__init__.py", line 2, in <module>
    from .connect import *
  File "/usr/lib/python3.7/site-packages/ipykernel/connect.py", line 13, in <module>
    from IPython.core.profiledir import ProfileDir
  File "/usr/lib/python3.7/site-packages/IPython/__init__.py", line 55, in <module>
    from .terminal.embed import embed
  File "/usr/lib/python3.7/site-packages/IPython/terminal/embed.py", line 16, in <module>
    from IPython.terminal.interactiveshell import TerminalInteractiveShell
  File "/usr/lib/python3.7/site-packages/IPython/terminal/interactiveshell.py", line 22, in <module>
    from prompt_toolkit.shortcuts import create_prompt_application, create_eventloop, create_prompt_layout, create_output
ImportError: cannot import name 'create_prompt_application' from 'prompt_toolkit.shortcuts' (/usr/local/lib/python3.7/site-packages/prompt_toolkit/shortcuts/__init__.py)



This code was removed from ipython in 7.0.0: https://github.com/ipython/ipython/pull/11177

Yet we don't have prompt_toolkit 2 in Fedora 29.

Could you please try:

  $ rpm -q python3-prompt-toolkit 
  $ rpm -q python3-prompt_toolkit 
  $ python3 -c 'import prompt_toolkit; print(prompt_toolkit.__file__)'
  $ python3 -c 'import prompt_toolkit; print(prompt_toolkit.__version__)'


Note You need to log in before you can comment on or make changes to this bug.