Re: [sage-devel] Error building the documentation with 8.8.beta5
Working ! Thank you. D. > you need to install full JDK, not just JRE, if you need java/javac. > > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/3172c624-962f-4ae8-861b-119e339f4d55%40googlegroups.com.
Re: [sage-devel] Error building the documentation with 8.8.beta5
On Sat, Jul 20, 2019 at 9:20 PM David Coudert wrote: > > I had to fully reinstall my laptop (with reformat). So I updated my system to > OSX Mojave, installed last Xcode, command tools, etc., and made a fresh > install of 8.9.beta3, but I still have the same issue :( > > I have installed Java 8 update 221 (last version) > > But when I try: > > MacBook-Air-de-David:sage dcoudert$ java --version > > No Java runtime present, requesting install. you need to install full JDK, not just JRE, if you need java/javac. HTH Dima > > MacBook-Air-de-David:sage dcoudert$ javac --version > > No Java runtime present, requesting install. > > > There is something wrong here, but what ? > Also, I don't understand why this problem appears only with 8.8.beta5... > > Thanks for your help. > David. > > Le mercredi 22 mai 2019 11:45:42 UTC-4, David Coudert a écrit : >> >> Let us know if you find a way to fix that. All my attempts failed (make >> doc-clean, dist-clean) >> David. >> >> Le mardi 21 mai 2019 10:35:38 UTC+2, Nicolas M. Thiéry a écrit : >>> >>> >>> Just for the record: same error here on Balthazar's laptop, sage >>> 8.8.beta5, fresh Ubuntu 18.04. >>> >>> Cheers, >>> Nicolas > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-devel/4ee2e6e2-7946-43f1-a94d-ddb6f7d4ca77%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAAWYfq2GnYA44U-DUfDf61BWTbjP34wYmuqHd8X1oKUSTFy5Uw%40mail.gmail.com.
Re: [sage-devel] Error building the documentation with 8.8.beta5
I had to fully reinstall my laptop (with reformat). So I updated my system to OSX Mojave, installed last Xcode, command tools, etc., and made a fresh install of 8.9.beta3, but I still have the same issue :( I have installed Java 8 update 221 (last version) But when I try: MacBook-Air-de-David:sage dcoudert$ java --version No Java runtime present, requesting install. MacBook-Air-de-David:sage dcoudert$ javac --version No Java runtime present, requesting install. There is something wrong here, but what ? Also, I don't understand why this problem appears only with 8.8.beta5... Thanks for your help. David. Le mercredi 22 mai 2019 11:45:42 UTC-4, David Coudert a écrit : > > Let us know if you find a way to fix that. All my attempts failed (make > doc-clean, dist-clean) > David. > > Le mardi 21 mai 2019 10:35:38 UTC+2, Nicolas M. Thiéry a écrit : >> >> >> Just for the record: same error here on Balthazar's laptop, sage >> 8.8.beta5, fresh Ubuntu 18.04. >> >> Cheers, >> Nicolas >> > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/4ee2e6e2-7946-43f1-a94d-ddb6f7d4ca77%40googlegroups.com.
Re: [sage-devel] Cremona's database of elliptic curves over rationals : compilation?
Le 19/07/2019 à 16:41, John Cremona a écrit : > Not written by me, just used by me to update Sage's optional package. > William would remember who wrote it. I crossed the build/pkgs/elliptic_curves and src/sage/databases/cremona.py files and obtained the following build script. I'm a bit annoyed because the elliptic_curve pkg ships a 470M cremona.db, and I get a 479M cremona.db ; but perhaps it's because I pack everything (no bound on the genus : everything in the files!)? Does it look good? JP -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/6a8ed2dc-7166-fe90-5f1e-f0956fab9386%40laposte.net. #!/usr/bin/python3 import os from sqlite3 import connect def create_db(): target = 'cremona.db' print("Creating database {0}".format(target)) if os.path.exists(target): os.remove(target) con = connect(target) con.execute('CREATE TABLE t_class(conductor INTEGER,' ' class TEXT PRIMARY KEY, rank INTEGER, L REAL, deg INTEGER)') con.execute('CREATE TABLE t_curve(class TEXT,' ' curve TEXT PRIMARY KEY, eqn TEXT UNIQUE,' ' gens TEXT, tors INTEGER, cp INTEGER,' ' om REAL, reg REAL, sha)') con.execute('CREATE INDEX i_t_class_conductor ON t_class(conductor)') con.execute('CREATE INDEX i_t_curve_class ON t_curve(class)') return con def populate_allcurves(con): print('Inserting all curves') for filename in sorted(os.listdir('allcurves')): class_data = [] curve_data = [] with open(os.path.join('allcurves', filename)) as fich: print('\tConsidering {0}'.format(filename)) for line in fich.readlines(): N, iso, num, ainvs, r, tor = line.split() cls = N+iso cur = cls+num if num == "1": class_data.append((N,cls,r)) curve_data.append((cur,cls,ainvs,tor)) con.executemany('INSERT INTO t_class (conductor,class,rank)' ' VALUES (?,?,?)', class_data) con.executemany('INSERT INTO t_curve (curve,class,eqn,tors)' ' VALUES (?,?,?,?)', curve_data) con.commit() def populate_allbsd(con): print('Inserting all BSD') for filename in sorted(os.listdir('allbsd')): # why, oh why? There's a single problematic file... if not filename.startswith('allbsd'): break class_data = [] curve_data = [] with open(os.path.join('allbsd', filename)) as fich: print('\tConsidering {0}'.format(filename)) for line in fich.readlines(): N, iso, num, eqn, rank, tor, cp, om, L, reg, sha = line.split() cls = N+iso if num == "1": class_data.append((L,cls)) curve_data.append((cp,om,reg,eval(sha),cls+num)) con.executemany("UPDATE t_class SET L=? WHERE class=?", class_data) con.executemany("UPDATE t_curve SET cp=?,om=?,reg=?,sha=? WHERE " " curve=?", curve_data) con.commit() def populate_allgens(con): print('Inserting all gens') for filename in sorted(os.listdir('allgens')): curve_data = [] with open(os.path.join('allgens', filename)) as fich: print('\tConsidering {0}'.format(filename)) for line in fich.readlines(): v = line.split() gens = '['+','.join(v[6:6+int(v[4])]).replace(':',',')+']' curve_data.append((gens,''.join(v[:3]))) con.executemany("UPDATE t_curve SET gens=? WHERE curve=?", curve_data) con.commit() def populate_degphi(con): print('Inserting all degphi') for filename in sorted(os.listdir('degphi')): class_data = [] with open(os.path.join('degphi', filename)) as fich: print('\tConsidering {0}'.format(filename)) for line in fich.readlines(): N, iso, num, degree, primes, curve = line.split() class_data.append((degree,N+iso)) con.executemany('UPDATE t_class SET deg=? WHERE class=?', class_data) con.commit() def repack(db): print('Repacking the database') con.execute('VACUUM') if __name__ == '__main__': con = create_db() populate_allcurves(con) populate_allbsd(con) populate_allgens(con) populate_degphi(con) repack(con) con.close()
[sage-devel] signature missing in introspection some of the time
See https://ask.sagemath.org/question/47214/help-doesnt-show-function-call/. Some of the time when you evaluate blah? the signature is not present. Is this a bug or is it intended? I like this behavior: sage: A = SteenrodAlgebra() sage: A.antipode? Signature: B.antipode(self, *args) Call signature: B.antipode(*args) Type: ModuleMorphismByLinearity_with_category String form:Generic endomorphism of mod 2 Steenrod algebra, milnor basis File: ~/Desktop/Sage_stuff/git/sage/local/lib/python2.7/site- packages/sage/modules/with_basis/morphism.py Docstring: ... but not this: sage: mat = random_matrix(ZZ, 3, 3) sage: mat.add_multiple_of_row? Docstring: ... -- John -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/d22df5bc-8df4-4965-9214-6553f6f1fe2c%40googlegroups.com.
Re: [sage-devel] uninstall package
On Sat, Jul 20, 2019 at 8:15 AM Vincent Delecroix <20100.delecr...@gmail.com> wrote: > > Thanks. > > For the awali optional packages, the uninstall script does nothing... Is > there something specific to be done to make it work? The uninstaller looks in local/var/lib/sage/installed/awali-* for a list of files to unstall. However, it seems to contain no files: { "package_name": "awali", "package_version": "1.0.2-190218", "install_date": "Sat Jul 20 10:44:01 BST 2019", "system_uname": "Linux hilbert 5.1.12-gentoo #1 SMP Fri Jun 21 19:27:38 BST 2019 x86_64 Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz GenuineIntel GNU/Linux", "sage_version": "SageMath version 8.9.beta2, Release Date: 2019-07-10", "test_result": "", "files": [ ] } So this is bug in the installation procedure. I opened https://trac.sagemath.org/ticket/28218 to deal with it. > > Le 20/07/2019 à 09:13, Dima Pasechnik a écrit : > > one can run > > > >make -clean > > > > which will invoke the script in question to uninstall . > > > > > > On Sat, Jul 20, 2019 at 8:07 AM Vincent Delecroix > > <20100.delecr...@gmail.com> wrote: > >> > >> Dear all, > >> > >> Since https://trac.sagemath.org/ticket/25139 we are supposed to be > >> able to uninstall packages (see the script > >> build/sage_bootstrap/uninstall.py). But I did not find any > >> documentation on how to actually call the command. Is it intended > >> to be called directly? Should we add an uninstall directive to > >> the Application in build/sage_bootstrap/app.py? > >> > >> Best > >> Vincent > >> > >> -- > >> You received this message because you are subscribed to the Google Groups > >> "sage-devel" group. > >> To unsubscribe from this group and stop receiving emails from it, send an > >> email to sage-devel+unsubscr...@googlegroups.com. > >> To view this discussion on the web visit > >> https://groups.google.com/d/msgid/sage-devel/23a7baad-c44a-ff42-b873-efb82b037d07%40gmail.com. > > > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-devel/4a869d8e-a7e3-44ed-b026-67a43edb2517%40gmail.com. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAAWYfq00utFwdqqVDwgXJ15ktv2XT3T2rsDBoT2%2B8affUhfgqA%40mail.gmail.com.
Re: [sage-devel] uninstall package
Thanks. For the awali optional packages, the uninstall script does nothing... Is there something specific to be done to make it work? Le 20/07/2019 à 09:13, Dima Pasechnik a écrit : one can run make -clean which will invoke the script in question to uninstall . On Sat, Jul 20, 2019 at 8:07 AM Vincent Delecroix <20100.delecr...@gmail.com> wrote: Dear all, Since https://trac.sagemath.org/ticket/25139 we are supposed to be able to uninstall packages (see the script build/sage_bootstrap/uninstall.py). But I did not find any documentation on how to actually call the command. Is it intended to be called directly? Should we add an uninstall directive to the Application in build/sage_bootstrap/app.py? Best Vincent -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/23a7baad-c44a-ff42-b873-efb82b037d07%40gmail.com. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/4a869d8e-a7e3-44ed-b026-67a43edb2517%40gmail.com.
Re: [sage-devel] uninstall package
one can run make -clean which will invoke the script in question to uninstall . On Sat, Jul 20, 2019 at 8:07 AM Vincent Delecroix <20100.delecr...@gmail.com> wrote: > > Dear all, > > Since https://trac.sagemath.org/ticket/25139 we are supposed to be > able to uninstall packages (see the script > build/sage_bootstrap/uninstall.py). But I did not find any > documentation on how to actually call the command. Is it intended > to be called directly? Should we add an uninstall directive to > the Application in build/sage_bootstrap/app.py? > > Best > Vincent > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-devel/23a7baad-c44a-ff42-b873-efb82b037d07%40gmail.com. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAAWYfq3z2E9XXbtB4dwKB5mhDLeQn3SiXBhsge1cKUo99uL2UQ%40mail.gmail.com.
[sage-devel] Re: uninstall package
I sort of found the answer by grepping the source code $ make PKG-clean that most of the time calls $ sage-spkg-uninstall PKG Shouldn't we make it visible in the documentation? Le 20/07/2019 à 09:04, Vincent Delecroix a écrit : Dear all, Since https://trac.sagemath.org/ticket/25139 we are supposed to be able to uninstall packages (see the script build/sage_bootstrap/uninstall.py). But I did not find any documentation on how to actually call the command. Is it intended to be called directly? Should we add an uninstall directive to the Application in build/sage_bootstrap/app.py? Best Vincent -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/a4975f2f-e5cc-0087-6da7-7f032642a126%40gmail.com.
[sage-devel] uninstall package
Dear all, Since https://trac.sagemath.org/ticket/25139 we are supposed to be able to uninstall packages (see the script build/sage_bootstrap/uninstall.py). But I did not find any documentation on how to actually call the command. Is it intended to be called directly? Should we add an uninstall directive to the Application in build/sage_bootstrap/app.py? Best Vincent -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/23a7baad-c44a-ff42-b873-efb82b037d07%40gmail.com.