cschwan / sage-on-gentoo

(Unofficial) Gentoo Overlay for Sage- and Sage-related ebuilds
79 stars 26 forks source link

sage-9.6->9.7 upgrade fails... #713

Closed CaptainBloodz closed 8 months ago

CaptainBloodz commented 1 year ago

Fri Sep 23 12:52:48 2022 >>> sci-mathematics/gmp-ecm-7.0.5 Fri Sep 23 12:54:45 2022 >>> sci-mathematics/eclib-20220621 Fri Sep 23 12:55:33 2022 >>> dev-python/jupyter_jsmol-2022.1.0 Fri Sep 23 12:55:51 2022 >>> sci-mathematics/sage_docbuild-9.7 Fri Sep 23 13:02:40 2022 >>> sci-mathematics/singular-4.3.1_p1 Fri Sep 23 13:02:59 2022 >>> sci-mathematics/sage_setup-9.7 So far, so good... Then sci-mathematics:sage-9.7:20220923-100259.log.gz hits hard here ;).

Plz note defaulted to python3_9 here: eix sci-mathematics/sage [U] sci-mathematics/sage Installed versions: 9.6-r1^t[1](13:37:22 19/09/2022)(X bliss doc jmol latex meataxe -debug -test PYTHON_TARGETS="python3_9 -python3_8 -python3_10") Homepage: https://www.sagemath.org Description: Math software for abstract and numerical computations

kiwifb commented 1 year ago

It looks like the previous install of sage is interfering. I recommend

emerge -C sage

before doing

emerge -uv sage

again.

kiwifb commented 1 year ago

Just to explain, the cause of problem is

ImportError: cannot import name 'cython_namespace_package_support' from 'sage.misc.package_dir' (/usr/lib/python3.9/site-packages/sage/misc/package_dir.py)

and you'll notice that it tries to import from a system installed sage when it should do it from the source. In fact upstream may be interested in that one because it may say something about incremental updates.

CaptainBloodz commented 1 year ago

It looks like the previous install of sage is interfering. I recommend

emerge -C sage

before doing

emerge -uv sage

again.

Problem solved. Nice.

CaptainBloodz commented 1 year ago

Just to explain, the cause of problem is

ImportError: cannot import name 'cython_namespace_package_support' from 'sage.misc.package_dir' (/usr/lib/python3.9/site-packages/sage/misc/package_dir.py)

and you'll notice that it tries to import from a system installed sage when it should do it from the source. In fact upstream may be interested in that one because it may say something about incremental updates.

Planning to report upstream once everything done here. I might have a minor one for this repository too.

CaptainBloodz commented 1 year ago

sage-9.7 installed fine as: [I] sci-mathematics/sage Available versions: (~)9.6-r1^t[6] (~)9.7^t[3] ~9.7^t[6] ~9.7-r10^t[6] [M]**9999^t[3] **9999^t[6] {X bliss debug +doc jmol latex meataxe test PYTHON_TARGETS="python3_8 python3_9 python3_10"} Installed versions: 9.7^t[3](19:43:10 23/09/2022)(doc jmol -X -bliss -debug -latex -meataxe -test PYTHON_TARGETS="python3_9 -python3_8 -python3_10")

Currently testing more USE flag activation.

CaptainBloodz commented 1 year ago

USE=latex builds fine here. However USE=bliss fails here: sci-mathematics:sage-9.7:20220924-060856.log.gz

Currently testing USE=meataxe.

kiwifb commented 1 year ago

yes latest bliss is broken I believe. 0.73 should be fine but 0.77 is not. meataxe has been specifically fixed in this release see #709.

CaptainBloodz commented 1 year ago

At least sage-9.6 builds fine with sci-libs/bliss-0.77. Can't tell if operational though...

If that is so, maybe a version dependency constrain would help.

kiwifb commented 1 year ago

I may have a look on it tomorrow. I have been very busy with my paid work the last few months.

kiwifb commented 1 year ago

bliss dependency is now constrained on 9.7 by a5496904cdb2bbf80852bc4a75177f66abd798d3. Pushed to both 9.7 and 9999 on the merge of the dev branch for the release of 9.8.beta1.

kiwifb commented 1 year ago

I also have a patch to support sphinx 5.2 in the wing and that should be merged soon. we (sage-on-gento and arch) are pushing for 5.2.x in sage 9.8.