Re: [sage-support] Re: Crystals won't view in jupiter notebook

2022-06-02 Thread John H Palmieri
I've opened https://trac.sagemath.org/ticket/33947 to trac this problem.

On Thursday, June 2, 2022 at 3:30:49 PM UTC-7 John H Palmieri wrote:

> For me, `show(G)` works, but not `view(G)`. `show(G)` does not use LaTeX, 
> and the problem is the LaTeX code produced by `view(G)`. You can also see 
> that code with `latex(G)` or `latex(B)`.
>
> I'm not sure what you're referring to in your first sentence, "Well, that 
> didn't work for me."
>
> On Thursday, June 2, 2022 at 2:11:33 PM UTC-7 raymond@gmail.com wrote:
>
>> Well, that didn't work for me.
>> But changing "view" to "show" produced a script that I can tell is 
>> targeted for something, not pdflatex.  Let me know if you know; maybe 
>> graphviz converter?  Loading doc2tex didn't help.
>> Anyhow,  here is a "hack" that pops a popup that is correct.  A wrapper 
>> could be built around it.
>>
>> B = crystals.Tableaux(['A',2], shape=[2,1])
>> G = B.digraph()
>> G.set_latex_options(color_by_label = {1:"red", 2:"yellow"})
>> view(G, tightpage=True) # optional - dot2tex graphviz, not tested (opens 
>> external window)
>>
>> This is from: 
>> https://doc.sagemath.org/html/en/thematic_tutorials/lie/crystals.html.
>> The file is labeled sage.pdf, but is hidden.  Since the PDF viewer is 
>> popped, you can save it where you want; manually.
>>
>> I am sure that 
>> https://doc.sagemath.org/html/en/reference/graphs/sage/graphs/generic_graph.html
>> has the key to saving the .PDF programmatically where you want; but I am 
>> going cross-eyed.
>>
>> rrogers
>> On 6/2/22 13:01, John H Palmieri wrote:
>>
>> It's bad LaTeX, but I'm not sure what's producing it. If you run 
>> "view(crystals.Tableaux("A3",shape=[2,1]), debug=True)", then it will first 
>> print the LaTeX code, and if you paste that into a file, it will fail to 
>> compile.
>>
>> On Thursday, June 2, 2022 at 6:42:51 AM UTC-7 HG wrote:
>>
>>> Some time ago, on the list they said it's better to keep to sage-9.2, at 
>>> least I changed 9.3 to 9.2 because latex didn't work.
>>> Le 02/06/2022 à 14:08, Eric Gourgoulhon a écrit :
>>>
>>> I got the same error from the console of Sage 9.7.beta1 running on 
>>> Ubuntu 20.04. 
>>> So it is not specific to Sage 9.3, nor to Windows...
>>>
>>>
>>>
>>> Le mercredi 1 juin 2022 à 23:00:05 UTC+2, dbis...@gmail.com a écrit :
>>>
>>> I have installed Sagemath 9.3 on my windows 10 computer and have run the 
 following code: 
 view(crystals.Tableaux("A3",shape=[2,1]))

 I end up getting this long error: 

 An error occurred. This is pdfTeX, Version 3.141592653-2.6-1.40.24 
 (MiKTeX 22.3) (preloaded format=pdflatex 2022.6.1) 1 JUN 2022 21:54 
 entering extended mode restricted \write18 enabled. %&-line parsing 
 enabled. **\nonstopmode \input{sage.tex} (sage.tex 
 (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls 
 Document Class: article 2021/10/04 v1.4n Standard LaTeX document class 
 (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo 
 File: size10.clo 2021/10/04 v1.4n Standard LaTeX file (size option) ) 
 \c@part=\count185 \c@section=\count186 \c@subsection=\count187 
 \c@subsubsection=\count188 \c@paragraph=\count189 
 \c@subparagraph=\count190 
 \c@figure=\count191 \c@table=\count192 \abovecaptionskip=\skip47 
 \belowcaptionskip=\skip48 \bibindent=\dimen138 ) 
 (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsmath.sty
  
 Package: amsmath 2021/10/15 v2.17l AMS math features \@mathmargin=\skip49 
 For additional information on amsmath, use the `?' option. 
 (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amstext.sty
  
 Package: amstext 2021/08/26 v2.01 AMS text 
 (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsgen.sty 
 File: amsgen.sty 1999/11/30 v2.0 generic functions \@emptytoks=\toks16 
 \ex@=\dimen139 )) 
 (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsbsy.sty 
 Package: amsbsy 1999/11/29 v1.2d Bold Symbols \pmbraise@=\dimen140 ) 
 (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsopn.sty 
 Package: amsopn 2021/08/26 v2.02 operator names ) \inf@bad=\count193 LaTeX 
 Info: Redefining \frac on input line 234. \uproot@=\count194 
 \leftroot@=\count195 LaTeX Info: Redefining \overline on input line 399. 
 \classnum@=\count196 \DOTSCASE@=\count197 LaTeX Info: Redefining \ldots on 
 input line 496. LaTeX Info: Redefining \dots on input line 499. LaTeX 
 Info: 
 Redefining \cdots on input line 620. \Mathstrutbox@=\box50 
 \strutbox@=\box51 \big@size=\dimen141 LaTeX Font Info: Redeclaring font 
 encoding OML on input line 743. LaTeX Font Info: Redeclaring font encoding 
 OMS on input line 744. \macc@depth=\count198 \c@MaxMatrixCols=\count199 
 \dotsspace@=\muskip16 \c@parentequation=\count266 \dspbrk@lvl=\count267 
 \tag@help=\toks17 \row@=\count268 \column@=\count2

Re: [sage-support] Re: Crystals won't view in jupiter notebook

2022-06-02 Thread John H Palmieri
For me, `show(G)` works, but not `view(G)`. `show(G)` does not use LaTeX, 
and the problem is the LaTeX code produced by `view(G)`. You can also see 
that code with `latex(G)` or `latex(B)`.

I'm not sure what you're referring to in your first sentence, "Well, that 
didn't work for me."

On Thursday, June 2, 2022 at 2:11:33 PM UTC-7 raymond@gmail.com wrote:

> Well, that didn't work for me.
> But changing "view" to "show" produced a script that I can tell is 
> targeted for something, not pdflatex.  Let me know if you know; maybe 
> graphviz converter?  Loading doc2tex didn't help.
> Anyhow,  here is a "hack" that pops a popup that is correct.  A wrapper 
> could be built around it.
>
> B = crystals.Tableaux(['A',2], shape=[2,1])
> G = B.digraph()
> G.set_latex_options(color_by_label = {1:"red", 2:"yellow"})
> view(G, tightpage=True) # optional - dot2tex graphviz, not tested (opens 
> external window)
>
> This is from: 
> https://doc.sagemath.org/html/en/thematic_tutorials/lie/crystals.html.
> The file is labeled sage.pdf, but is hidden.  Since the PDF viewer is 
> popped, you can save it where you want; manually.
>
> I am sure that 
> https://doc.sagemath.org/html/en/reference/graphs/sage/graphs/generic_graph.html
> has the key to saving the .PDF programmatically where you want; but I am 
> going cross-eyed.
>
> rrogers
> On 6/2/22 13:01, John H Palmieri wrote:
>
> It's bad LaTeX, but I'm not sure what's producing it. If you run 
> "view(crystals.Tableaux("A3",shape=[2,1]), debug=True)", then it will first 
> print the LaTeX code, and if you paste that into a file, it will fail to 
> compile.
>
> On Thursday, June 2, 2022 at 6:42:51 AM UTC-7 HG wrote:
>
>> Some time ago, on the list they said it's better to keep to sage-9.2, at 
>> least I changed 9.3 to 9.2 because latex didn't work.
>> Le 02/06/2022 à 14:08, Eric Gourgoulhon a écrit :
>>
>> I got the same error from the console of Sage 9.7.beta1 running on Ubuntu 
>> 20.04. 
>> So it is not specific to Sage 9.3, nor to Windows...
>>
>>
>>
>> Le mercredi 1 juin 2022 à 23:00:05 UTC+2, dbis...@gmail.com a écrit :
>>
>> I have installed Sagemath 9.3 on my windows 10 computer and have run the 
>>> following code: 
>>> view(crystals.Tableaux("A3",shape=[2,1]))
>>>
>>> I end up getting this long error: 
>>>
>>> An error occurred. This is pdfTeX, Version 3.141592653-2.6-1.40.24 
>>> (MiKTeX 22.3) (preloaded format=pdflatex 2022.6.1) 1 JUN 2022 21:54 
>>> entering extended mode restricted \write18 enabled. %&-line parsing 
>>> enabled. **\nonstopmode \input{sage.tex} (sage.tex 
>>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls 
>>> Document Class: article 2021/10/04 v1.4n Standard LaTeX document class 
>>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo 
>>> File: size10.clo 2021/10/04 v1.4n Standard LaTeX file (size option) ) 
>>> \c@part=\count185 \c@section=\count186 \c@subsection=\count187 
>>> \c@subsubsection=\count188 \c@paragraph=\count189 \c@subparagraph=\count190 
>>> \c@figure=\count191 \c@table=\count192 \abovecaptionskip=\skip47 
>>> \belowcaptionskip=\skip48 \bibindent=\dimen138 ) 
>>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsmath.sty 
>>> Package: amsmath 2021/10/15 v2.17l AMS math features \@mathmargin=\skip49 
>>> For additional information on amsmath, use the `?' option. 
>>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amstext.sty 
>>> Package: amstext 2021/08/26 v2.01 AMS text 
>>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsgen.sty 
>>> File: amsgen.sty 1999/11/30 v2.0 generic functions \@emptytoks=\toks16 
>>> \ex@=\dimen139 )) 
>>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsbsy.sty 
>>> Package: amsbsy 1999/11/29 v1.2d Bold Symbols \pmbraise@=\dimen140 ) 
>>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsopn.sty 
>>> Package: amsopn 2021/08/26 v2.02 operator names ) \inf@bad=\count193 LaTeX 
>>> Info: Redefining \frac on input line 234. \uproot@=\count194 
>>> \leftroot@=\count195 LaTeX Info: Redefining \overline on input line 399. 
>>> \classnum@=\count196 \DOTSCASE@=\count197 LaTeX Info: Redefining \ldots on 
>>> input line 496. LaTeX Info: Redefining \dots on input line 499. LaTeX Info: 
>>> Redefining \cdots on input line 620. \Mathstrutbox@=\box50 
>>> \strutbox@=\box51 \big@size=\dimen141 LaTeX Font Info: Redeclaring font 
>>> encoding OML on input line 743. LaTeX Font Info: Redeclaring font encoding 
>>> OMS on input line 744. \macc@depth=\count198 \c@MaxMatrixCols=\count199 
>>> \dotsspace@=\muskip16 \c@parentequation=\count266 \dspbrk@lvl=\count267 
>>> \tag@help=\toks17 \row@=\count268 \column@=\count269 \maxfields@=\count270 
>>> \andhelp@=\toks18 \eqnshift@=\dimen142 \alignsep@=\dimen143 
>>> \tagshift@=\dimen144 \tagwidth@=\dimen145 \totwidth@=\dimen146 
>>> \lineht@=\dimen147 \@envbody=\toks19 \multlinegap=\skip50 
>>> \multlinetaggap=\skip51 \mathdisplay@stack

Re: [sage-support] Re: Crystals won't view in jupiter notebook

2022-06-02 Thread Ray Rogers

Well, that didn't work for me.
But changing "view" to "show" produced a script that I can tell is 
targeted for something, not pdflatex.  Let me know if you know; maybe 
graphviz converter?  Loading doc2tex didn't help.
Anyhow,  here is a "hack" that pops a popup that is correct.  A wrapper 
could be built around it.


B = crystals.Tableaux(['A',2], shape=[2,1])
G = B.digraph()
G.set_latex_options(color_by_label = {1:"red", 2:"yellow"})
view(G, tightpage=True) # optional - dot2tex graphviz, not tested (opens 
external window)


This is from: 
https://doc.sagemath.org/html/en/thematic_tutorials/lie/crystals.html.
The file is labeled sage.pdf, but is hidden.  Since the PDF viewer is 
popped, you can save it where you want; manually.


I am sure that 
https://doc.sagemath.org/html/en/reference/graphs/sage/graphs/generic_graph.html
has the key to saving the .PDF programmatically where you want; but I am 
going cross-eyed.


rrogers

On 6/2/22 13:01, John H Palmieri wrote:
It's bad LaTeX, but I'm not sure what's producing it. If you run 
"view(crystals.Tableaux("A3",shape=[2,1]), debug=True)", then it will 
first print the LaTeX code, and if you paste that into a file, it will 
fail to compile.


On Thursday, June 2, 2022 at 6:42:51 AM UTC-7 HG wrote:

Some time ago, on the list they said it's better to keep to
sage-9.2, at least I changed 9.3 to 9.2 because latex didn't work.

Le 02/06/2022 à 14:08, Eric Gourgoulhon a écrit :

I got the same error from the console of Sage 9.7.beta1 running
on Ubuntu 20.04.
So it is not specific to Sage 9.3, nor to Windows...



Le mercredi 1 juin 2022 à 23:00:05 UTC+2, dbis...@gmail.com a écrit :

I have installed Sagemath 9.3 on my windows 10 computer and
have run the following code:
view(crystals.Tableaux("A3",shape=[2,1]))

I end up getting this long error:

An error occurred. This is pdfTeX, Version
3.141592653-2.6-1.40.24 (MiKTeX 22.3) (preloaded
format=pdflatex 2022.6.1) 1 JUN 2022 21:54 entering extended
mode restricted \write18 enabled. %&-line parsing enabled.
**\nonstopmode \input{sage.tex} (sage.tex
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX
document class
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo
File: size10.clo 2021/10/04 v1.4n Standard LaTeX file (size
option) ) \c@part=\count185 \c@section=\count186
\c@subsection=\count187 \c@subsubsection=\count188
\c@paragraph=\count189 \c@subparagraph=\count190
\c@figure=\count191 \c@table=\count192
\abovecaptionskip=\skip47 \belowcaptionskip=\skip48
\bibindent=\dimen138 )

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsmath.sty
Package: amsmath 2021/10/15 v2.17l AMS math features
\@mathmargin=\skip49 For additional information on amsmath,
use the `?' option.

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amstext.sty
Package: amstext 2021/08/26 v2.01 AMS text

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks16 \ex@=\dimen139 ))

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
\pmbraise@=\dimen140 )

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsopn.sty
Package: amsopn 2021/08/26 v2.02 operator names )
\inf@bad=\count193 LaTeX Info: Redefining \frac on input line
234. \uproot@=\count194 \leftroot@=\count195 LaTeX Info:
Redefining \overline on input line 399. \classnum@=\count196
\DOTSCASE@=\count197 LaTeX Info: Redefining \ldots on input
line 496. LaTeX Info: Redefining \dots on input line 499.
LaTeX Info: Redefining \cdots on input line 620.
\Mathstrutbox@=\box50 \strutbox@=\box51 \big@size=\dimen141
LaTeX Font Info: Redeclaring font encoding OML on input line
743. LaTeX Font Info: Redeclaring font encoding OMS on input
line 744. \macc@depth=\count198 \c@MaxMatrixCols=\count199
\dotsspace@=\muskip16 \c@parentequation=\count266
\dspbrk@lvl=\count267 \tag@help=\toks17 \row@=\count268
\column@=\count269 \maxfields@=\count270 \andhelp@=\toks18
\eqnshift@=\dimen142 \alignsep@=\dimen143
\tagshift@=\dimen144 \tagwidth@=\dimen145
\totwidth@=\dimen146 \lineht@=\dimen147 \@envbody=\toks19
\multlinegap=\skip50 \multlinetaggap=\skip51
\mathdisplay@stack=\toks20 LaTeX Info: Redefining \[ on input
line 2938. LaTeX Info: Redefining \] on input line 2939. )

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\amssymb.sty
Package: a

Re: [sage-support] Re: Crystals won't view in jupiter notebook

2022-06-02 Thread John H Palmieri
It's bad LaTeX, but I'm not sure what's producing it. If you run 
"view(crystals.Tableaux("A3",shape=[2,1]), debug=True)", then it will first 
print the LaTeX code, and if you paste that into a file, it will fail to 
compile.

On Thursday, June 2, 2022 at 6:42:51 AM UTC-7 HG wrote:

> Some time ago, on the list they said it's better to keep to sage-9.2, at 
> least I changed 9.3 to 9.2 because latex didn't work.
> Le 02/06/2022 à 14:08, Eric Gourgoulhon a écrit :
>
> I got the same error from the console of Sage 9.7.beta1 running on Ubuntu 
> 20.04. 
> So it is not specific to Sage 9.3, nor to Windows...
>
>
>
> Le mercredi 1 juin 2022 à 23:00:05 UTC+2, dbis...@gmail.com a écrit :
>
> I have installed Sagemath 9.3 on my windows 10 computer and have run the 
>> following code: 
>> view(crystals.Tableaux("A3",shape=[2,1]))
>>
>> I end up getting this long error: 
>>
>> An error occurred. This is pdfTeX, Version 3.141592653-2.6-1.40.24 
>> (MiKTeX 22.3) (preloaded format=pdflatex 2022.6.1) 1 JUN 2022 21:54 
>> entering extended mode restricted \write18 enabled. %&-line parsing 
>> enabled. **\nonstopmode \input{sage.tex} (sage.tex 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls 
>> Document Class: article 2021/10/04 v1.4n Standard LaTeX document class 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo 
>> File: size10.clo 2021/10/04 v1.4n Standard LaTeX file (size option) ) 
>> \c@part=\count185 \c@section=\count186 \c@subsection=\count187 
>> \c@subsubsection=\count188 \c@paragraph=\count189 \c@subparagraph=\count190 
>> \c@figure=\count191 \c@table=\count192 \abovecaptionskip=\skip47 
>> \belowcaptionskip=\skip48 \bibindent=\dimen138 ) 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsmath.sty 
>> Package: amsmath 2021/10/15 v2.17l AMS math features \@mathmargin=\skip49 
>> For additional information on amsmath, use the `?' option. 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amstext.sty 
>> Package: amstext 2021/08/26 v2.01 AMS text 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsgen.sty 
>> File: amsgen.sty 1999/11/30 v2.0 generic functions \@emptytoks=\toks16 
>> \ex@=\dimen139 )) 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsbsy.sty 
>> Package: amsbsy 1999/11/29 v1.2d Bold Symbols \pmbraise@=\dimen140 ) 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsopn.sty 
>> Package: amsopn 2021/08/26 v2.02 operator names ) \inf@bad=\count193 LaTeX 
>> Info: Redefining \frac on input line 234. \uproot@=\count194 
>> \leftroot@=\count195 LaTeX Info: Redefining \overline on input line 399. 
>> \classnum@=\count196 \DOTSCASE@=\count197 LaTeX Info: Redefining \ldots on 
>> input line 496. LaTeX Info: Redefining \dots on input line 499. LaTeX Info: 
>> Redefining \cdots on input line 620. \Mathstrutbox@=\box50 
>> \strutbox@=\box51 \big@size=\dimen141 LaTeX Font Info: Redeclaring font 
>> encoding OML on input line 743. LaTeX Font Info: Redeclaring font encoding 
>> OMS on input line 744. \macc@depth=\count198 \c@MaxMatrixCols=\count199 
>> \dotsspace@=\muskip16 \c@parentequation=\count266 \dspbrk@lvl=\count267 
>> \tag@help=\toks17 \row@=\count268 \column@=\count269 \maxfields@=\count270 
>> \andhelp@=\toks18 \eqnshift@=\dimen142 \alignsep@=\dimen143 
>> \tagshift@=\dimen144 \tagwidth@=\dimen145 \totwidth@=\dimen146 
>> \lineht@=\dimen147 \@envbody=\toks19 \multlinegap=\skip50 
>> \multlinetaggap=\skip51 \mathdisplay@stack=\toks20 LaTeX Info: Redefining 
>> \[ on input line 2938. LaTeX Info: Redefining \] on input line 2939. ) 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\amssymb.sty 
>> Package: amssymb 2013/01/14 v3.01 AMS font symbols 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\amsfonts.sty
>>  
>> Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support 
>> \symAMSa=\mathgroup4 \symAMSb=\mathgroup5 LaTeX Font Info: Redeclaring math 
>> symbol \hbar on input line 98. LaTeX Font Info: Overwriting math alphabet 
>> `\mathfrak' in version `bold' (Font) U/euf/m/n --> U/euf/b/n on input line 
>> 106. )) (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\
>> graphicx.st y Package: graphicx 2021/09/16 v1.2d Enhanced LaTeX Graphics 
>> (DPC,SPQR) 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\keyval.sty 
>> Package: keyval 2014/10/28 v1.15 key=value parser (DPC) \KV@toks@=\toks21 ) 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\graphics.sty
>>  
>> Package: graphics 2021/03/04 v1.4d Standard LaTeX Graphics (DPC,SPQR) 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\trig.sty 
>> Package: trig 2021/08/11 v1.11 sin cos tan (DPC) ) 
>> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics-cfg\graphics.c
>>  
>> fg File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration ) 
>> Package graphics Info: Driver file: pdftex

Re: [sage-support] Re: Crystals won't view in jupiter notebook

2022-06-02 Thread Henri Girard
Some time ago, on the list they said it's better to keep to sage-9.2, at 
least I changed 9.3 to 9.2 because latex didn't work.


Le 02/06/2022 à 14:08, Eric Gourgoulhon a écrit :
I got the same error from the console of Sage 9.7.beta1 running on 
Ubuntu 20.04.

So it is not specific to Sage 9.3, nor to Windows...



Le mercredi 1 juin 2022 à 23:00:05 UTC+2, dbis...@gmail.com a écrit :

I have installed Sagemath 9.3 on my windows 10 computer and have
run the following code:
view(crystals.Tableaux("A3",shape=[2,1]))

I end up getting this long error:

An error occurred. This is pdfTeX, Version 3.141592653-2.6-1.40.24
(MiKTeX 22.3) (preloaded format=pdflatex 2022.6.1) 1 JUN 2022
21:54 entering extended mode restricted \write18 enabled. %&-line
parsing enabled. **\nonstopmode \input{sage.tex} (sage.tex
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document
class
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo
File: size10.clo 2021/10/04 v1.4n Standard LaTeX file (size
option) ) \c@part=\count185 \c@section=\count186
\c@subsection=\count187 \c@subsubsection=\count188
\c@paragraph=\count189 \c@subparagraph=\count190
\c@figure=\count191 \c@table=\count192 \abovecaptionskip=\skip47
\belowcaptionskip=\skip48 \bibindent=\dimen138 )
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsmath.sty
Package: amsmath 2021/10/15 v2.17l AMS math features
\@mathmargin=\skip49 For additional information on amsmath, use
the `?' option.
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amstext.sty
Package: amstext 2021/08/26 v2.01 AMS text
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks16 \ex@=\dimen139 ))
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols \pmbraise@=\dimen140
)
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsopn.sty
Package: amsopn 2021/08/26 v2.02 operator names )
\inf@bad=\count193 LaTeX Info: Redefining \frac on input line 234.
\uproot@=\count194 \leftroot@=\count195 LaTeX Info: Redefining
\overline on input line 399. \classnum@=\count196
\DOTSCASE@=\count197 LaTeX Info: Redefining \ldots on input line
496. LaTeX Info: Redefining \dots on input line 499. LaTeX Info:
Redefining \cdots on input line 620. \Mathstrutbox@=\box50
\strutbox@=\box51 \big@size=\dimen141 LaTeX Font Info: Redeclaring
font encoding OML on input line 743. LaTeX Font Info: Redeclaring
font encoding OMS on input line 744. \macc@depth=\count198
\c@MaxMatrixCols=\count199 \dotsspace@=\muskip16
\c@parentequation=\count266 \dspbrk@lvl=\count267
\tag@help=\toks17 \row@=\count268 \column@=\count269
\maxfields@=\count270 \andhelp@=\toks18 \eqnshift@=\dimen142
\alignsep@=\dimen143 \tagshift@=\dimen144 \tagwidth@=\dimen145
\totwidth@=\dimen146 \lineht@=\dimen147 \@envbody=\toks19
\multlinegap=\skip50 \multlinetaggap=\skip51
\mathdisplay@stack=\toks20 LaTeX Info: Redefining \[ on input line
2938. LaTeX Info: Redefining \] on input line 2939. )
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\amssymb.sty
Package: amssymb 2013/01/14 v3.01 AMS font symbols

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\amsfonts.sty
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
\symAMSa=\mathgroup4 \symAMSb=\mathgroup5 LaTeX Font Info:
Redeclaring math symbol \hbar on input line 98. LaTeX Font Info:
Overwriting math alphabet `\mathfrak' in version `bold' (Font)
U/euf/m/n --> U/euf/b/n on input line 106. ))
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\graphicx.st
 y Package: graphicx 2021/09/16 v1.2d Enhanced
LaTeX Graphics (DPC,SPQR)
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks21 )

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\graphics.sty
Package: graphics 2021/03/04 v1.4d Standard LaTeX Graphics
(DPC,SPQR)
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\trig.sty
Package: trig 2021/08/11 v1.11 sin cos tan (DPC) )

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics-cfg\graphics.c
fg File: graphics.cfg 2016/06/04 v1.11 sample graphics
configuration ) Package graphics Info: Driver file: pdftex.def on
input line 107.

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics-def\pdftex.def
File: pdftex.def 2020/10/05 v1.2a Graphics/color driver for pdftex
)) \Gin@req@height=\dimen148 \Gin@req@width=\dimen149 )

(C

Re: [sage-support] Re: Crystals won't view in jupiter notebook

2022-06-02 Thread Ray Rogers

Same on Ubuntu 22.04 (I think)
Mate 1.26
Jupyterlab 3.4.2 -- SageMath 9.6  -- Compiled from source - with no 
apparent errors, but I have a make.log from the "make" if requested.

Here is a clip from the output.

"! Emergency stop.

<*> \nonstopmode \input{sage.tex}
 
*** (job aborted, no legal \end found)

"

Which indicates to me that it's not sagemath proper but a documentation file; 
i.e. sage.tex.
This is the first "bomb" I have run across.
I have it open, so I can send the Jupyter output as an attachment; it's quite 
long.

rrogers

On 6/2/22 08:08, Eric Gourgoulhon wrote:
I got the same error from the console of Sage 9.7.beta1 running on 
Ubuntu 20.04.

So it is not specific to Sage 9.3, nor to Windows...



Le mercredi 1 juin 2022 à 23:00:05 UTC+2, dbis...@gmail.com a écrit :

I have installed Sagemath 9.3 on my windows 10 computer and have
run the following code:
view(crystals.Tableaux("A3",shape=[2,1]))

I end up getting this long error:

An error occurred. This is pdfTeX, Version 3.141592653-2.6-1.40.24
(MiKTeX 22.3) (preloaded format=pdflatex 2022.6.1) 1 JUN 2022
21:54 entering extended mode restricted \write18 enabled. %&-line
parsing enabled. **\nonstopmode \input{sage.tex} (sage.tex
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document
class
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo
File: size10.clo 2021/10/04 v1.4n Standard LaTeX file (size
option) ) \c@part=\count185 \c@section=\count186
\c@subsection=\count187 \c@subsubsection=\count188
\c@paragraph=\count189 \c@subparagraph=\count190
\c@figure=\count191 \c@table=\count192 \abovecaptionskip=\skip47
\belowcaptionskip=\skip48 \bibindent=\dimen138 )
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsmath.sty
Package: amsmath 2021/10/15 v2.17l AMS math features
\@mathmargin=\skip49 For additional information on amsmath, use
the `?' option.
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amstext.sty
Package: amstext 2021/08/26 v2.01 AMS text
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsgen.sty
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks16 \ex@=\dimen139 ))
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsbsy.sty
Package: amsbsy 1999/11/29 v1.2d Bold Symbols \pmbraise@=\dimen140
)
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsopn.sty
Package: amsopn 2021/08/26 v2.02 operator names )
\inf@bad=\count193 LaTeX Info: Redefining \frac on input line 234.
\uproot@=\count194 \leftroot@=\count195 LaTeX Info: Redefining
\overline on input line 399. \classnum@=\count196
\DOTSCASE@=\count197 LaTeX Info: Redefining \ldots on input line
496. LaTeX Info: Redefining \dots on input line 499. LaTeX Info:
Redefining \cdots on input line 620. \Mathstrutbox@=\box50
\strutbox@=\box51 \big@size=\dimen141 LaTeX Font Info: Redeclaring
font encoding OML on input line 743. LaTeX Font Info: Redeclaring
font encoding OMS on input line 744. \macc@depth=\count198
\c@MaxMatrixCols=\count199 \dotsspace@=\muskip16
\c@parentequation=\count266 \dspbrk@lvl=\count267
\tag@help=\toks17 \row@=\count268 \column@=\count269
\maxfields@=\count270 \andhelp@=\toks18 \eqnshift@=\dimen142
\alignsep@=\dimen143 \tagshift@=\dimen144 \tagwidth@=\dimen145
\totwidth@=\dimen146 \lineht@=\dimen147 \@envbody=\toks19
\multlinegap=\skip50 \multlinetaggap=\skip51
\mathdisplay@stack=\toks20 LaTeX Info: Redefining \[ on input line
2938. LaTeX Info: Redefining \] on input line 2939. )
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\amssymb.sty
Package: amssymb 2013/01/14 v3.01 AMS font symbols

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\amsfonts.sty
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
\symAMSa=\mathgroup4 \symAMSb=\mathgroup5 LaTeX Font Info:
Redeclaring math symbol \hbar on input line 98. LaTeX Font Info:
Overwriting math alphabet `\mathfrak' in version `bold' (Font)
U/euf/m/n --> U/euf/b/n on input line 106. ))
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\graphicx.st
 y Package: graphicx 2021/09/16 v1.2d Enhanced
LaTeX Graphics (DPC,SPQR)
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks21 )

(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\graphics.sty
Package: graphics 2021/03/04 v1.4d Standard LaTeX Graphics
(DPC,SPQR)
(C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\trig.sty
Package: trig 2021/08/11 v1.1

[sage-support] Re: Crystals won't view in jupiter notebook

2022-06-02 Thread Eric Gourgoulhon
I got the same error from the console of Sage 9.7.beta1 running on Ubuntu 
20.04. 
So it is not specific to Sage 9.3, nor to Windows...



Le mercredi 1 juin 2022 à 23:00:05 UTC+2, dbis...@gmail.com a écrit :

> I have installed Sagemath 9.3 on my windows 10 computer and have run the 
> following code:
> view(crystals.Tableaux("A3",shape=[2,1]))
>
> I end up getting this long error: 
>
> An error occurred. This is pdfTeX, Version 3.141592653-2.6-1.40.24 (MiKTeX 
> 22.3) (preloaded format=pdflatex 2022.6.1) 1 JUN 2022 21:54 entering 
> extended mode restricted \write18 enabled. %&-line parsing enabled. 
> **\nonstopmode \input{sage.tex} (sage.tex 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls 
> Document Class: article 2021/10/04 v1.4n Standard LaTeX document class 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo 
> File: size10.clo 2021/10/04 v1.4n Standard LaTeX file (size option) ) 
> \c@part=\count185 \c@section=\count186 \c@subsection=\count187 
> \c@subsubsection=\count188 \c@paragraph=\count189 \c@subparagraph=\count190 
> \c@figure=\count191 \c@table=\count192 \abovecaptionskip=\skip47 
> \belowcaptionskip=\skip48 \bibindent=\dimen138 ) 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsmath.sty 
> Package: amsmath 2021/10/15 v2.17l AMS math features \@mathmargin=\skip49 
> For additional information on amsmath, use the `?' option. 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amstext.sty 
> Package: amstext 2021/08/26 v2.01 AMS text 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsgen.sty 
> File: amsgen.sty 1999/11/30 v2.0 generic functions \@emptytoks=\toks16 
> \ex@=\dimen139 )) 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsbsy.sty 
> Package: amsbsy 1999/11/29 v1.2d Bold Symbols \pmbraise@=\dimen140 ) 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsopn.sty 
> Package: amsopn 2021/08/26 v2.02 operator names ) \inf@bad=\count193 LaTeX 
> Info: Redefining \frac on input line 234. \uproot@=\count194 
> \leftroot@=\count195 LaTeX Info: Redefining \overline on input line 399. 
> \classnum@=\count196 \DOTSCASE@=\count197 LaTeX Info: Redefining \ldots on 
> input line 496. LaTeX Info: Redefining \dots on input line 499. LaTeX Info: 
> Redefining \cdots on input line 620. \Mathstrutbox@=\box50 
> \strutbox@=\box51 \big@size=\dimen141 LaTeX Font Info: Redeclaring font 
> encoding OML on input line 743. LaTeX Font Info: Redeclaring font encoding 
> OMS on input line 744. \macc@depth=\count198 \c@MaxMatrixCols=\count199 
> \dotsspace@=\muskip16 \c@parentequation=\count266 \dspbrk@lvl=\count267 
> \tag@help=\toks17 \row@=\count268 \column@=\count269 \maxfields@=\count270 
> \andhelp@=\toks18 \eqnshift@=\dimen142 \alignsep@=\dimen143 
> \tagshift@=\dimen144 \tagwidth@=\dimen145 \totwidth@=\dimen146 
> \lineht@=\dimen147 \@envbody=\toks19 \multlinegap=\skip50 
> \multlinetaggap=\skip51 \mathdisplay@stack=\toks20 LaTeX Info: Redefining 
> \[ on input line 2938. LaTeX Info: Redefining \] on input line 2939. ) 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\amssymb.sty 
> Package: amssymb 2013/01/14 v3.01 AMS font symbols 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\amsfonts.sty 
> Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support 
> \symAMSa=\mathgroup4 \symAMSb=\mathgroup5 LaTeX Font Info: Redeclaring math 
> symbol \hbar on input line 98. LaTeX Font Info: Overwriting math alphabet 
> `\mathfrak' in version `bold' (Font) U/euf/m/n --> U/euf/b/n on input line 
> 106. )) (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\
> graphicx.st y Package: graphicx 2021/09/16 v1.2d Enhanced LaTeX Graphics 
> (DPC,SPQR) 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\keyval.sty 
> Package: keyval 2014/10/28 v1.15 key=value parser (DPC) \KV@toks@=\toks21 ) 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\graphics.sty 
> Package: graphics 2021/03/04 v1.4d Standard LaTeX Graphics (DPC,SPQR) 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\trig.sty 
> Package: trig 2021/08/11 v1.11 sin cos tan (DPC) ) 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics-cfg\graphics.c
>  
> fg File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration ) 
> Package graphics Info: Driver file: pdftex.def on input line 107. 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics-def\pdftex.def
>  
> File: pdftex.def 2020/10/05 v1.2a Graphics/color driver for pdftex )) 
> \Gin@req@height=\dimen148 \Gin@req@width=\dimen149 ) 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/jknappen\mathrsfs.sty 
> Package: mathrsfs 1996/01/01 Math RSFS package v1.0 (jk) 
> \symrsfs=\mathgroup6 ) 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\inputenc.sty 
> Package: inputenc 2021/02/14 v1.3d Input encoding file 
> \inpenc@pre

[sage-support] Re: Sage ImportError: canot load Singular library

2022-06-02 Thread Francesco Buscemi
Hello there; any news? I'm getting exactly the same errors...

On Wednesday, May 11, 2022 at 7:23:15 PM UTC+9 jacovant...@gmail.com wrote:

> I am running Fedora 36 (had the same issue in Fedora 35) on a Lenovo 
> IdeaPad. After installing sage using dnf I tried running it but it failed 
> due to: "ImportError: cannot load Singular library from libSingular.so 
> (b'libSingular.so: cannot open shared object file: No such file or 
> directory')". The full error report is:
>
> Error in sys.excepthook:
> Traceback (most recent call last):
>   File "/usr/lib64/python3.10/pathlib.py", line 1303, in is_dir
> return S_ISDIR(self.stat().st_mode)
> AttributeError: 'str' object has no attribute 'stat'
>
> Original exception was:
> Traceback (most recent call last):
>   File "/usr/lib64/sagemath/local/bin/sage-ipython", line 15, in 
> app.initialize()
>   File 
> "/home/jacovantonder/.local/lib/python3.10/site-packages/traitlets/config/application.py",
>  
> line 88, in inner
> return method(app, *args, **kwargs)
>   File "/usr/lib/python3.10/site-packages/IPython/terminal/ipapp.py", line 
> 276, in initialize
> self.init_shell()
>   File "/usr/lib64/python3.10/site-packages/sage/repl/interpreter.py", 
> line 789, in init_shell
> self.shell.extension_manager.load_extension(SAGE_EXTENSION)
>   File "/usr/lib/python3.10/site-packages/IPython/core/extensions.py", 
> line 76, in load_extension
> return self._load_extension(module_str)
>   File "/usr/lib/python3.10/site-packages/IPython/core/extensions.py", 
> line 99, in _load_extension
> if self._call_load_ipython_extension(mod):
>   File "/usr/lib/python3.10/site-packages/IPython/core/extensions.py", 
> line 151, in _call_load_ipython_extension
> mod.load_ipython_extension(self.shell)
>   File "/usr/lib64/python3.10/site-packages/sage/repl/__init__.py", line 
> 5, in load_ipython_extension
> sage.repl.ipython_extension.load_ipython_extension(*args)
>   File 
> "/usr/lib64/python3.10/site-packages/sage/repl/ipython_extension.py", line 
> 617, in wrapper
> result = func(*args, **kwargs)
>   File 
> "/usr/lib64/python3.10/site-packages/sage/repl/ipython_extension.py", line 
> 630, in load_ipython_extension
> SageCustomizations(shell=ip)
>   File 
> "/usr/lib64/python3.10/site-packages/sage/repl/ipython_extension.py", line 
> 434, in __init__
> import sage.all # until sage's import hell is fixed
>   File "/usr/lib64/python3.10/site-packages/sage/all.py", line 131, in 
> 
> from sage.rings.all  import *
>   File "/usr/lib64/python3.10/site-packages/sage/rings/all.py", line 87, 
> in 
> from .qqbar import (AlgebraicRealField, AA,
>   File "/usr/lib64/python3.10/site-packages/sage/rings/qqbar.py", line 
> 2810, in 
> QQxy = QQ['x', 'y']
>   File "sage/structure/parent.pyx", line 1276, in 
> sage.structure.parent.Parent.__getitem__
>   File "/usr/lib64/python3.10/site-packages/sage/categories/rings.py", 
> line 1177, in __getitem__
> return PolynomialRing(self, elts)
>   File 
> "/usr/lib64/python3.10/site-packages/sage/rings/polynomial/polynomial_ring_constructor.py",
>  
> line 647, in PolynomialRing
> return _multi_variate(base_ring, names, **kwds)
>   File 
> "/usr/lib64/python3.10/site-packages/sage/rings/polynomial/polynomial_ring_constructor.py",
>  
> line 775, in _multi_variate
> from sage.rings.polynomial.multi_polynomial_libsingular import 
> MPolynomialRing_libsingular
>   File "sage/rings/polynomial/multi_polynomial_libsingular.pyx", line 1, 
> in init sage.rings.polynomial.multi_polynomial_libsingular
>   File "sage/libs/singular/singular.pyx", line 1558, in init 
> sage.libs.singular.singular
>   File "sage/libs/singular/singular.pyx", line 1532, in 
> sage.libs.singular.singular.init_libsingular
> ImportError: cannot load Singular library from libSingular.so 
> (b'libSingular.so: cannot open shared object file: No such file or 
> directory')
>
> I've had issues with installing sage with conda as well. Not being able to 
> get the kernel to connect in Jupyter.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/c436992f-2358-401c-94b0-c7ed4d434f20n%40googlegroups.com.