cschwan / sage-on-gentoo

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

sage-data-conway_polynomials-0.5 fails silently during install phase #464

Closed strogdon closed 7 years ago

strogdon commented 7 years ago

This is in Prefix but may be present in Gentoo as well. The install of 8.0.beta3 failed when building the html-doc with:

RuntimeError: In order to initialize the database, /storage/strogdon/gentoo-rap/usr/share/sage/conway_polynomials/conway_polynomials.p must exist.

To build I used emerge -C sage && emerge -1 sage. The culprit is sage-data-conway_polynomials. During its install there is

>>> Install sage-data-conway_polynomials-0.5 into /storage/strogdon/gentoo-rap/var/tmp/portage/sci-mathematics/sage-data-conway_polynomials-0.5/image/ category sci-mathematics
Traceback (most recent call last):
  File "spkg-install", line 4, in <module>
    from sage.env import SAGE_SHARE
ImportError: No module named sage.env
>>> Completed installing sage-data-conway_polynomials-0.5 into /storage/strogdon/gentoo-rap/var/tmp/portage/sci-mathematics/sage-data-conway_polynomials-0.5/image/

So it would seem that Sage needs to be installed for this to work. Perhaps that line should not be there?

kiwifb commented 7 years ago

I didn't pay enough attention indeed.

kiwifb commented 7 years ago

Should work now.

strogdon commented 7 years ago

This works.