#32493 closed defect (fixed)

Add missing dependencies for Python packages revealed by #32492

Reported by: Matthias Köppe Owned by:
Priority: major Milestone: sage-9.5
Component: build Keywords:
Cc: Dima Pasechnik Merged in:
Authors: Matthias Koeppe Reviewers: Dima Pasechnik
Report Upstream: N/A Work issues:
Branch: 8a314c2 (Commits, GitHub, GitLab) Commit: 8a314c2043dcea51d05b904b77dbb72e1549cf6c
Dependencies: #31280 Stopgaps:

Status badges

Description (last modified by Matthias Köppe)

After reinstalling the Python packages using the instructions shown in #32492:

$ grep -B2 -r "Warning.*try.*no-deps" logs/pkgs
logs/pkgs/html5lib-1.0.1.log-pip._internal.exceptions.DistributionNotFound: No matching distribution found for webencodings
logs/pkgs/html5lib-1.0.1.log-Removed build tracker: '/private/var/folders/38/wnh4gf1552g_crsjnv2vmmww0000gp/T/pip-req-tracker-tafh_kg_'
logs/pkgs/html5lib-1.0.1.log:Warning: installing with "python3 -m pip install --verbose --no-index --find-links=/Users/mkoeppe/s/sage/sage-rebasing/worktree-rebase/venv-32492/var/lib/sage/wheels --disable-pip-version-check --isolated --no-cache-dir" failed. Retrying, adding "--no-deps --ignore-installed"
--
logs/pkgs/importlib_resources-5.1.4.log-pip._internal.exceptions.DistributionNotFound: No matching distribution found for zipp>=3.1.0; python_version < "3.10"
logs/pkgs/importlib_resources-5.1.4.log-Removed build tracker: '/private/var/folders/38/wnh4gf1552g_crsjnv2vmmww0000gp/T/pip-req-tracker-3gqjedfc'
logs/pkgs/importlib_resources-5.1.4.log:Warning: installing with "python3 -m pip install --verbose --no-index --find-links=/Users/mkoeppe/s/sage/sage-rebasing/worktree-rebase/venv-32492/var/lib/sage/wheels --disable-pip-version-check --isolated --no-cache-dir" failed. Retrying, adding "--no-deps --ignore-installed"
--
logs/pkgs/bleach-3.1.5.log-pip._internal.exceptions.DistributionNotFound: No matching distribution found for packaging
logs/pkgs/bleach-3.1.5.log-Removed build tracker: '/private/var/folders/38/wnh4gf1552g_crsjnv2vmmww0000gp/T/pip-req-tracker-v0hoaj95'
logs/pkgs/bleach-3.1.5.log:Warning: installing with "python3 -m pip install --verbose --no-index --find-links=/Users/mkoeppe/s/sage/sage-rebasing/worktree-rebase/venv-32492/var/lib/sage/wheels --disable-pip-version-check --isolated --no-cache-dir" failed. Retrying, adding "--no-deps --ignore-installed"
--
logs/pkgs/sagenb_export-3.3.log-pip._internal.exceptions.DistributionNotFound: No matching distribution found for notebook
logs/pkgs/sagenb_export-3.3.log-Removed build tracker: '/private/var/folders/38/wnh4gf1552g_crsjnv2vmmww0000gp/T/pip-req-tracker-gz3vbd0n'
logs/pkgs/sagenb_export-3.3.log:Warning: installing with "python3 -m pip install --verbose --no-index --find-links=/Users/mkoeppe/s/sage/sage-rebasing/worktree-rebase/venv-32492/var/lib/sage/wheels --disable-pip-version-check --isolated --no-cache-dir" failed. Retrying, adding "--no-deps --ignore-installed"

With the Jupyter upgrade in #31280 merged, there are a few more. We fix them all.

Change History (15)

comment:1 Changed 15 months ago by Matthias Köppe

Description: modified (diff)

comment:2 Changed 15 months ago by Matthias Köppe

Description: modified (diff)

comment:3 Changed 15 months ago by Matthias Köppe

Dependencies: #32492, #31280#31280

comment:4 Changed 15 months ago by Matthias Köppe

Branch: u/mkoeppe/add_missing_dependencies_for_python_packages_revealed_by__32492

comment:5 Changed 15 months ago by git

Commit: 0fc01d3c3ad024ab98c2968a5609cfe46c5e543a

Branch pushed to git repo; I updated commit sha1. New commits:

c929321build/pkgs/nbclient/dependencies: fixup
41224afbuild/pkgs/nbconvert/dependencies: Add missing dep
0fc01d3build/pkgs/zipp: Update to 3.5.0

comment:6 Changed 15 months ago by Matthias Köppe

Authors: Matthias Koeppe
Status: newneeds_review

Tested now with #32492 using make -j50.

comment:7 Changed 15 months ago by Matthias Köppe

Description: modified (diff)

comment:8 Changed 15 months ago by git

Commit: 0fc01d3c3ad024ab98c2968a5609cfe46c5e543a8a314c2043dcea51d05b904b77dbb72e1549cf6c

Branch pushed to git repo; I updated commit sha1. New commits:

8a314c2build/pkgs/bleach/dependencies: Add six

comment:9 Changed 15 months ago by Dima Pasechnik

how about

  • build/pkgs/ipykernel/dependencies

    a b  
    1 $(PYTHON) | ipython jupyter_client $(PYTHON_TOOLCHAIN) scandir
     1$(PYTHON) | ipython jupyter_client $(PYTHON_TOOLCHAIN) scandir debugpy
    22
    33----------
    44All lines of this file are ignored except the first.

comment:10 in reply to:  9 Changed 15 months ago by Dima Pasechnik

Replying to dimpase:

how about

  • build/pkgs/ipykernel/dependencies

    a b  
    1 $(PYTHON) | ipython jupyter_client $(PYTHON_TOOLCHAIN) scandir
     1$(PYTHON) | ipython jupyter_client $(PYTHON_TOOLCHAIN) scandir debugpy
    22
    33----------
    44All lines of this file are ignored except the first.

oops, OK, that was already in.

comment:11 Changed 15 months ago by Steven Trogdon

Perhaps a separate issue but html docs for 9.5.beta1 will not build without debugpy.

cd /local/sage-git/sage && ./sage --docbuild --no-pdf-links reference/repl inventory --no-prune-empty-dirs
Warning: Could not import sage.repl.ipython_kernel.kernel No module named 'debugpy'
[repl     ] building [inventory]: targets for 36 source files that are out of date
[repl     ] updating environment: [new config] 36 added, 0 changed, 0 removed
[repl     ] WARNING: autodoc: failed to import module 'kernel' from module 'sage.repl.ipython_kernel'; the following exception was raised:
[repl     ] No module named 'debugpy'
[repl     ] The inventory files are in local/share/doc/sage/inventory/en/reference/repl.
Error building the documentation.

and

sage: from sage.repl.ipython_kernel import kernel
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-ae6dbb0420a7> in <module>
----> 1 from sage.repl.ipython_kernel import kernel

/local/sage-git/sage/local/lib/python3.9/site-packages/sage/repl/ipython_kernel/kernel.py in <module>
     17 
     18 import sys
---> 19 from ipykernel.ipkernel import IPythonKernel
     20 from ipykernel.zmqshell import ZMQInteractiveShell
     21 from traitlets import Type

/local/sage-git/sage/local/lib/python3.9/site-packages/ipykernel/ipkernel.py in <module>
     18 from .zmqshell import ZMQInteractiveShell
     19 from .eventloops import _use_appnope
---> 20 from .debugger import Debugger
     21 from .compiler import XCachingCompiler
     22 

/local/sage-git/sage/local/lib/python3.9/site-packages/ipykernel/debugger.py in <module>
     15 
     16 # This import is required to have the next ones working...
---> 17 from debugpy.server import api
     18 from _pydevd_bundle import pydevd_frame_utils
     19 from _pydevd_bundle.pydevd_suspended_frames import SuspendedFramesManager, _FramesTracker

ModuleNotFoundError: No module named 'debugpy'

comment:12 Changed 15 months ago by Matthias Köppe

Same issue, fixed by this ticket. Needs review

comment:13 in reply to:  12 Changed 15 months ago by Steven Trogdon

Replying to mkoeppe:

Same issue, fixed by this ticket. Needs review

The updated dependencies for ipykernel do allow the docs to build.

comment:14 Changed 15 months ago by Dima Pasechnik

Reviewers: Dima Pasechnik
Status: needs_reviewpositive_review

lgtm

comment:15 Changed 15 months ago by Volker Braun

Branch: u/mkoeppe/add_missing_dependencies_for_python_packages_revealed_by__324928a314c2043dcea51d05b904b77dbb72e1549cf6c
Resolution: fixed
Status: positive_reviewclosed
Note: See TracTickets for help on using tickets.