Re: [sage-devel] Re: using libgap in source

2024-12-05 Thread Michael Orlitzky
On 2024-12-05 20:31:40, Jackson Walters wrote: > > It would be nice to just have these installed. This isn't something I can > do, right? I should mention that locally this is all working in my > installation, where I have installed `forms`. > You could hold a vote to make "forms" a standard pac

[sage-devel] Re: using libgap in source

2024-12-05 Thread Jackson Walters
Seems to have made it one step further. Probably the issue is now libgap.LoadPackage("forms") Error: Failed example:: Exception raised: Traceback (most recent call last):

Re: [sage-devel] Re: using libgap in source

2024-12-05 Thread David Roe
Yep, that should work. To find the right import statements, you can do sage: import_statements(libgap) from sage.libs.gap.libgap import libgap David On Thu, Dec 5, 2024 at 5:37 PM Jackson Walters wrote: > Perhaps I can just use > > from sage.libs.gap.libgap import libgap > > On Thursday, Decemb

Re: [sage-devel] Re: using libgap in source

2024-12-05 Thread Jackson Walters
Ah, thank you. Any idea if loading packages via libgap.LoadPackage("forms") is expected to work? Jackson On Thursday, December 5, 2024 at 6:14:49 PM UTC-5 David Roe wrote: > Yep, that should work. To find the right import statements, you can do > sage: import_statements(libgap) > from sage.lib

Re: [sage-devel] Re: using libgap in source

2024-12-05 Thread Michael Orlitzky
On 2024-12-05 15:23:35, Jackson Walters wrote: > > Ah, thank you. Any idea if loading packages via libgap.LoadPackage("forms") > is > expected to work? Yes, but only if the GAP package you're trying to load is installed. The only ones that are guaranteed to be installed are gapdoc, primgrp, sma

Re: [sage-devel] Re: using libgap in source

2024-12-05 Thread Jackson Walters
Right, confirmed separately from Travis: So the Forms package is a GAP package that has been included since GAP > v4.9, but it is not included by our default installation nor in > gap_packages We are debating whether to just implement the necessary methods in Sage. I'm going to begin tomorrow.

[sage-devel] using libgap in source

2024-12-05 Thread Jackson Walters
Hi all, Probably pretty obvious, but I need to call libgap for the following function: def unitary_change_of_basis(U,q): if U.nrows() == 1 and U.ncols() == 1: return matrix(F,[[factor_scalar(U[0,0])]]) libgap.LoadPackage("forms") return matrix(F,libgap.BaseChangeToCanonical(lib

[sage-devel] Re: using libgap in source

2024-12-05 Thread Jackson Walters
Perhaps I can just use from sage.libs.gap.libgap import libgap On Thursday, December 5, 2024 at 5:34:45 PM UTC-5 Jackson Walters wrote: > Hi all, > > Probably pretty obvious, but I need to call libgap for the following > function: > > def unitary_change_of_basis(U,q): >if U.nrows() == 1 an

Re: [sage-devel] Re: using libgap in source

2024-12-05 Thread Dima Pasechnik
On 5 December 2024 17:23:35 GMT-06:00, Jackson Walters wrote: > >Ah, thank you. Any idea if loading packages via libgap.LoadPackage("forms") is >expected to work? absolutely. As I said elsewhere, look at how things involving libgap are done in e.g. src/sage/graphs/. > >Jackson >On Thursday, De

Re: [sage-devel] Sage 10.5 build failure on Sequoia 15.1.1

2024-12-05 Thread Dima Pasechnik
As you can see in the logs you attached: [spkg-install] Compiling with an SDK that doesn't seem to exist: /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk [spkg-install] Please check your Xcode installation You most probably should reinstall Xcode and Xcode command line tools On Thu, Dec 5,