[sage-devel] Re: MathJax limit for TeX expression in notebook
On Thursday, May 28, 2015 at 5:21:01 PM UTC-4, Michal Bejger wrote: Dear Sage Devs, I have a question related to the limited length of a TeX expression rendered by MathJax in the notebook - the variable responsible for it is MAXBUFFER [1], and its default value is 5*1024 (5KB), which in most cases is quite all right but sometimes, for example when printing tensor components in SageManifolds (sagemanifolds.obspm.fr), it's not enough. Is it possible to pass a MathJax preamble in the notebook? Or alternatively, can we have MAXBUFFER increased in Sage local/share/mathjax/config/TeX-AMS_HTML-full.js default configuration? In principle you should be able to just hardcode a different value in in your own notebook server. -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: dpkg: error processing package sagemath-upstream-binary (--configure):
I wasn't especially thoughtful about this, but a simple copy paste of sudo dpkg -i /var/cache/apt/archives/sagemath*6.7ppa4*deb did not lead to happiness for me (running Xubuntu Trusty): mus » sudo dpkg -i /var/cache/apt/archives/sagemath*6.7ppa4*deb [211/692] (Reading database ... 781170 files and directories currently installed.) Preparing to unpack .../sagemath-upstream-binary_6.7ppa4_amd64.deb ... Unpacking sagemath-upstream-binary (6.7ppa4) over (6.7ppa4) ... Setting up sagemath-upstream-binary (6.7ppa4) ... Running Sage once as root to set paths ┌┐ │ SageMath Version 6.7, Release Date: 2015-05-17 │ │ Type notebook() for the browser-based notebook interface.│ │ Type help() for help.│ └┘ The Sage installation tree has moved from /opt/sagemath_tmonteil-ubuntu-trusty-64/sage-6.7 to /usr/lib/sagemath Updating various hardcoded paths... (Please wait at most a few minutes.) DO NOT INTERRUPT THIS. Done updating paths. Traceback (most recent call last): File /usr/lib/sagemath/local/bin/sage-ipython, line 7, in module from sage.repl.interpreter import SageTerminalApp File /usr/lib/sagemath/local/lib/python2.7/site-packages/sage/__init__.py, line 3, in module from sage.repl.ipython_extension import load_ipython_extension File /usr/lib/sagemath/local/lib/python2.7/site-packages/sage/repl/ipython_extension.py, line 59, in module from IPython.core.magic import Magics, magics_class, line_magic File /usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/__init__.py, line 45, in module from .config.loader import Config File /usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/config/__init__.py, line 6, in module from .application import * File /usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/config/application.py, line 9, in module import json File /usr/lib/sagemath/local/lib/python/json/__init__.py, line 108, in module from .decoder import JSONDecoder File /usr/lib/sagemath/local/lib/python/json/decoder.py, line 5, in module import struct File /usr/lib/sagemath/local/lib/python/struct.py, line 1, in module from _struct import * ImportError: No module named _struct dpkg: error processing package sagemath-upstream-binary (--install): subprocess installed post-installation script returned error exit status 1 Processing triggers for mime-support (3.54ubuntu1.1) ... Processing triggers for desktop-file-utils (0.22-1ubuntu1) ... Processing triggers for gnome-menus (3.10.1-0ubuntu2) ... Errors were encountered while processing: sagemath-upstream-binary mus » -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: dpkg: error processing package sagemath-upstream-binary (--configure):
Greetings- I've had the same issue installing sage 6.7 from the Ubuntu PPA on two different computers - one for which sage was previously installed, and the other where sage was being installed for the first time. Both computers are running Ubuntu 14.04. (Incidentally, things worked fine yesterday with version 6.6.) Best, Jeremy Rouse On Thursday, May 28, 2015 at 5:52:28 AM UTC-4, Denny Fuchs wrote: hi, I wanted to upgrade the system (Linux Mint 17), but SageMath sagemath-upstream-binary fails: = # aptitude upgrade The following partially installed packages will be configured: sagemath-upstream-binary No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B of archives. After unpacking 0 B will be used. Setting up sagemath-upstream-binary (6.7ppa4) ... Running Sage once as root to set paths ┌┐ │ SageMath Version 6.7, Release Date: 2015-05-17 │ │ Type notebook() for the browser-based notebook interface.│ │ Type help() for help.│ └┘ Traceback (most recent call last): File /usr/lib/sagemath/local/bin/sage-ipython, line 7, in module from sage.repl.interpreter import SageTerminalApp File /usr/lib/sagemath/local/lib/python2.7/site-packages/sage/__init__.py, line 3, in module from sage.repl.ipython_extension import load_ipython_extension File /usr/lib/sagemath/local/lib/python2.7/site-packages/sage/repl/ipython_extension.py, line 59, in module from IPython.core.magic import Magics, magics_class, line_magic File /usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/__init__.py, line 45, in module from .config.loader import Config File /usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/config/__init__.py, line 6, in module from .application import * File /usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/config/application.py, line 9, in module import json File /usr/lib/sagemath/local/lib/python/json/__init__.py, line 108, in module from .decoder import JSONDecoder File /usr/lib/sagemath/local/lib/python/json/decoder.py, line 5, in module import struct File /usr/lib/sagemath/local/lib/python/struct.py, line 1, in module from _struct import * ImportError: No module named _struct dpkg: error processing package sagemath-upstream-binary (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: sagemath-upstream-binary E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Setting up sagemath-upstream-binary (6.7ppa4) ... Running Sage once as root to set paths ┌┐ │ SageMath Version 6.7, Release Date: 2015-05-17 │ │ Type notebook() for the browser-based notebook interface.│ │ Type help() for help.│ └┘ Traceback (most recent call last): File /usr/lib/sagemath/local/bin/sage-ipython, line 7, in module from sage.repl.interpreter import SageTerminalApp File /usr/lib/sagemath/local/lib/python2.7/site-packages/sage/__init__.py, line 3, in module from sage.repl.ipython_extension import load_ipython_extension File /usr/lib/sagemath/local/lib/python2.7/site-packages/sage/repl/ipython_extension.py, line 59, in module from IPython.core.magic import Magics, magics_class, line_magic File /usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/__init__.py, line 45, in module from .config.loader import Config File /usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/config/__init__.py, line 6, in module from .application import * File /usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/config/application.py, line 9, in module import json File /usr/lib/sagemath/local/lib/python/json/__init__.py, line 108, in module from .decoder import JSONDecoder File /usr/lib/sagemath/local/lib/python/json/decoder.py, line 5, in module import struct File /usr/lib/sagemath/local/lib/python/struct.py, line 1, in module from _struct import * ImportError: No module named _struct dpkg: error processing package sagemath-upstream-binary (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: sagemath-upstream-binary == any suggestions? cu denny -- You received this message because you are subscribed to the Google
[sage-devel] Re: checkpointing enumeration of points on hypersurfaces in toric varieties
IMHO checkpointing (=saving the state at regular intervals) is important in any kind of long-running computation. Assuming that we can pickle the iterator, it would be easy enough to have a @parallel(checkpoint=/path/to/directory) decorator that saves the progress in regular intervals and restarts if necessary. If there are multiple parallel loops then it can be a bit of a hassle to identify the right one (and/or change @parallel inside library code). So the more useful version would be a context with checkpointing(/path/to/directory): do_some_computation() Mini-intro on the new generic (slow but oh so useful if you just want an answer) point counting: sage: P2.x,y,z = toric_varieties.P2(base_ring=GF(5)) sage: pts = P2.subscheme(x^3 + y^3 + z^3).point_set() sage: list(pts) [[0 : 1 : 4], [1 : 0 : 4], [1 : 4 : 0], [1 : 2 : 1], [1 : 1 : 2], [1 : 3 : 3]] sage: pts.cardinality() 6 sage: i = iter(pts) # define an iterator sage: next(i)# stop at the first found point [0 : 1 : 4] sage: next(i)# second point [1 : 0 : 4] sage: next(i)# third [1 : 4 : 0] On Thursday, May 28, 2015 at 8:41:16 PM UTC+2, Ursula Whitcher wrote: While discussing Ticket 16953, which improves functionality for enumerating points in toric varieties over finite fields, I said: The actual functionality works fine, albeit slowly. I would find it helpful if there were a way to save partial progress when computing a point set: I'm interested in examples that are large enough that the Sage cloud may kill the process before I'm done. Volker responded: I hear you, and I agree that checkpointing is an important feature. But its not really clear how that should be implemented or how the interface would look like. I guess the iterator is (or can be made) pickleable, but really checkpointing needs to be added on the @parallel level. In the short run its probably easier to email William to request a longer timeout on your project... Since checkpointing ideas are beyond the scope of Ticket 16953, I'm moving this discussion here. Some thoughts: * I'm particularly interested in examples involving hypersurfaces in smooth toric varieties over finite fields. For smooth toric varieties, one can stratify the points according to which torus they lie in, which in turn is tracked combinatorially by elements of the fan. Could one report which toruses have been checked? Or make it possible to check only in a certain torus? Presumably most of the time will be spent checking points in the big torus, but on the other hand I can imagine somebody might only *care* about points in the big torus, so this might be useful functionality to separate. * More naively, should there be an option to report *which* points lie on a hypersurface? For toy examples, seeing some points might be enough to guess the rest. More generally, I can imagine applications where somebody might be happy to find *any* points on a hypersurface over a finite field, and not care about whether all of them have been identified. --Ursula. -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] MathJax limit for TeX expression in notebook
Dear Sage Devs, I have a question related to the limited length of a TeX expression rendered by MathJax in the notebook - the variable responsible for it is MAXBUFFER [1], and its default value is 5*1024 (5KB), which in most cases is quite all right but sometimes, for example when printing tensor components in SageManifolds (sagemanifolds.obspm.fr), it's not enough. Is it possible to pass a MathJax preamble in the notebook? Or alternatively, can we have MAXBUFFER increased in Sage local/share/mathjax/config/TeX-AMS_HTML-full.js default configuration? Best regards, Michał [1] http://docs.mathjax.org/en/latest/options/TeX.html -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: sage -optional does not work
Hey all, in particular those who changed how we are handling spkgs, I get the following error: The first step to fix it is there: http://trac.sagemath.org/ticket/18456 It does not actually fix sage -standard (or sage -optional) but rather Sage's function standard_packages, optional_packages and experimental_packages. I said on the ticket that another commit can be found at public/18456v2, which also fixes sage -standard to some extent (no version number). It is not part of the ticket since it only fixes partially sage -optional, and I only need the three *_packages functions to work for #18408. If you have time to review it, it would definitely help. Nathann -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Strange bug in poset plot
On Thu, 28 May 2015, Frédéric Chapoton wrote: This is because the graph is relabelled before being send to plot. You must give the new labels as values for the coloring dict. This could be called as a bug... I added a notice here: http://trac.sagemath.org/ticket/15206 -- Jori Mäntysalo
[sage-devel] checkpointing enumeration of points on hypersurfaces in toric varieties
While discussing Ticket 16953, which improves functionality for enumerating points in toric varieties over finite fields, I said: The actual functionality works fine, albeit slowly. I would find it helpful if there were a way to save partial progress when computing a point set: I'm interested in examples that are large enough that the Sage cloud may kill the process before I'm done. Volker responded: I hear you, and I agree that checkpointing is an important feature. But its not really clear how that should be implemented or how the interface would look like. I guess the iterator is (or can be made) pickleable, but really checkpointing needs to be added on the @parallel level. In the short run its probably easier to email William to request a longer timeout on your project... Since checkpointing ideas are beyond the scope of Ticket 16953, I'm moving this discussion here. Some thoughts: * I'm particularly interested in examples involving hypersurfaces in smooth toric varieties over finite fields. For smooth toric varieties, one can stratify the points according to which torus they lie in, which in turn is tracked combinatorially by elements of the fan. Could one report which toruses have been checked? Or make it possible to check only in a certain torus? Presumably most of the time will be spent checking points in the big torus, but on the other hand I can imagine somebody might only *care* about points in the big torus, so this might be useful functionality to separate. * More naively, should there be an option to report *which* points lie on a hypersurface? For toy examples, seeing some points might be enough to guess the rest. More generally, I can imagine applications where somebody might be happy to find *any* points on a hypersurface over a finite field, and not care about whether all of them have been identified. --Ursula. -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] sage -optional does not work
Hey all, in particular those who changed how we are handling spkgs, I get the following error: $ sage -optional Using Sage Server http://www.sagemath.org/spkg HTTP Error 404: Not Found Error contacting http://www.sagemath.org/spkg/optional/list. Try using an alternative server. For example, from the bash prompt try typing export SAGE_SERVER=http://sage.scipy.org/sage/ then try again. If this has been fixed already, sorry for the noise. Best, Travis -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Posets, is_sublattice()
On Thu, 28 May 2015, Travis Scrimshaw wrote: issubset and the like are things from (IIRC) very old Python. You should strive to follow current naming schemes: is_sublattice. But it will be reversed then. A.is_subgraph(B) means that B is bigger one, but here A.is_sublattice(B) would mean that A is bigger one and B is the subset. -- Jori Mäntysalo
Re: [sage-devel] Re: Posets, is_sublattice()
On Thu, 28 May 2015, Travis Scrimshaw wrote: I would have one method called is_sublattice() which takes some kind of set and checks if that set of elements forms a sublattice. You could then specialize this by checking the type of the input to see if it is a lattice, and if so, only check element containment. What about the name? A.issubet(B) on sets mean that B is bigger set containing A. Same for A.is_subset(B) on graphs. has_sublattice()? -- Jori Mäntysalo
[sage-devel] Re: [sage-cloud] Re: blog post: Guiding Principles for SageMath, Inc.
On Wed, May 27, 2015 at 10:59 PM, c.d. mclean cdmclean@gmail.com wrote: Great Post, William. now is the time: http://venturebeat.com/2015/05/18/why-the-creators-of-the-julia-programming-language-just-launched-a-startup/ That's a nice article. Edelman (one of the devs) spoke at a Sage Days I organized at MSRI a few years ago about some very much not open source MATLAB-related startup he was doing, and I remember wishing it were open source, so I'm very happy seeing his current thing (Julia) is so pro open source. For fun, I've taken the questions from that article and answered them for SageMath, Inc. below, thus creating an IMAGINARY interview with VentureBeat. [article starts with lack of publicity for Julia Computing -- similarly, with SageMath, Inc., I am not seeking big publicity at present, and would still keep a relatively low profile. This may change as a result of work over Summer 2015.] VentureBeat: Do you have any venture backing? Have you been approached about funding? Will you hire more? Who is on the team now other than you, Stefan, Jeff, Alan, Deepak Vinchhi, and Keno Fischer? Are there any physical offices? SageMath, Inc.: We have taken an investment from one investor (not VC). We are not self-funded and have so far not been profitable. We have no offices. VentureBeat: Do you have paying customers yet? SageMath, Inc: Yes, there were 20 paying customers so far this money (May). VentureBeat: Do you have a sense of the current SageMath user base. SageMath, Inc: Right now Google Analytics list 2,466 daily (and 53,181 monthly) active users of the http://sagemath.org website and 2,341 daily (and 33,039 monthly) active users of https://cloud.sagemath.com. Our devel server http://trac.sagemath.org/ lists 516 developers. SageMath, Inc: (They get defensive about open source versus closed source in the article here. Just like with Julia, with SageMath, Inc. we are not going to have a crippled open source version.) VentureBeat: Any plans to do partnerships or integrations? SageMath, Inc: SageMathCloud runs on Google Compute Engine. There are opportunities to integrate with learning management systems, but no concrete plans. VentureBeat: Talk about adoption at web companies and growth in the SageMath community in general. SageMath, Inc: I have little information about how or if web companies use SageMath. Whenever I suggest to people at such places that they don't, they usually provide counterexamples. And when I meet random people at tech meetups... they often know about SageMath or have even used it some in their tech work. Microsoft and Google have been solidly supportive of the SageMath project in many ways since 2006.Since SageMath is partly a big Python library, it can easily integrate with existing workflows in some environments. DISCLAIMER: This is a fake interview for informational purposes only. I never talked with VentureBeat. That said, my comments about SageMath, Inc. are official. -- William Stein Founder/CEO of SageMath, Inc. (http://sagemath.com) 206-419-0925 -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Posets, is_sublattice()
issubset and the like are things from (IIRC) very old Python. You should strive to follow current naming schemes: is_sublattice. Best, Travis On Thursday, May 28, 2015 at 11:34:05 AM UTC-7, Jori Mäntysalo wrote: On Thu, 28 May 2015, Travis Scrimshaw wrote: I would have one method called is_sublattice() which takes some kind of set and checks if that set of elements forms a sublattice. You could then specialize this by checking the type of the input to see if it is a lattice, and if so, only check element containment. What about the name? A.issubet(B) on sets mean that B is bigger set containing A. Same for A.is_subset(B) on graphs. has_sublattice()? -- Jori Mäntysalo -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Posets, is_sublattice()
Ah, yes; good point. How about is_superlattice() then? Best, Travis On Thursday, May 28, 2015 at 12:21:22 PM UTC-7, Jori Mäntysalo wrote: On Thu, 28 May 2015, Travis Scrimshaw wrote: issubset and the like are things from (IIRC) very old Python. You should strive to follow current naming schemes: is_sublattice. But it will be reversed then. A.is_subgraph(B) means that B is bigger one, but here A.is_sublattice(B) would mean that A is bigger one and B is the subset. -- Jori Mäntysalo -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: MathJax limit for TeX expression in notebook
On Thursday, 28 May 2015 16:45:20 UTC-6, kcrisman wrote: On Thursday, May 28, 2015 at 5:21:01 PM UTC-4, Michal Bejger wrote: Dear Sage Devs, I have a question related to the limited length of a TeX expression rendered by MathJax in the notebook - the variable responsible for it is MAXBUFFER [1], and its default value is 5*1024 (5KB), which in most cases is quite all right but sometimes, for example when printing tensor components in SageManifolds (sagemanifolds.obspm.fr), it's not enough. Is it possible to pass a MathJax preamble in the notebook? Or alternatively, can we have MAXBUFFER increased in Sage local/share/mathjax/config/TeX-AMS_HTML-full.js default configuration? In principle you should be able to just hardcode a different value in in your own notebook server. I suspect my students are hitting the same issue from time to time when working on optimization problems, I just had no idea how it can be fixed. What is the downside of increasing this buffer to say 10 or 20 kilobytes? My understanding is that the same MathJax is now shared by all frontends, so improvements will affect everybody! Andrey -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: Posets, is_sublattice()
Hi! On 2015-05-28, Jori =?ISO-8859-1?Q?M=E4ntysalo?= jori.mantys...@uta.fi wrote: On Thu, 28 May 2015, Travis Scrimshaw wrote: issubset and the like are things from (IIRC) very old Python. You should strive to follow current naming schemes: is_sublattice. But it will be reversed then. A.is_subgraph(B) means that B is bigger one, but here A.is_sublattice(B) would mean that A is bigger one and B is the subset. Please remain consistent with with word order in English. - A.is_sublattice(B) means A is sublattice of B. - A.has_sublattice(B) means A has a sublattice B. And please also be consistent with similar existent examples in SageMath: sage: Rings().is_subcategory(Sets()) True sage: SymmetricGroup(4).is_subgroup(SymmetricGroup(5)) True Cheers, Simon -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] sage and jupyterhub
My question is possibly stupid, but I could not find a satisfying answer by googling... Can sage work with *jupyterhub*? Or will it be possible? I am planing to build a jupyterhub server for the French mathematician community, and, of course, it would be cool to run sage in it. Yours, t;d. -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout. attachment: tdumont.vcf
[sage-devel] Posets, is_sublattice()
I am thinking about adding a small function to check if a) given lattice is a sublattice of other, or b) given list of elements of a lattice forms a sublattice, i.e. is closed set under meet and join of the lattice. Would this (or one of those) be useful? A one function or two functions? Naming of it, or those? I have thinked this for few days without getting good result. * * * Bugs can be corrected. Slow algorithms can be changed to faster. Stupid names etc. are harder to handle. Hence I ask this kind of small questions. -- Jori Mäntysalo
Re: [sage-devel] sage binaries useless for development
Hi The PPA is now updated, and 32bit has returned (only to Ubuntu 14.04+14.10+15.04 for now; perhaps 12.04 later). The debs have also almost halved in size. Regards, Jan On 27 May 2015 at 22:33, Jan Groenewald j...@aims.ac.za wrote: Hi I only need install file not deps. Also, the new PPA will include only EN and FR docs. Please let me know if PPA users are inconvenienced by this. Maybe we have the time to split the packages but adding back a language is quick. Regards, Jan On 27 May 2015 at 20:13, Jan Groenewald j...@aims.ac.za wrote: Hi Looks like I need build/install and build/deps (checking whether I need only one of them). Regards, Jan On 27 May 2015 at 18:54, Jan Groenewald j...@aims.ac.za wrote: Hi On 27 May 2015 at 18:17, Jan Groenewald j...@aims.ac.za wrote: Hi Apparently I do need something else (than local and doc/src/output): I added bootstrap but this still occurs. Regards, Jan 0 root@muizenberg:~#dpkg -i sagemath-upstream-binary_6.7ppa2_amd64.deb (Reading database ... 586682 files and directories currently installed.) Preparing to unpack sagemath-upstream-binary_6.7ppa2_amd64.deb ... Unpacking sagemath-upstream-binary (6.7ppa2) over (6.7) ... Setting up sagemath-upstream-binary (6.7ppa2) ... Running Sage once as root to set paths Error: SAGE_ROOT is set to a bad value: SAGE_ROOT=/usr/lib/sagemath You must correct it or erase it and run this script from the SAGE_ROOT or SAGE_ROOT/local/bin/ directory. Error setting environment variables by sourcing '/usr/lib/sagemath/local/bin/sage-env'; possibly contact sage-devel (see http://groups.google.com/group/sage-devel). dpkg: error processing package sagemath-upstream-binary (--install): subprocess installed post-installation script returned error exit status 1 Processing triggers for mime-support (3.54ubuntu1.1) ... Processing triggers for gnome-menus (3.10.1-0ubuntu2) ... Processing triggers for desktop-file-utils (0.22-1ubuntu1) ... Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Errors were encountered while processing: sagemath-upstream-binary 1 root@muizenberg:~# Any ideas? Regards, Jan On 27 May 2015 at 13:47, Jan Groenewald j...@aims.ac.za wrote: Apart from local and src/doc/output I don't need anything else? Regards, Jan On 27 May 2015 at 13:13, Volker Braun vbraun.n...@gmail.com wrote: Sounds good to me! On Wednesday, May 27, 2015 at 1:10:20 PM UTC+2, François wrote: On 27/05/2015, at 22:58, Volker Braun vbrau...@gmail.com wrote: On Wednesday, May 27, 2015 at 11:42:59 AM UTC+2, Jan Groenewald wrote: Apart from the local folder to I actually need anything else here to run sage? The documentation output is unfortunately still under /src/doc/output. Patches would be welcome! Well, where would be a good spot to install it? In sage-on-gentoo I finally settled in at /usr/share/doc/sage/$lang /usr/share/doc/sage/html/$lang /usr/share/doc/sage/pdf/$lang Which would correspond to SAGE_LOCAL/share/doc/sage I also have a mechanism to only build given $lang - with “en” being mandatory for all purpose. François -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout. -- .~. /V\ Jan Groenewald /( )\www.aims.ac.za ^^-^^ -- .~. /V\ Jan Groenewald /( )\www.aims.ac.za ^^-^^ -- .~. /V\ Jan Groenewald /( )\www.aims.ac.za ^^-^^ -- .~. /V\ Jan Groenewald /( )\www.aims.ac.za ^^-^^ -- .~. /V\ Jan Groenewald /( )\www.aims.ac.za ^^-^^ -- .~. /V\ Jan Groenewald /( )\www.aims.ac.za ^^-^^ -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] How does trac's automerging work?
Hello, I frequently see red links on Trac git branches with the message trac's automerging failed. But when I try to merge with latest develop using the git command line, the merge succeeds without conflicts. Why is this? What does the Trac git plugin do to merge? And a different problem is that ticket dependencies aren't taken into account, but I know I lost that battle long ago. Jeroen. -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: How does trac's automerging work?
The commandline git client is better at merging, so sometimes it succeeds where pygit2/libgit2 fails. On Thursday, May 28, 2015 at 8:42:46 AM UTC+2, Jeroen Demeyer wrote: Hello, I frequently see red links on Trac git branches with the message trac's automerging failed. But when I try to merge with latest develop using the git command line, the merge succeeds without conflicts. Why is this? What does the Trac git plugin do to merge? And a different problem is that ticket dependencies aren't taken into account, but I know I lost that battle long ago. Jeroen. -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Vector weirdness: to be or not to be immutable
Thanks for the clarifications, Vincent. On Wednesday, May 27, 2015 at 10:36:31 PM UTC+2, vdelecroix wrote: What I suggesteded is to modify the code of vector subspace in such way that the elements have parent the ambient space and not the subspace. Which is precisely related to the end of your e-mail. Frankly, I completely agree. But that could have implications for many users in many places. Is the current behaviour a result of long discussions and thought? Should more people chip in before we rush in and change this? For your sided question, the fastest way is to use Element._set_parent() ... Ok, thanks. The question in your case is rather do *you* *want* that the elements have parent the linear code? Ok, clear explanation and very good question. I certainly don't want the parent to be the vector subspace (as now); it should either be the full vector space or the code. I think the former makes most sense, but that's due to the same logic as above for vector subspaces... Johan -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] error upgrade 6.7.rc0 - 6.8.beta1
Hello, Trying to upgrade sage 6.7.rc0 to 6.8.beta1 on a computer (via git) I got the following error at the very begining of make Attempting to download package python-2.7.9 Downloading the Sage mirror list Searching fastest mirror ... Traceback (most recent call last): File sage-download-file line 308 in _init_checksum with open(checksums_ini, 'rt') as f: IOError: [Errno 2]: No such file or directory Does anybody know what I did wrong? how to solve the issue? 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: error upgrade 6.7.rc0 - 6.8.beta1
Indeed, sage-download-file tries to look into pkg_dir = SAGE_ROOT/build/pkgs/python which does not exist... there are python2 and python3 in there. Vincent On 28/05/15 12:18, Vincent Delecroix wrote: Hello, Trying to upgrade sage 6.7.rc0 to 6.8.beta1 on a computer (via git) I got the following error at the very begining of make Attempting to download package python-2.7.9 Downloading the Sage mirror list Searching fastest mirror ... Traceback (most recent call last): File sage-download-file line 308 in _init_checksum with open(checksums_ini, 'rt') as f: IOError: [Errno 2]: No such file or directory Does anybody know what I did wrong? how to solve the issue? 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] dpkg: error processing package sagemath-upstream-binary (--configure):
hi, I wanted to upgrade the system (Linux Mint 17), but SageMath sagemath-upstream-binary fails: = # aptitude upgrade The following partially installed packages will be configured: sagemath-upstream-binary No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B of archives. After unpacking 0 B will be used. Setting up sagemath-upstream-binary (6.7ppa4) ... Running Sage once as root to set paths ┌┐ │ SageMath Version 6.7, Release Date: 2015-05-17 │ │ Type notebook() for the browser-based notebook interface.│ │ Type help() for help.│ └┘ Traceback (most recent call last): File /usr/lib/sagemath/local/bin/sage-ipython, line 7, in module from sage.repl.interpreter import SageTerminalApp File /usr/lib/sagemath/local/lib/python2.7/site-packages/sage/__init__.py, line 3, in module from sage.repl.ipython_extension import load_ipython_extension File /usr/lib/sagemath/local/lib/python2.7/site-packages/sage/repl/ipython_extension.py, line 59, in module from IPython.core.magic import Magics, magics_class, line_magic File /usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/__init__.py, line 45, in module from .config.loader import Config File /usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/config/__init__.py, line 6, in module from .application import * File /usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/config/application.py, line 9, in module import json File /usr/lib/sagemath/local/lib/python/json/__init__.py, line 108, in module from .decoder import JSONDecoder File /usr/lib/sagemath/local/lib/python/json/decoder.py, line 5, in module import struct File /usr/lib/sagemath/local/lib/python/struct.py, line 1, in module from _struct import * ImportError: No module named _struct dpkg: error processing package sagemath-upstream-binary (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: sagemath-upstream-binary E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Setting up sagemath-upstream-binary (6.7ppa4) ... Running Sage once as root to set paths ┌┐ │ SageMath Version 6.7, Release Date: 2015-05-17 │ │ Type notebook() for the browser-based notebook interface.│ │ Type help() for help.│ └┘ Traceback (most recent call last): File /usr/lib/sagemath/local/bin/sage-ipython, line 7, in module from sage.repl.interpreter import SageTerminalApp File /usr/lib/sagemath/local/lib/python2.7/site-packages/sage/__init__.py, line 3, in module from sage.repl.ipython_extension import load_ipython_extension File /usr/lib/sagemath/local/lib/python2.7/site-packages/sage/repl/ipython_extension.py, line 59, in module from IPython.core.magic import Magics, magics_class, line_magic File /usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/__init__.py, line 45, in module from .config.loader import Config File /usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/config/__init__.py, line 6, in module from .application import * File /usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/config/application.py, line 9, in module import json File /usr/lib/sagemath/local/lib/python/json/__init__.py, line 108, in module from .decoder import JSONDecoder File /usr/lib/sagemath/local/lib/python/json/decoder.py, line 5, in module import struct File /usr/lib/sagemath/local/lib/python/struct.py, line 1, in module from _struct import * ImportError: No module named _struct dpkg: error processing package sagemath-upstream-binary (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: sagemath-upstream-binary == any suggestions? cu denny -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] dpkg: error processing package sagemath-upstream-binary (--configure):
Hi Denny, Have you built any local python versions? What is root's default python version? Or can you move your /usr/local or /root/.local out of the way and try dpkg --configure -a The main error is ImportError: No module named _struct, which a quick google shows other people have had unrelated to sage. Is Linux Mint 17 based on Ubuntu 14.04? (Or later?) Some people fixed this by reinstalling python and python-support or by removing python-idle sudo apt-get --reinstall install python python-support http://unix.stackexchange.com/questions/150106/importerror-no-module-named-struct-error-when-managing-packages Does your system python give an error on this? from _struct import * Regards, Jan On 28 May 2015 at 11:40, Denny Fuchs denny.schi...@gmail.com wrote: hi, I wanted to upgrade the system (Linux Mint 17), but SageMath sagemath-upstream-binary fails: = # aptitude upgrade The following partially installed packages will be configured: sagemath-upstream-binary No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B of archives. After unpacking 0 B will be used. Setting up sagemath-upstream-binary (6.7ppa4) ... Running Sage once as root to set paths ┌┐ │ SageMath Version 6.7, Release Date: 2015-05-17 │ │ Type notebook() for the browser-based notebook interface.│ │ Type help() for help.│ └┘ Traceback (most recent call last): File /usr/lib/sagemath/local/bin/sage-ipython, line 7, in module from sage.repl.interpreter import SageTerminalApp File /usr/lib/sagemath/local/lib/python2.7/site-packages/sage/__init__.py, line 3, in module from sage.repl.ipython_extension import load_ipython_extension File /usr/lib/sagemath/local/lib/python2.7/site-packages/sage/repl/ipython_extension.py, line 59, in module from IPython.core.magic import Magics, magics_class, line_magic File /usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/__init__.py, line 45, in module from .config.loader import Config File /usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/config/__init__.py, line 6, in module from .application import * File /usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/config/application.py, line 9, in module import json File /usr/lib/sagemath/local/lib/python/json/__init__.py, line 108, in module from .decoder import JSONDecoder File /usr/lib/sagemath/local/lib/python/json/decoder.py, line 5, in module import struct File /usr/lib/sagemath/local/lib/python/struct.py, line 1, in module from _struct import * ImportError: No module named _struct dpkg: error processing package sagemath-upstream-binary (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: sagemath-upstream-binary E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Setting up sagemath-upstream-binary (6.7ppa4) ... Running Sage once as root to set paths ┌┐ │ SageMath Version 6.7, Release Date: 2015-05-17 │ │ Type notebook() for the browser-based notebook interface.│ │ Type help() for help.│ └┘ Traceback (most recent call last): File /usr/lib/sagemath/local/bin/sage-ipython, line 7, in module from sage.repl.interpreter import SageTerminalApp File /usr/lib/sagemath/local/lib/python2.7/site-packages/sage/__init__.py, line 3, in module from sage.repl.ipython_extension import load_ipython_extension File /usr/lib/sagemath/local/lib/python2.7/site-packages/sage/repl/ipython_extension.py, line 59, in module from IPython.core.magic import Magics, magics_class, line_magic File /usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/__init__.py, line 45, in module from .config.loader import Config File /usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/config/__init__.py, line 6, in module from .application import * File /usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/config/application.py, line 9, in module import json File /usr/lib/sagemath/local/lib/python/json/__init__.py, line 108, in module from .decoder import JSONDecoder File /usr/lib/sagemath/local/lib/python/json/decoder.py, line 5, in module import struct File /usr/lib/sagemath/local/lib/python/struct.py, line 1, in module from _struct import * ImportError: No module named _struct dpkg: error processing package
Re: [sage-devel] error upgrade 6.7.rc0 - 6.8.beta1
See http://trac.sagemath.org/ticket/18535 -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] error upgrade 6.7.rc0 - 6.8.beta1
On 2015-05-28 12:18, Vincent Delecroix wrote: Hello, Trying to upgrade sage 6.7.rc0 to 6.8.beta1 on a computer (via git) I got the following error at the very begining of make Can you send build/Makefile -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: error upgrade 6.7.rc0 - 6.8.beta1
On 2015-05-28 12:24, Vincent Delecroix wrote: Indeed, sage-download-file tries to look into pkg_dir = SAGE_ROOT/build/pkgs/python which does not exist... there are python2 and python3 in there. I think Nathann predicted this bug in http://trac.sagemath.org/ticket/17607#comment:8 -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] error upgrade 6.7.rc0 - 6.8.beta1
On 2015-05-28 12:18, Vincent Delecroix wrote: Hello, Trying to upgrade sage 6.7.rc0 to 6.8.beta1 on a computer (via git) I got the following error at the very begining of make Can you please do: $ rm -rf logs $ make and send logs/install.log and build/Makefile -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: dpkg: error processing package sagemath-upstream-binary (--configure):
hi Jan, Yes, Mint is based on Ubuntu and I found the same website. I tried the same commands, but it changed nothing. = # python Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] on linux2 Type help, copyright, credits or license for more information. from _struct import * = I have only Python packages installed, via Apt: ii python 2.7.5-5ubuntu3 amd64 interactive high-level object-oriented language (default version) ii python3 3.4.0-0ubuntu2 amd64 interactive high-level object-oriented language (default python3 version) for the moment, I remove the package completely. cu denny -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: Compiling error for Sage 6.7 on OS X 10.10.3, XCode 6.3.1
On 5/27/15 22:09, Jason Grout wrote: On 5/27/15 18:38, Justin C. Walker wrote: Are you building multi-threaded? Interestingly, this may be the problem. When I do: export MAKE=make -j1 and then build, it seems like I pass the point where I had errors before in building gcc. FYI, gcc built fine with make -j1. I stopped the build process halfway through building the singular package and unset the MAKE=make -j1 environment variable, so then make reverted to the default (which I guess is make -j6 -l5 for my case), and the rest of the build proceeded smoothly. Weird. Given the issues others were having, would it make sense to build gcc on XCode 6.3.1 single-threaded by default? I can also post my install.log with errors if someone wants to take a look. Thanks, Jason -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: error upgrade 6.7.rc0 - 6.8.beta1
Adding a symbolic link python - python2 seems to solve the issue (at least it started compiling). Vincent On 28/05/15 12:24, Vincent Delecroix wrote: Indeed, sage-download-file tries to look into pkg_dir = SAGE_ROOT/build/pkgs/python which does not exist... there are python2 and python3 in there. Vincent On 28/05/15 12:18, Vincent Delecroix wrote: Hello, Trying to upgrade sage 6.7.rc0 to 6.8.beta1 on a computer (via git) I got the following error at the very begining of make Attempting to download package python-2.7.9 Downloading the Sage mirror list Searching fastest mirror ... Traceback (most recent call last): File sage-download-file line 308 in _init_checksum with open(checksums_ini, 'rt') as f: IOError: [Errno 2]: No such file or directory Does anybody know what I did wrong? how to solve the issue? 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: documentation bug: git-trac instructions don't mention git commit
On Monday, 25 May 2015 23:22:03 UTC+1, Ursula Whitcher wrote: I found a documentation bug: literally following the instructions for ticket creation and updates at http://doc.sagemath.org/html/en/developer/git_trac.html results in the publication of empty tickets, because there's no mention of *committing* changes. This is now ticket 18504: http://trac.sagemath.org/ticket/18504 If I were to fix these instructions, I would add something along the lines of, Now, edit some files. You can save the changes you have made by typing 'git commit -a' and recording a commit message. Your commit message should be a short summary of what you have done, featuring an evocative verb. However, I am by no means a git expert. Are there other important commands we should recommend here? I won't recommend '-a'. Explicit addition of files using 'git add' is safer as to you do not accidentally push too much upstream... --Ursula. -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: dpkg: error processing package sagemath-upstream-binary (--configure):
Hi Denny, I'm happy to assist with further debugging. You can probably still find the deb in /var/cache/apt/archives/ and unpack it elsewhere with, say, mkdir /tmp/sage; dpkg -x sagemath-upstream-binary_6.7ppa4_amd64.deb /tmp/sage/ and cd into that to try run /tmp/sage/usr/bin/sage to find out more. Regards, Jan On 28 May 2015 at 12:45, Denny Fuchs denny.schi...@gmail.com wrote: hi Jan, Yes, Mint is based on Ubuntu and I found the same website. I tried the same commands, but it changed nothing. = # python Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] on linux2 Type help, copyright, credits or license for more information. from _struct import * = I have only Python packages installed, via Apt: ii python 2.7.5-5ubuntu3 amd64 interactive high-level object-oriented language (default version) ii python3 3.4.0-0ubuntu2 amd64 interactive high-level object-oriented language (default python3 version) for the moment, I remove the package completely. cu denny -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout. -- .~. /V\ Jan Groenewald /( )\www.aims.ac.za ^^-^^ -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Strange bug in poset plot
After D = Poset(( divisors(12), attrcall(divides) )) mb={x:D.mobius_function(x, D.top()) for x in D} labels={x:(x, mb[x]) for x in D} v_colors={red: [e for e in D if mb[e]0], gray: [e for e in D if mb[e]==0], blue: [e for e in D if mb[e]0]} it seems that D.plot(element_labels=labels) and D.plot(vertex_colors=v_colors, vertex_shape=s, vertex_size=2000, figsize=6) works, but D.plot(element_labels=labels, vertex_colors=v_colors, vertex_shape=s, vertex_size=2000, figsize=6) says Traceback (click to the left of this block for traceback) ... KeyError: 4 Why so? -- Jori Mäntysalo
[sage-devel] Re: documentation bug: git-trac instructions don't mention git commit
I won't recommend '-a'. Explicit addition of files using 'git add' is safer as to you do not accidentally push too much upstream... I 100% agree, esp. since sometimes there are extra changes lying around - one of the few places I like git better than Mercurial. I think I mentioned something along these lines in the sagenb release instructions, and if someone cc:ed me on a pull request to add info about that to SageMath's, I'd review that. -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: Strange bug in poset plot
This is because the graph is relabelled before being send to plot. You must give the new labels as values for the coloring dict. sage: D = Poset(( divisors(12), attrcall(divides) )) sage: mb={x:D.mobius_function(x, D.top()) for x in D} sage: labels={x:(x, mb[x]) for x in D} sage: v_colors={red: [e for e in D if mb[e]0], gray: [e for e in D if mb[e]==0], blue: [e for e in D if mb[e]0]} sage: v_colors={red: [labels[e] for e in D if mb[e]0], gray: [labels[e] for e in D if mb[e]==0], blue: [labels[e] for e in D if mb[e]0]} sage: D.plot(element_labels=labels, vertex_colors=v_colors, vertex_shape=s, vertex_size=2000, figsize=6) Le jeudi 28 mai 2015 15:15:17 UTC+2, Jori Mäntysalo a écrit : After D = Poset(( divisors(12), attrcall(divides) )) mb={x:D.mobius_function(x, D.top()) for x in D} labels={x:(x, mb[x]) for x in D} v_colors={red: [e for e in D if mb[e]0], gray: [e for e in D if mb[e]==0], blue: [e for e in D if mb[e]0]} it seems that D.plot(element_labels=labels) and D.plot(vertex_colors=v_colors, vertex_shape=s, vertex_size=2000, figsize=6) works, but D.plot(element_labels=labels, vertex_colors=v_colors, vertex_shape=s, vertex_size=2000, figsize=6) says Traceback (click to the left of this block for traceback) ... KeyError: 4 Why so? -- Jori Mäntysalo -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: dpkg: error processing package sagemath-upstream-binary (--configure):
Hi Can you run find /usr/lib/sagemath/ -name _collections* Regards, Jan On 28 May 2015 at 16:39, Adrian Lam adrianiain...@gmail.com wrote: Jan Groenewald jan at aims.ac.za writes: Hi Denny, I'm happy to assist with further debugging. You can probably still find the deb in /var/cache/apt/archives/ and unpack it elsewhere with, say, mkdir /tmp/sage; dpkg -x sagemath-upstream-binary_6.7ppa4_amd64.deb /tmp/sage/ and cd into that to try run /tmp/sage/usr/bin/sage to find out more. Regards, Jan Reproduced on Ubuntu 14.04.2. The same thing happens for the unpack elsewhere method. Furthermore, it seems that all built-in Python modules are not imported correctly. $ sage -n Traceback (most recent call last): File /usr/lib/sagemath/local/bin/sage-notebook, line 7, in module import argparse File /usr/lib/sagemath/local/lib/python/argparse.py, line 85, in module import collections as _collections File /usr/lib/sagemath/local/lib/python/collections.py, line 8, in module from _collections import deque, defaultdict ImportError: No module named _collections $ $ $ sage -p Traceback (most recent call last): File /usr/lib/sagemath/local/bin/sage-run, line 4, in module from subprocess import call File /usr/lib/sagemath/local/lib/python/subprocess.py, line 427, in module import select ImportError: No module named select $ $ sage -v SageMath Version 6.7, Release Date: 2015-05-17 $ All the modules that fail to be imported (_struct, _collections and select) are built-in modules. -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout. -- .~. /V\ Jan Groenewald /( )\www.aims.ac.za ^^-^^ -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: dpkg: error processing package sagemath-upstream-binary (--configure):
Jan Groenewald jan at aims.ac.za writes: Hi Can you run find /usr/lib/sagemath/ -name _collections* Regards, Jan $ find /usr/lib/sagemath/ -name _collections* /usr/lib/sagemath/local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg /pip/_vendor/requests/packages/urllib3/_collections.py -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: dpkg: error processing package sagemath-upstream-binary (--configure):
I get the same if I apt-get upgrade instead of dpkg -i sagemath*deb (which I did to test). You might in the meantime fix it by sudo dpkg -i /var/cache/apt/archives/sagemath*6.7ppa4*deb Regards, Jan On 28 May 2015 at 17:36, Jan Groenewald j...@aims.ac.za wrote: Hi I get 2 root@muizenberg:/usr/lib/sagemath#find . -name _collections* ./local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/_collections.py ./local/lib/python2.7/lib-dynload/_collections.so 0 root@muizenberg:/usr/lib/sagemath# I'm not sure why you don't have that. I'll have new deb by the latest Monday, maybe before. I think I currently install this and am missing something: 0 jan@snapperkob:~/src/sagemath-upstream-binary/sagemath-upstream-binary/debian$cat install.in # to instruct dh_install @ARCH@/build/install /usr/lib/sagemath/build @ARCH@/local /usr/lib/sagemath @ARCH@/sage /usr/lib/sagemath @ARCH@/src/doc/output/doctrees/en /usr/lib/sagemath/src/doc/output/doctrees @ARCH@/src/doc/output/doctrees/fr /usr/lib/sagemath/src/doc/output/doctrees @ARCH@/src/doc/output/html/en /usr/lib/sagemath/src/doc/output/html @ARCH@/src/doc/output/html/fr /usr/lib/sagemath/src/doc/output/html @ARCH@/src/doc/output/inventory/en /usr/lib/sagemath/src/doc/output/inventory @ARCH@/src/doc/output/inventory/fr /usr/lib/sagemath/src/doc/output/inventory @ARCH@/COPYING.txt /usr/lib/sagemath @ARCH@/README.txt /usr/lib/sagemath @ARCH@/VERSION.txt /usr/lib/sagemath debian/sagemath.desktop /usr/share/applications Regards, Jan On 28 May 2015 at 17:00, Adrian Lam adrianiain...@gmail.com wrote: Jan Groenewald jan at aims.ac.za writes: Hi Can you run find /usr/lib/sagemath/ -name _collections* Regards, Jan $ find /usr/lib/sagemath/ -name _collections* /usr/lib/sagemath/local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg /pip/_vendor/requests/packages/urllib3/_collections.py -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout. -- .~. /V\ Jan Groenewald /( )\www.aims.ac.za ^^-^^ -- .~. /V\ Jan Groenewald /( )\www.aims.ac.za ^^-^^ -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: dpkg: error processing package sagemath-upstream-binary (--configure):
Hi I get 2 root@muizenberg:/usr/lib/sagemath#find . -name _collections* ./local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/_collections.py ./local/lib/python2.7/lib-dynload/_collections.so 0 root@muizenberg:/usr/lib/sagemath# I'm not sure why you don't have that. I'll have new deb by the latest Monday, maybe before. I think I currently install this and am missing something: 0 jan@snapperkob:~/src/sagemath-upstream-binary/sagemath-upstream-binary/debian$cat install.in # to instruct dh_install @ARCH@/build/install /usr/lib/sagemath/build @ARCH@/local /usr/lib/sagemath @ARCH@/sage /usr/lib/sagemath @ARCH@/src/doc/output/doctrees/en /usr/lib/sagemath/src/doc/output/doctrees @ARCH@/src/doc/output/doctrees/fr /usr/lib/sagemath/src/doc/output/doctrees @ARCH@/src/doc/output/html/en /usr/lib/sagemath/src/doc/output/html @ARCH@/src/doc/output/html/fr /usr/lib/sagemath/src/doc/output/html @ARCH@/src/doc/output/inventory/en /usr/lib/sagemath/src/doc/output/inventory @ARCH@/src/doc/output/inventory/fr /usr/lib/sagemath/src/doc/output/inventory @ARCH@/COPYING.txt /usr/lib/sagemath @ARCH@/README.txt /usr/lib/sagemath @ARCH@/VERSION.txt /usr/lib/sagemath debian/sagemath.desktop /usr/share/applications Regards, Jan On 28 May 2015 at 17:00, Adrian Lam adrianiain...@gmail.com wrote: Jan Groenewald jan at aims.ac.za writes: Hi Can you run find /usr/lib/sagemath/ -name _collections* Regards, Jan $ find /usr/lib/sagemath/ -name _collections* /usr/lib/sagemath/local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg /pip/_vendor/requests/packages/urllib3/_collections.py -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout. -- .~. /V\ Jan Groenewald /( )\www.aims.ac.za ^^-^^ -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: dpkg: error processing package sagemath-upstream-binary (--configure):
No, it doesn't fix it, but it helps me narrow down the problem. Will see how quickly I can fix it. Regards, Jan On 28 May 2015 at 17:46, Jan Groenewald j...@aims.ac.za wrote: I get the same if I apt-get upgrade instead of dpkg -i sagemath*deb (which I did to test). You might in the meantime fix it by sudo dpkg -i /var/cache/apt/archives/sagemath*6.7ppa4*deb Regards, Jan On 28 May 2015 at 17:36, Jan Groenewald j...@aims.ac.za wrote: Hi I get 2 root@muizenberg:/usr/lib/sagemath#find . -name _collections* ./local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/_collections.py ./local/lib/python2.7/lib-dynload/_collections.so 0 root@muizenberg:/usr/lib/sagemath# I'm not sure why you don't have that. I'll have new deb by the latest Monday, maybe before. I think I currently install this and am missing something: 0 jan@snapperkob:~/src/sagemath-upstream-binary/sagemath-upstream-binary/debian$cat install.in # to instruct dh_install @ARCH@/build/install /usr/lib/sagemath/build @ARCH@/local /usr/lib/sagemath @ARCH@/sage /usr/lib/sagemath @ARCH@/src/doc/output/doctrees/en /usr/lib/sagemath/src/doc/output/doctrees @ARCH@/src/doc/output/doctrees/fr /usr/lib/sagemath/src/doc/output/doctrees @ARCH@/src/doc/output/html/en /usr/lib/sagemath/src/doc/output/html @ARCH@/src/doc/output/html/fr /usr/lib/sagemath/src/doc/output/html @ARCH@/src/doc/output/inventory/en /usr/lib/sagemath/src/doc/output/inventory @ARCH@/src/doc/output/inventory/fr /usr/lib/sagemath/src/doc/output/inventory @ARCH@/COPYING.txt /usr/lib/sagemath @ARCH@/README.txt /usr/lib/sagemath @ARCH@/VERSION.txt /usr/lib/sagemath debian/sagemath.desktop /usr/share/applications Regards, Jan On 28 May 2015 at 17:00, Adrian Lam adrianiain...@gmail.com wrote: Jan Groenewald jan at aims.ac.za writes: Hi Can you run find /usr/lib/sagemath/ -name _collections* Regards, Jan $ find /usr/lib/sagemath/ -name _collections* /usr/lib/sagemath/local/lib/python2.7/site-packages/pip-6.1.1-py2.7.egg /pip/_vendor/requests/packages/urllib3/_collections.py -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout. -- .~. /V\ Jan Groenewald /( )\www.aims.ac.za ^^-^^ -- .~. /V\ Jan Groenewald /( )\www.aims.ac.za ^^-^^ -- .~. /V\ Jan Groenewald /( )\www.aims.ac.za ^^-^^ -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: Posets, is_sublattice()
Hey Jori, I would have one method called is_sublattice() which takes some kind of set and checks if that set of elements forms a sublattice. You could then specialize this by checking the type of the input to see if it is a lattice, and if so, only check element containment. Best, Travis On Thursday, May 28, 2015 at 12:49:18 AM UTC-7, Jori Mäntysalo wrote: I am thinking about adding a small function to check if a) given lattice is a sublattice of other, or b) given list of elements of a lattice forms a sublattice, i.e. is closed set under meet and join of the lattice. Would this (or one of those) be useful? A one function or two functions? Naming of it, or those? I have thinked this for few days without getting good result. * * * Bugs can be corrected. Slow algorithms can be changed to faster. Stupid names etc. are harder to handle. Hence I ask this kind of small questions. -- Jori Mäntysalo -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.