here, "ModuleNotFoundError: No module named 'jupyter_core'" seems to indicate that the error was earlier.
By the way, please review https://github.com/sagemath/sage/pull/39985 On Thu, May 1, 2025 at 11:06 AM David Coudert <[email protected]> wrote: > Using https://github.com/sagemath/sage/pull/40033 and --with-system-flint=no > fix the issue with flint and singular. > > Using in addition https://github.com/sagemath/sage/pull/39985, I can also > compile linbox. > > But now it’s failing to compile ipykernel. > > > [ipykernel-6.27.1] Using cached file > /Users/dcoudert/sage/upstream/ipykernel-6.27.1.tar.gz > > [ipykernel-6.27.1] Setting up build directory > /Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/var/tmp/sage/build/ipykernel-6.27.1 > > [ipykernel-6.27.1] No patch files found in ../patches > > [ipykernel-6.27.1] Host system: Darwin MAC-04017247 24.4.0 Darwin Kernel > Version 24.4.0: Fri Apr 11 18:33:47 PDT 2025; > root:xnu-11417.101.15~117/RELEASE_ARM64_T6000 arm64 > > [ipykernel-6.27.1] C compiler: gcc, Apple clang version 17.0.0 > (clang-1700.0.13.3), Target: arm64-apple-darwin24.4.0, Thread model: posix, > InstalledDir: > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin > > [ipykernel-6.27.1] No stamp file for package 'ipykernel' in > /Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/var/lib/sage/installed > > [ipykernel-6.27.1] No spkg-legacy-uninstall script; nothing to do > > [ipykernel-6.27.1] [spkg-install] Installing ipykernel-6.27.1 > > [ipykernel-6.27.1] [spkg-install] * Creating isolated environment: > venv+pip... > > [ipykernel-6.27.1] [spkg-install] * Installing packages in isolated > environment: > > [ipykernel-6.27.1] [spkg-install] - hatchling>=1.4 > > [ipykernel-6.27.1] [spkg-install] - jupyter_client>=6 > > [ipykernel-6.27.1] [spkg-install] > > /Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/bin/python3 -m pip > > [ipykernel-6.27.1] [spkg-install] --python > /private/var/folders/hw/w6ldqpgn52vdvv03cgbkkr3h3lhtdp/T/build- > > [ipykernel-6.27.1] [spkg-install] env-6_cu53wi/bin/python install > --use-pep517 --no-warn-script-location --no- > > [ipykernel-6.27.1] [spkg-install] compile -r > /var/folders/hw/w6ldqpgn52vdvv03cgbkkr3h3lhtdp/T/build- > > [ipykernel-6.27.1] [spkg-install] reqs-9x5l7vuh.txt > > [ipykernel-6.27.1] [spkg-install] < Looking in links: > /Users/dcoudert/sage/local/var/lib/sage/venv- > > [ipykernel-6.27.1] [spkg-install] python3.12/var/lib/sage/wheels > > [ipykernel-6.27.1] [spkg-install] < Processing > /Users/dcoudert/sage/local/var/lib/sage/venv- > > [ipykernel-6.27.1] [spkg-install] > python3.12/var/lib/sage/wheels/jupyter_client-8.3.1-py3-none-any.whl (from > > [ipykernel-6.27.1] [spkg-install] -r > /var/folders/hw/w6ldqpgn52vdvv03cgbkkr3h3lhtdp/T/build-reqs-9x5l7vuh.txt > > [ipykernel-6.27.1] [spkg-install] (line 1)) > > [ipykernel-6.27.1] [spkg-install] < Processing > /Users/dcoudert/sage/local/var/lib/sage/venv- > > [ipykernel-6.27.1] [spkg-install] > python3.12/var/lib/sage/wheels/hatchling-1.25.0-py3-none-any.whl (from -r > > [ipykernel-6.27.1] [spkg-install] > /var/folders/hw/w6ldqpgn52vdvv03cgbkkr3h3lhtdp/T/build-reqs-9x5l7vuh.txt > > [ipykernel-6.27.1] [spkg-install] (line 2)) > > [ipykernel-6.27.1] [spkg-install] < INFO: pip is looking at multiple > versions of jupyter-client to determine > > [ipykernel-6.27.1] [spkg-install] which version is compatible with other > requirements. This could take a > > [ipykernel-6.27.1] [spkg-install] while. > > [ipykernel-6.27.1] [spkg-install] < ERROR: Could not find a version that > satisfies the requirement jupyter- > > [ipykernel-6.27.1] [spkg-install] core!=5.0.*,>=4.12 (from > jupyter-client) (from versions: none) > > [ipykernel-6.27.1] [spkg-install] < ERROR: No matching distribution found > for jupyter-core!=5.0.*,>=4.12 > > [ipykernel-6.27.1] [spkg-install] > > [ipykernel-6.27.1] [spkg-install] Traceback (most recent call last): > > [ipykernel-6.27.1] [spkg-install] File > "/Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/build/__main__.py", > line 178, in _handle_build_error > > [ipykernel-6.27.1] [spkg-install] yield > > [ipykernel-6.27.1] [spkg-install] File > "/Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/build/__main__.py", > line 429, in main > > [ipykernel-6.27.1] [spkg-install] built = build_call( > > [ipykernel-6.27.1] [spkg-install] ^^^^^^^^^^^ > > [ipykernel-6.27.1] [spkg-install] File > "/Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/build/__main__.py", > line 238, in build_package > > [ipykernel-6.27.1] [spkg-install] out = _build(isolation, srcdir, > outdir, distribution, config_settings, skip_dependency_check, installer) > > [ipykernel-6.27.1] [spkg-install] > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > [ipykernel-6.27.1] [spkg-install] File > "/Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/build/__main__.py", > line 170, in _build > > [ipykernel-6.27.1] [spkg-install] return > _build_in_isolated_env(srcdir, outdir, distribution, config_settings, > installer) > > [ipykernel-6.27.1] [spkg-install] > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > [ipykernel-6.27.1] [spkg-install] File > "/Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/build/__main__.py", > line 135, in _build_in_isolated_env > > [ipykernel-6.27.1] [spkg-install] > env.install(builder.build_system_requires) > > [ipykernel-6.27.1] [spkg-install] File > "/Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/build/env.py", > line 136, in install > > [ipykernel-6.27.1] [spkg-install] > self._env_backend.install_requirements(requirements) > > [ipykernel-6.27.1] [spkg-install] File > "/Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/build/env.py", > line 265, in install_requirements > > [ipykernel-6.27.1] [spkg-install] run_subprocess(cmd) > > [ipykernel-6.27.1] [spkg-install] File > "/Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/build/_ctx.py", > line 71, in run_subprocess > > [ipykernel-6.27.1] [spkg-install] subprocess.run(cmd, > capture_output=True, check=True, env=env) > > [ipykernel-6.27.1] [spkg-install] File > "/opt/homebrew/Cellar/[email protected]/3.12.10/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", > line 571, in run > > [ipykernel-6.27.1] [spkg-install] raise CalledProcessError(retcode, > process.args, > > [ipykernel-6.27.1] [spkg-install] subprocess.CalledProcessError: Command > '['/Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/bin/python3', > '-m', 'pip', '--python', > '/private/var/folders/hw/w6ldqpgn52vdvv03cgbkkr3h3lhtdp/T/build-env-6_cu53wi/bin/python', > 'install', '--use-pep517', '--no-warn-script-location', '--no-compile', > '-r', > '/var/folders/hw/w6ldqpgn52vdvv03cgbkkr3h3lhtdp/T/build-reqs-9x5l7vuh.txt']' > returned non-zero exit status 1. > > [ipykernel-6.27.1] [spkg-install] > > [ipykernel-6.27.1] [spkg-install] ERROR Command > '['/Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/bin/python3', > '-m', 'pip', '--python', > '/private/var/folders/hw/w6ldqpgn52vdvv03cgbkkr3h3lhtdp/T/build-env-6_cu53wi/bin/python', > 'install', '--use-pep517', '--no-warn-script-location', '--no-compile', > '-r', > '/var/folders/hw/w6ldqpgn52vdvv03cgbkkr3h3lhtdp/T/build-reqs-9x5l7vuh.txt']' > returned non-zero exit status 1. > > [ipykernel-6.27.1] [spkg-install] Warning: building with "python3 -m build > --wheel --outdir=dist ." failed. > > [ipykernel-6.27.1] [spkg-install] Retrying with "python3 -m build --wheel > --outdir=dist --no-isolation --skip-dependency-check .". > > [ipykernel-6.27.1] [spkg-install] * Building wheel... > > [ipykernel-6.27.1] [spkg-install] Traceback (most recent call last): > > [ipykernel-6.27.1] [spkg-install] File > "/Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", > line 373, in <module> > > [ipykernel-6.27.1] [spkg-install] main() > > [ipykernel-6.27.1] [spkg-install] File > "/Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", > line 357, in main > > [ipykernel-6.27.1] [spkg-install] json_out["return_val"] = > hook(**hook_input["kwargs"]) > > [ipykernel-6.27.1] [spkg-install] > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > [ipykernel-6.27.1] [spkg-install] File > "/Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", > line 271, in build_wheel > > [ipykernel-6.27.1] [spkg-install] return _build_backend().build_wheel( > > [ipykernel-6.27.1] [spkg-install] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > [ipykernel-6.27.1] [spkg-install] File > "/Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/hatchling/build.py", > line 58, in build_wheel > > [ipykernel-6.27.1] [spkg-install] return > os.path.basename(next(builder.build(directory=wheel_directory, > versions=['standard']))) > > [ipykernel-6.27.1] [spkg-install] > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > [ipykernel-6.27.1] [spkg-install] File > "/Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/hatchling/builders/plugin/interface.py", > line 147, in build > > [ipykernel-6.27.1] [spkg-install] build_hook.initialize(version, > build_data) > > [ipykernel-6.27.1] [spkg-install] File > "/Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/var/tmp/sage/build/ipykernel-6.27.1/src/hatch_build.py", > line 17, in initialize > > [ipykernel-6.27.1] [spkg-install] from ipykernel.kernelspec import > make_ipkernel_cmd, write_kernel_spec > > [ipykernel-6.27.1] [spkg-install] File > "/Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/var/tmp/sage/build/ipykernel-6.27.1/src/ipykernel/__init__.py", > line 7, in <module> > > [ipykernel-6.27.1] [spkg-install] from .connect import * > > [ipykernel-6.27.1] [spkg-install] File > "/Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/var/tmp/sage/build/ipykernel-6.27.1/src/ipykernel/connect.py", > line 12, in <module> > > [ipykernel-6.27.1] [spkg-install] import jupyter_client > > [ipykernel-6.27.1] [spkg-install] File > "/Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/jupyter_client/__init__.py", > line 3, in <module> > > [ipykernel-6.27.1] [spkg-install] from .asynchronous import > AsyncKernelClient > > [ipykernel-6.27.1] [spkg-install] File > "/Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/jupyter_client/asynchronous/__init__.py", > line 1, in <module> > > [ipykernel-6.27.1] [spkg-install] from .client import > AsyncKernelClient # noqa > > [ipykernel-6.27.1] [spkg-install] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > [ipykernel-6.27.1] [spkg-install] File > "/Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/jupyter_client/asynchronous/client.py", > line 8, in <module> > > [ipykernel-6.27.1] [spkg-install] from ..channels import > AsyncZMQSocketChannel, HBChannel > > [ipykernel-6.27.1] [spkg-install] File > "/Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/jupyter_client/channels.py", > line 12, in <module> > > [ipykernel-6.27.1] [spkg-install] from jupyter_core.utils import > ensure_async > > [ipykernel-6.27.1] [spkg-install] ModuleNotFoundError: No module named > 'jupyter_core' > > [ipykernel-6.27.1] [spkg-install] > > [ipykernel-6.27.1] [spkg-install] ERROR Backend subprocess exited when > trying to invoke build_wheel > > [ipykernel-6.27.1] [spkg-install] > ******************************************************************************** > > [ipykernel-6.27.1] [spkg-install] Error building a wheel for > ipykernel-6.27.1 > > [ipykernel-6.27.1] [spkg-install] > ******************************************************************************** > > [ipykernel-6.27.1] > ************************************************************************ > > [ipykernel-6.27.1] Error installing package ipykernel-6.27.1 > > [ipykernel-6.27.1] > ************************************************************************ > > [ipykernel-6.27.1] Please email sage-devel ( > http://groups.google.com/group/sage-devel) > > [ipykernel-6.27.1] explaining the problem and including the log files > > [ipykernel-6.27.1] /Users/dcoudert/sage/logs/pkgs/ipykernel-6.27.1.log > > [ipykernel-6.27.1] and > > [ipykernel-6.27.1] /Users/dcoudert/sage/config.log > > [ipykernel-6.27.1] Describe your computer, operating system, etc. > > [ipykernel-6.27.1] If you want to try to fix the problem yourself, *don't* > just cd to > > [ipykernel-6.27.1] > /Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/var/tmp/sage/build/ipykernel-6.27.1 > and type 'make' or whatever is appropriate. > > [ipykernel-6.27.1] Instead, the following commands setup all environment > variables > > [ipykernel-6.27.1] correctly and load a subshell for you to debug the > error: > > [ipykernel-6.27.1] (cd > '/Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/var/tmp/sage/build/ipykernel-6.27.1' > && '/Users/dcoudert/sage/sage' --buildsh) > > [ipykernel-6.27.1] When you are done debugging, you can type "exit" to > leave the subshell. > > [ipykernel-6.27.1] > ************************************************************************ > > [ipykernel-6.27.1] real 0m19.726s user 0m0.914s sys 0m0.488s > > make[4]: *** [ipykernel-SAGE_VENV-no-deps] Error 1 > > make[3]: *** > [/Users/dcoudert/sage/local/var/lib/sage/venv-python3.12/var/lib/sage/installed/ipykernel-6.27.1] > Error 2 > > make[2]: *** [all-build] Error 2 > > *************************************************************** > > > -- You received this message because you are subscribed to the Google Groups "sage-release" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/sage-release/CAAWYfq0%2BRqKkPTWyhyTmdPBQF7dDoKtPTOEpads%2BSzthmn97Mg%40mail.gmail.com.
