Sorry for the noise. Apparently one needs to import Matrix_gfpn_dense first, which is what the cohomology module does.
Still, random_matrix(GF(5),20,implementation='meataxe') should work, but it doesn't. And so doesn't MatrixSpace(GF(5),4,implementation='meataxe'). I guess I'll open a ticket for it. Best regards, Simon On 2018-07-30, Simon King <simon.k...@uni-jena.de> wrote: > > To add to my confusion: > > I also have p_group_cohomology installed, which makes extensive use of > matrix_gfpn_dense. And it still works. More precisely, when I import > something from the cohomology package, then suddenly the > matrix_gfpn_dense module becomes available: > > sage: M = > random_matrix(GF(5),20,implementation=sage.matrix.matrix_gfpn_dense.Matrix_gfpn_dense) > --------------------------------------------------------------------------- > AttributeError Traceback (most recent call > last) ><ipython-input-1-8b27dde46e2d> in <module>() > ----> 1 M = > random_matrix(GF(Integer(5)),Integer(20),implementation=sage.matrix.matrix_gfpn_dense.Matrix_gfpn_dense) > > AttributeError: 'module' object has no attribute 'matrix_gfpn_dense' > sage: from pGroupCohomology import CohomologyRing > sage: M = > random_matrix(GF(5),20,implementation=sage.matrix.matrix_gfpn_dense.Matrix_gfpn_dense) > sage: type(M) ><type 'sage.matrix.matrix_gfpn_dense.Matrix_gfpn_dense'> > > So, what the heck is going on there? > > Best regards, > Simon > > On 2018-07-30, Simon King <simon.k...@uni-jena.de> wrote: >> Hi! >> >> I just met a quite troublesome problem: I have MeatAxe installed in >> Sage, and thus the optional extension sage.matrix.matrix_gfpn_dense was >> available - till 30 minutes ago (I am sure that it was available, as I >> did some timings with it). >> >> Suddenly, after restarting Sage, the module has gone, it cannot be >> imported. I tried "sage -i meataxe" (which told me that meataxe was >> installed already), then "sage -f meataxe" (which did re-install >> meataxe) followed by "touch src/sage/matrix/matrix_gfpn_dense.pxd", >> followed by "sage -br", which *did* recompile >> src/sage/matrix/matrix_gfpn_dense.pyx >> -- but still I cannot import the resulting module. >> >> So, what has happened? I am totally puzzled now. >> >> Best regards, >> Simon >> > -- 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 sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.