cschwan / sage-on-gentoo

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

Reinstallation of sage 7.0 failed: missing cimport in module 'posix.select': sage/ext/pselect.pyx #415

Closed hungshihhan closed 8 years ago

hungshihhan commented 8 years ago

After a system upgrade, I ran into a problem with the re-intallation of sage 7.0. The problem might be this line but I'm not sure how to fix it:

missing cimport in module 'posix.select': sage/ext/pselect.pyx

This system upgrade updated cython to 0.23.5 and sage 7.0 requires >=dev-python/cython-0.23.2-r1. However 0.23.2-r1 was removed from the main tree so I can't roll back to it and see if the upgrade is the issue; other older versions do not seem working either.

kiwifb commented 8 years ago

which cython do you have exactly and is it from the overlay or the main tree? You need the version from the overlay.

hungshihhan commented 8 years ago

Now I have cython-0.23.5 now from gentoo overlay. I can't go back to 0.23.2-r1 as it's removed from the main tree: https://packages.gentoo.org/packages/dev-python/cython. I'll try to go back to dev-python/cython-0.23.4-r2::sage-on-gentoo

kiwifb commented 8 years ago

And 0.23.5 should be fine but you need the one from the sage-on-gentoo overlay not the gentoo overlay (otherwise known as the main tree). I'll note that 0.23.2-r1 would be insufficient. From the sage-7.0 ebuild

>=dev-python/cython-0.23.3-r1[${PYTHON_USEDEP}]
hungshihhan commented 8 years ago

That's the problem. Command layman -S failed to update sage-on-gentoo so I pulled dev-python/cython-0.23.4-r2::sage-on-gentoo instead and fixed the problem.