Hi Dima: I merged the PR, ran configure with --with-system-python3=python3.13, and set the alias for python3 in the shell. I still get a failure to build with the same error. The log output for e.g. mpfi is:
cat /home/packages/SOURCE/sage/logs/pkgs/mpfi-1.5.2.log Attempting to download package mpfi-1.5.2.tar.bz2 from mirrors https://github.com/sagemath/sage/releases/download/10.8/mpfi-1.5.2.tar.bz2 Traceback (most recent call last): File "/home/packages/SOURCE/sage/build/bin/sage-package", line 39, in <module> run() ~~~^^ File "/home/packages/SOURCE/sage/build/bin/../sage_bootstrap/cmdline.py", line 538, i n run app.download_cls(*args.package_class, ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ has_files=args.has_files, no_files=args.no_files, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ exclude=args.exclude, ^^^^^^^^^^^^^^^^^^^^^ allow_upstream=args.allow_upstream, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ on_error=args.on_error) ^^^^^^^^^^^^^^^^^^^^^^^ File "/home/packages/SOURCE/sage/build/bin/../sage_bootstrap/app.py", line 337, in do wnload_cls pc.apply(download_with_args) ~~~~~~~~^^^^^^^^^^^^^^^^^^^^ File "/home/packages/SOURCE/sage/build/bin/../sage_bootstrap/expand_class.py", line 1 26, in apply function(package_name, *args, **kwds) ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/packages/SOURCE/sage/build/bin/../sage_bootstrap/app.py", line 329, in do wnload_with_args self.download(package, allow_upstream=allow_upstream) ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/packages/SOURCE/sage/build/bin/../sage_bootstrap/app.py", line 315, in do wnload package.tarball.download(allow_upstream=allow_upstream) ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/packages/SOURCE/sage/build/bin/../sage_bootstrap/tarball.py", line 175, i n download Download(url, destination).run() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/home/packages/SOURCE/sage/build/bin/../sage_bootstrap/download/transfer.py", l ine 123, in run opener = urllib.FancyURLopener() ^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'urllib.request' has no attribute 'FancyURLopener' ************************************************************************ Error downloading tarball of mpfi I think I did the merge correctly... [ehm sage]$ git status HEAD detached at 10.8.beta4 Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) modified: build/sage_bootstrap/download/transfer.py On Thursday, September 25, 2025 at 1:35:54 PM UTC-5 [email protected] wrote: > On Thu, Sep 25, 2025 at 8:38 AM Dima Pasechnik <[email protected]> wrote: > > > > This is because rather than using the supplied python3.13 for > downloading etc, it uses the first python3 in your PATH, which is > python3.14. And in the latter FancyURLopener has been removed. > > > > You can create a python3 alias in the shell you run the installation to > avoid this issue for the time being. > > > > alias python3=python3.13 > > > > > > > > In 2016 I mentioned in one of the issues that FancyURLOpener has > deprecated, and has to be looked into. :-) > > > > Anyhow I just opened issue #40886 to deal with it. > > The fix proposed here: https://github.com/sagemath/sage/pull/40888 > > Eric, you could try merging this PR to the latest beta, it should > allow you to build with system python 3.14 > (supplying 3.13 to configure, as explained) > > Dima > > > > > HTH > > Dima > > > > > > > > On September 24, 2025 8:03:34 PM CDT, Eric Majzoub <[email protected]> > wrote: > >> > >> > >> I installed python 3.13, and used > >> ./configure --with-system-python3=python3.13 > >> > >> Still the same error messages. Note: I had no problem building sage > 10.7 on Fedora 42 with gcc 15. > >> > >> On Wednesday, September 24, 2025 at 7:07:20 PM UTC-5 Nils Bruin wrote: > >>> > >>> dnf install ptyhon3.13 > >>> > >>> You just need to find a way to tell sage to use python3.13 and not > python3.14. There must be a way for that, but I don't know it. > >>> > >>> Incidentally, on Fedora 42 there is already the problem that sage > doesn't build on gcc15, so you need to install gcc14 and tell sage to build > with that; see > https://groups.google.com/g/sage-devel/c/tJCbTnelvSg/m/IfzQF0HGBQAJ . I > would imagine you'll need to do that on Fedora 43 as well, until gcc15 is > fully supported for building sage. > >>> > >>> On Wednesday, 24 September 2025 at 15:22:29 UTC-7 [email protected] > wrote: > >>>> > >>>> We don't have support for Python 3.14 yet. > >>>> does Fedora 43 offer a way to install Python 3.13 (as a secondary > Python3) ? > >>>> > >>>> > >>>> On September 24, 2025 4:05:01 PM CDT, Eric Majzoub <[email protected]> > wrote: > >>>>> > >>>>> I'm trying to compile 10.7 or 10.8.beta4 on Fedora 43 beta. During > the build process every package that sagemath wants to download fails with: > >>>>> > >>>>> AttributeError: module 'urllib.request' has no attribute > 'FancyURLopener' > >>>>> > >>>>> Fedora 43 is using python 3.14. > >>>>> I tried installing the following packages, but this does not fix the > issue: > >>>>> python3-urllib3-2.5.0-3.fc43.noarch > >>>>> python3-urllib3+socks-2.5.0-3.fc43.noarch > >>>>> python3-MultipartPostHandler2-0.1.5-41.fc43.noarch > >>>>> > >>>>> > -- You received this message because you are subscribed to the Google Groups "sage-support" 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-support/6797e531-8ae7-4cb7-8d1c-ee1d5a8b86dcn%40googlegroups.com.
