Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1907464 - python-jupyter-console fails to build with Python 3.10: pexpect.exceptions.EOF: End Of File (EOF). Braindead platform.
Summary: python-jupyter-console fails to build with Python 3.10: pexpect.exceptions.EO...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-jupyter-console
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Elliott Sales de Andrade
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.10
TreeView+ depends on / blocked
 
Reported: 2020-12-14 14:55 UTC by Tomáš Hrnčiar
Modified: 2021-03-21 10:50 UTC (History)
4 users (show)

Fixed In Version: python-jupyter-console-6.3.0-1.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-03-21 07:06:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2020-12-14 14:55:30 UTC
python-jupyter-console fails to build with Python 3.10.0a3.

======================================================================
ERROR: test that `jupyter console` starts a terminal
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/usr/lib/python3.10/site-packages/ipython_genutils/testing/decorators.py", line 186, in skipper_func
    return f(*args, **kwargs)
  File "/builddir/build/BUILD/jupyter_console-6.2.0/jupyter_console/tests/test_console.py", line 20, in test_console_starts
    p, pexpect, t = start_console()
  File "/builddir/build/BUILD/jupyter_console-6.2.0/jupyter_console/tests/test_console.py", line 71, in start_console
    idx = p.expect(r'In \[\d+\]', timeout=t)
  File "/usr/lib/python3.10/site-packages/pexpect/spawnbase.py", line 343, in expect
    return self.expect_list(compiled_pattern_list,
  File "/usr/lib/python3.10/site-packages/pexpect/spawnbase.py", line 372, in expect_list
    return exp.expect_loop(timeout)
  File "/usr/lib/python3.10/site-packages/pexpect/expect.py", line 179, in expect_loop
    return self.eof(e)
  File "/usr/lib/python3.10/site-packages/pexpect/expect.py", line 122, in eof
    raise exc
pexpect.exceptions.EOF: End Of File (EOF). Braindead platform.
<pexpect.pty_spawn.spawn object at 0x7f1d7c2777f0>
command: /usr/bin/python3
args: ['/usr/bin/python3', '-m', 'jupyter_console', '--colors=NoColor']
buffer (last 100 chars): b''
before (last 100 chars): b"interact' was never awaited\r\n[IPKernelApp] WARNING | Parent appears to have exited, shutting down.\r\n"
after: <class 'pexpect.exceptions.EOF'>
match: None
match_index: None
exitstatus: 1
flag_eof: True
pid: 11758
child_fd: 6
closed: False
timeout: 30
delimiter: <class 'pexpect.exceptions.EOF'>
logfile: None
logfile_read: None
logfile_send: None
maxread: 2000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0.05
delayafterclose: 0.1
delayafterterminate: 0.1
searcher: searcher_re:
    0: re.compile(b'In \\[\\d+\\]')

======================================================================
ERROR: Ensure display protocol plain/text key is supported
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/builddir/build/BUILD/jupyter_console-6.2.0/jupyter_console/tests/test_console.py", line 36, in test_display_text
    p, pexpect, t = start_console()
  File "/builddir/build/BUILD/jupyter_console-6.2.0/jupyter_console/tests/test_console.py", line 71, in start_console
    idx = p.expect(r'In \[\d+\]', timeout=t)
  File "/usr/lib/python3.10/site-packages/pexpect/spawnbase.py", line 343, in expect
    return self.expect_list(compiled_pattern_list,
  File "/usr/lib/python3.10/site-packages/pexpect/spawnbase.py", line 372, in expect_list
    return exp.expect_loop(timeout)
  File "/usr/lib/python3.10/site-packages/pexpect/expect.py", line 179, in expect_loop
    return self.eof(e)
  File "/usr/lib/python3.10/site-packages/pexpect/expect.py", line 122, in eof
    raise exc
pexpect.exceptions.EOF: End Of File (EOF). Braindead platform.
<pexpect.pty_spawn.spawn object at 0x7f1d7bc66340>
command: /usr/bin/python3
args: ['/usr/bin/python3', '-m', 'jupyter_console', '--colors=NoColor']
buffer (last 100 chars): b''
before (last 100 chars): b"interact' was never awaited\r\n[IPKernelApp] WARNING | Parent appears to have exited, shutting down.\r\n"
after: <class 'pexpect.exceptions.EOF'>
match: None
match_index: None
exitstatus: 1
flag_eof: True
pid: 11780
child_fd: 7
closed: False
timeout: 30
delimiter: <class 'pexpect.exceptions.EOF'>
logfile: None
logfile_read: None
logfile_send: None
maxread: 2000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0.05
delayafterclose: 0.1
delayafterterminate: 0.1
searcher: searcher_re:
    0: re.compile(b'In \\[\\d+\\]')

----------------------------------------------------------------------
Ran 9 tests in 9.269s

FAILED (SKIP=1, errors=2)

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/01827030-python-jupyter-console/

For all our attempts to build python-jupyter-console with Python 3.10, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/python-jupyter-console/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.10:
https://copr.fedorainfracloud.org/coprs/g/python/python3.10/

Let us know here if you have any questions.

Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Ben Cotton 2021-02-09 15:34:18 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.

Comment 2 Elliott Sales de Andrade 2021-03-21 07:06:24 UTC
Appears to have been fixed in latest version, probably from switch to pytest.

Comment 3 Miro Hrončok 2021-03-21 10:50:46 UTC
Awesome, thanks!


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