Re: [sage-support] Re: after upgrade to 9.3, SignalError: Illegal instruction

2021-08-23 Thread Dima Pasechnik
These "illegal instruction" errors are an indication that the binary was
built for a more advanced CPU than yours - which does not support certain
CPU commands. It's a bug in "fat binary" build process we see for some time.

Build Sage yourself, or use Conda.


On Mon, 23 Aug 2021, 23:33 share the sage,  wrote:

> Hi Marco, How are you?
>
> In my case, upgrading to Ubuntu 20.04 base, didn't solve the issue.
> Building did.
>
> I had the same SignalError on Linux Mint 20.1 (based on Ubuntu 20.04) with
> the corresponding Sage prebuild binaries as in Linux Mint 18.3 (based on
> Ubuntu 16.04).
>
> So, I took courage and face the build process myself.
>
> In your case, if I understand correctly, your system administrator might
> be doing the Sage build, right?
>
> Buenaventura,
>
> Share_The_Sage!
>
> On 2021/08/23 10:43, Marco Streng wrote:
>
> Hi everyone,
>
> I'm having the same problem, on Ubuntu 18.04:
>
> I unpack the binaries sage-9.3-Ubuntu_18.04-x86_64.tar.bz2 and run ./sage
> Then I see a few lines that look like
>
> /home/strengtc/software/sage-9.3/local/lib/python3.9/site-packages/traitlets/config/loader.py:795:
> SyntaxWarning: "is" with a literal. Did you mean "=="?
>   if len(key) is 1:
>
> or
>
> /home/strengtc/software/sage-9.3/local/lib/python3.9/site-packages/psutil/_pslinux.py:551:
> DeprecationWarning: invalid escape sequence \d
> (with various python files and sometimes with \s instead of \d).
>
> And then (in SageMath in the terminal) some things work without problem,
> but there are also various inputs that give the "Illegal instruction" error
> on a "sig_on()" line of a pyx file. For example, the same input of
> share-the-sage, but also the following example from the documentation, give
> the error:
> K. = NumberField(x^10 - 2)
> L. = K.relativize(a^4 + a^2 + 2); L
> (full in- and output below)
>
> Do you have any suggestions for fixing this without asking my system
> administrator to upgrade to Ubuntu 20.04 and/or rebuilding? How likely is
> it that upgrading to Ubuntu 20.04 will fix the problem for me too?
>
> Thanks!
> Marco
>
>
> ./sage
>
> ┌┐
>
> │ SageMath version 9.3, Release Date: 2021-05-09 │
>
> │ Using Python 3.9.2. Type "help()" for help.│
>
> └┘
>
> sage: print(version())
>
> : m=matrix(QQ,[*0*, *0*, *2*, *1*])
>
> : print(m)
>
> : m_rs=m.row_space()
>
> : print(m_rs)
>
> : facet_z_plus_basis=m.right_kernel().basis()
>
> :
>
>
>
>
> SageMath version 9.3, Release Date: 2021-05-09
>
> [0 0 2 1]
>
> Vector space of degree 4 and dimension 1 over Rational Field
>
> Basis matrix:
>
> [  0   0   1 1/2]
>
> ---
>
> SignalError   Traceback (most recent call last)
>
>  in 
>
> *  4* m_rs=m.row_space()
>
> *  5* print(m_rs)
>
> > 6 facet_z_plus_basis=m.right_kernel().basis()
>
>
> ~/software/sage-9.3/local/lib/python3.9/site-packages/sage/matrix/matrix2.pyx
> in sage.matrix.matrix2.Matrix.right_kernel
> (build/cythonized/sage/matrix/matrix2.c:31059)()
>
> *   4717*
>
> *   4718* # Go get the kernel matrix, this is where it all happens
>
> -> 4719 M = self.right_kernel_matrix(*args, **kwds)
>
> *   4720*
>
> *   4721* ambient = R**self.ncols()
>
>
> ~/software/sage-9.3/local/lib/python3.9/site-packages/sage/matrix/matrix2.pyx
> in sage.matrix.matrix2.Matrix.right_kernel_matrix
> (build/cythonized/sage/matrix/matrix2.c:29696)()
>
> *   4318* if M is None:
>
> *   4319* try:
>
> -> 4320 format, M =
> self._right_kernel_matrix(algorithm=algorithm, proof=proof)
>
> *   4321* except AttributeError:
>
> *   4322* pass
>
>
> ~/software/sage-9.3/local/lib/python3.9/site-packages/sage/matrix/matrix_rational_dense.pyx
> in
> sage.matrix.matrix_rational_dense.Matrix_rational_dense._right_kernel_matrix
> (build/cythonized/sage/matrix/matrix_rational_dense.cpp:14103)()
>
> *   1424* else:
>
> *   1425* A, _ = self._clear_denom()
>
> -> 1426 K =
> A._rational_kernel_iml().transpose().change_ring(QQ)
>
> *   1427* verbose("done computing right kernel matrix over the
> rationals for %sx%s matrix" % (self.nrows(), self.ncols()),level=1, t=tm)
>
> *   1428* return 'computed-iml-rational', K
>
>
> ~/software/sage-9.3/local/lib/python3.9/site-packages/sage/matrix/matrix_integer_dense.pyx
> in
> sage.matrix.matrix_integer_dense.Matrix_integer_dense._rational_kernel_iml
> (build/cythonized/sage/matrix/matrix_integer_dense.cpp:32352)()
>
> *   3880* time = verbose('computing null space of %s x %s matrix
> using IML'%(self._nrows, self._ncols))
>
> *   3881* cdef mpz_t * m = fmpz_mat_to_mpz_array(self._matrix)
>
> -> 3882 sig_on()
>
> *   

Re: [sage-support] Other mailing lists

2021-08-23 Thread H
On August 23, 2021 7:18:16 PM EDT, David Joyner  wrote:
>On Mon, Aug 23, 2021 at 7:13 PM H  wrote:
>
>> I just joined this list a few days ago but also tried to join
>> sage-algebra, that list however seems dead. The moderator has after
>almost
>> a week not approved my membership and the last Google group posting
>seems
>> to be from 2018...
>>
>> Are there any other mailing lists/groups? I should also mention that
>the
>> rss feeds mentioned on the sage site have
>
>
>Some are listed here:
>https://www.sagemath.org/help-groups.html
>and others are here
>https://www.sagemath.org/development-groups.html
>
>defective links... Is the software dying or am I missing something?
>>
>> --
>> 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/FA4ECD7D-AC30-4982-8B7F-A6BEDBF1BD91%40meddatainc.com
>> .
>>

Yes, that's the page with the dead sage-algebra group and the non-working rss 
feeds...

-- 
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/20BEC0B9-2DF7-4665-B11A-AE697536758E%40meddatainc.com.


[sage-support] List all shortest paths between two vertices in a graph

2021-08-23 Thread Beth Claire
Hi,
Given an undirected graph G, and two vertices u and v of G, I want to list 
all paths from u to v with a length of d_G(u,v).  The built-in function 
shortest_simple_paths 
,
 
despite its name, seems to list *all* simple paths from u to v.  One option 
is to filter the output of shortest_simple_paths by length, e.g.
list(filter(lambda x: len(x)== 
1+G.distance(u,v)),G.shortest_simple_paths(u,v)))

However, this is extremely inefficient, since it tells sage to generate all 
simple paths and then discards most of them.  Is there a better way to get 
this information?

Thanks,
Beth

-- 
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/868b9dc9-7484-4c2f-83c1-de9d2b77bb62n%40googlegroups.com.


Re: [sage-support] Other mailing lists

2021-08-23 Thread David Joyner
On Mon, Aug 23, 2021 at 7:13 PM H  wrote:

> I just joined this list a few days ago but also tried to join
> sage-algebra, that list however seems dead. The moderator has after almost
> a week not approved my membership and the last Google group posting seems
> to be from 2018...
>
> Are there any other mailing lists/groups? I should also mention that the
> rss feeds mentioned on the sage site have


Some are listed here:
https://www.sagemath.org/help-groups.html
and others are here
https://www.sagemath.org/development-groups.html

defective links... Is the software dying or am I missing something?
>
> --
> 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/FA4ECD7D-AC30-4982-8B7F-A6BEDBF1BD91%40meddatainc.com
> .
>

-- 
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/CAEQuuAXEwmZRVM8eJaFyzyf0RfsK0SWA9OHk5MXD4bAjcCBg_A%40mail.gmail.com.


[sage-support] Other mailing lists

2021-08-23 Thread H
I just joined this list a few days ago but also tried to join sage-algebra, 
that list however seems dead. The moderator has after almost a week not 
approved my membership and the last Google group posting seems to be from 
2018...

Are there any other mailing lists/groups? I should also mention that the rss 
feeds mentioned on the sage site have defective links... Is the software dying 
or am I missing something?

-- 
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/FA4ECD7D-AC30-4982-8B7F-A6BEDBF1BD91%40meddatainc.com.


Re: [sage-support] Re: after upgrade to 9.3, SignalError: Illegal instruction

2021-08-23 Thread share the sage

Hi Marco, How are you?

In my case, upgrading to Ubuntu 20.04 base, didn't solve the issue. 
Building did.


I had the same SignalError on Linux Mint 20.1 (based on Ubuntu 20.04) 
with the corresponding Sage prebuild binaries as in Linux Mint 18.3 
(based on Ubuntu 16.04).


So, I took courage and face the build process myself.

In your case, if I understand correctly, your system administrator might 
be doing the Sage build, right?


Buenaventura,

Share_The_Sage!

On 2021/08/23 10:43, Marco Streng wrote:

Hi everyone,

I'm having the same problem, on Ubuntu 18.04:

I unpack the binaries sage-9.3-Ubuntu_18.04-x86_64.tar.bz2 and run ./sage
Then I see a few lines that look like

/home/strengtc/software/sage-9.3/local/lib/python3.9/site-packages/traitlets/config/loader.py:795: 
SyntaxWarning: "is" with a literal. Did you mean "=="?

  if len(key) is 1:

or

/home/strengtc/software/sage-9.3/local/lib/python3.9/site-packages/psutil/_pslinux.py:551: 
DeprecationWarning: invalid escape sequence \d


(with various python files and sometimes with \s instead of \d).

And then (in SageMath in the terminal) some things work without 
problem, but there are also various inputs that give the "Illegal 
instruction" error on a "sig_on()" line of a pyx file. For example, 
the same input of share-the-sage, but also the following example from 
the documentation, give the error:

K. = NumberField(x^10 - 2)
L. = K.relativize(a^4 + a^2 + 2); L
(full in- and output below)

Do you have any suggestions for fixing this without asking my system 
administrator to upgrade to Ubuntu 20.04 and/or rebuilding? How likely 
is it that upgrading to Ubuntu 20.04 will fix the problem for me too?


Thanks!
Marco


./sage

┌┐

│ SageMath version 9.3, Release Date: 2021-05-09         │

│ Using Python 3.9.2. Type "help()" for help.         │

└┘

sage: print(version())

: m=matrix(QQ,[*0*, *0*, *2*, *1*])

: print(m)

: m_rs=m.row_space()

: print(m_rs)

: facet_z_plus_basis=m.right_kernel().basis()

:

SageMath version 9.3, Release Date: 2021-05-09

[0 0 2 1]

Vector space of degree 4 and dimension 1 over Rational Field

Basis matrix:

[  0   0   1 1/2]

---

SignalError                               Traceback (most recent call 
last)


 in 

*      4* m_rs=m.row_space()

*      5* print(m_rs)

> 6 facet_z_plus_basis=m.right_kernel().basis()


~/software/sage-9.3/local/lib/python3.9/site-packages/sage/matrix/matrix2.pyx 
in sage.matrix.matrix2.Matrix.right_kernel 
(build/cythonized/sage/matrix/matrix2.c:31059)()


*   4717*

*   4718*         # Go get the kernel matrix, this is where it all happens

-> 4719         M = self.right_kernel_matrix(*args, **kwds)

*   4720*

*   4721*         ambient = R**self.ncols()


~/software/sage-9.3/local/lib/python3.9/site-packages/sage/matrix/matrix2.pyx 
in sage.matrix.matrix2.Matrix.right_kernel_matrix 
(build/cythonized/sage/matrix/matrix2.c:29696)()


*   4318*         if M is None:

*   4319*             try:

-> 4320                 format, M = 
self._right_kernel_matrix(algorithm=algorithm, proof=proof)


*   4321*             except AttributeError:

*   4322*                 pass


~/software/sage-9.3/local/lib/python3.9/site-packages/sage/matrix/matrix_rational_dense.pyx 
in 
sage.matrix.matrix_rational_dense.Matrix_rational_dense._right_kernel_matrix 
(build/cythonized/sage/matrix/matrix_rational_dense.cpp:14103)()


*   1424*         else:

*   1425*             A, _ = self._clear_denom()

-> 1426             K = 
A._rational_kernel_iml().transpose().change_ring(QQ)


*   1427*         verbose("done computing right kernel matrix over the 
rationals for %sx%s matrix" % (self.nrows(), self.ncols()),level=1, t=tm)


*   1428*         return 'computed-iml-rational', K


~/software/sage-9.3/local/lib/python3.9/site-packages/sage/matrix/matrix_integer_dense.pyx 
in 
sage.matrix.matrix_integer_dense.Matrix_integer_dense._rational_kernel_iml 
(build/cythonized/sage/matrix/matrix_integer_dense.cpp:32352)()


*   3880*         time = verbose('computing null space of %s x %s 
matrix using IML'%(self._nrows, self._ncols))


*   3881*         cdef mpz_t * m = fmpz_mat_to_mpz_array(self._matrix)

-> 3882         sig_on()

*   3883*         dim = nullspaceMP(self._nrows, self._ncols, m, _N)

*   3884*         sig_off()


SignalError: Illegal instruction

sage: *1*+*1*

2

sage: K. = NumberField(x^*10* - *2*)

:

sage: L. = K.relativize(a^*4* + a^*2* + *2*); L

:

---

SignalError                               Traceback (most recent call 
last)


 in 

> 1 L = K.relativize(a**Integer(4) + a**Integer(2) + Integer(2), 
names=('c', 'd',)); (c, d,) = L._first_ngens(2); L




[sage-support] Re: Installing Package in Systemwise Sagemath

2021-08-23 Thread slelievre

Le lundi 23 août 2021 à 15:00:49 UTC+2, egourg...:

> Le dimanche 22 août 2021 à 15:49:28 UTC+2, asd00012...:
>
>>
>> I installed Sagemath for the entire system using ``sudo apt-get install 
>> sagemath'' on my Ubuntu machine. When I tried to do something like ``sage 
>> -i kohel_database,'' it told me that it is an unknown option. As searched 
>> from the ASKSAGE etc., there's no such options within the apt installed 
>> version. So is there alternatives to install packages for this kind of 
>> sagemath environment? Or we need to start over and build a fresh local 
>> sagemath environment from scratch?
>>
>
> Unfortunately, the last option is the only way out here. So please 
> download one of the binary builds available at 
> https://www.sagemath.org/download-linux.html. The bonus is that you'll 
> get a version of SageMath newer than the system one.
>

The option you describe is less severe than building from scratch,
it only amounts to downloading a binary release for Ubuntu 20.04.

So really there are at least two options available here:

- download a binary for Ubuntu 20.04 (as suggested above)
  https://www.sagemath.org/download-linux.html

- build from source
  https://doc.sagemath.org/html/en/installation/source.html

Building from source takes some time, but is much faster
than it once was, at least if you install all recommended
prerequisite packages from your system distribution.

-- 
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/fc5026c5-ad56-4cd6-baf3-96e5aa048785n%40googlegroups.com.


[sage-support] Re: How to download as LaTeX, and have output boxes rendered

2021-08-23 Thread Jákup
Thank you very much. Updating solved the problem. :)

On Monday, August 23, 2021 at 2:56:14 PM UTC+2 egourg...@gmail.com wrote:

> Hello,
>
> You should upgrade to at least SageMath 9.2, where this bug has been 
> fixed; cf. my answer on asksagemath: 
>
> https://ask.sagemath.org/question/58626/how-to-download-as-latex-and-have-output-boxes-rendered/
>
> Le lundi 23 août 2021 à 10:43:26 UTC+2, Jákup a écrit :
>
>>
>> I'm using the Jupyter notebook, and the "download as .tex" option works 
>> great for me.
>> The only problem is, I want the output to be rendered.
>> Inside the notebook, I have '%display latex' set, so all output is 
>> rendered in latex. However to my great surprise, when I export the 
>> worksheet into a .tex file, the output boxes revert to normal unformatted 
>> text.
>> Is there a way to make the latex formatting of outputs "survive" when 
>> saving it as a LaTeX document?
>>
>> I'm not afraid of writing the LaTeX myself, but this workflow needs to 
>> work for exams, where time is a factor.
>> Thanks for your help
>>
>> SageMath version 9.0, Release Date: 2020-01-01 │
>> │ Using Python 3.8.10.
>> Running Linux.
>>
>> Here are pictures of how it looks in my notebook, and in the exported 
>> LaTeX:
>> [image: 2021-08-23_10-33.png][image: latex.png]
>>
>>

-- 
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/ae313107-6445-4014-bef8-2def06c55673n%40googlegroups.com.


[sage-support] Re: Question about solving polynomial system over RR in sage

2021-08-23 Thread Emmanuel Charpentier


solve is a function working on symbolic expressions. Polynomials on RR as 
defined in your example, are *not* symbolic expressions. The set of 
operations applicable to them is different. And, BTW, symbolic expressions 
do have a *method* solve (not to be confused with the *function* solve), 
but not lists nor sequences…

Your question will find (a lot of) answer elements in chapter 9 of this 
excellent 
book , which I recommend to 
anyone aiming at non-trivial Sagemath use…

HTH,
​
Le dimanche 22 août 2021 à 15:49:28 UTC+2, juaninf a écrit :

> I would like to solve a polynomial system over RR in sage. See the toy 
> example below
>
> >>> var_names = ['xor_0_7_x0', 'xor_0_7_x12', 'xor_0_7_y0']
> >>> nvars = 3
> >>> R=PolynomialRing(RealField(53), nvars, var_names, 
> order="degneglex")
> >>> a=R.gens()[0]+R.gens()[1]+R.gens()[2]
> >>> b=R.gens()[0]-R.gens()[1]*R.gens()[2]
> >>> s=[a,b]
> >>> s=Sequence([a,b])
> >>> s.solve()
>
> I just defined two polynomial from $R$. But when I tried to solve this 
> system I get AttributeError: 'Sequence_generic' object has no attribute 
> 'solve'
> -
> D.Sc. Juan del Carmen Grados Vásquez
> Laboratório Nacional de Computação Científica 
> Tel: +55 21 97633 3228 <+55%2021%2097633-3228>
> (http://www.lncc.br/)
> http://juaninf.blogspot.com
> -
>

-- 
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/57323129-1ab6-40d4-baac-1ad5c453fd56n%40googlegroups.com.


[sage-support] Re: after upgrade to 9.3, SignalError: Illegal instruction

2021-08-23 Thread Marco Streng
Hi everyone,

I'm having the same problem, on Ubuntu 18.04:

I unpack the binaries sage-9.3-Ubuntu_18.04-x86_64.tar.bz2 and run ./sage
Then I see a few lines that look like

/home/strengtc/software/sage-9.3/local/lib/python3.9/site-packages/traitlets/config/loader.py:795:
 
SyntaxWarning: "is" with a literal. Did you mean "=="?
  if len(key) is 1:

or

/home/strengtc/software/sage-9.3/local/lib/python3.9/site-packages/psutil/_pslinux.py:551:
 
DeprecationWarning: invalid escape sequence \d
(with various python files and sometimes with \s instead of \d).

And then (in SageMath in the terminal) some things work without problem, 
but there are also various inputs that give the "Illegal instruction" error 
on a "sig_on()" line of a pyx file. For example, the same input of 
share-the-sage, but also the following example from the documentation, give 
the error:
K. = NumberField(x^10 - 2)
L. = K.relativize(a^4 + a^2 + 2); L
(full in- and output below)

Do you have any suggestions for fixing this without asking my system 
administrator to upgrade to Ubuntu 20.04 and/or rebuilding? How likely is 
it that upgrading to Ubuntu 20.04 will fix the problem for me too?

Thanks!
Marco


./sage

┌┐

│ SageMath version 9.3, Release Date: 2021-05-09 │

│ Using Python 3.9.2. Type "help()" for help.│

└┘

sage: print(version()) 

: m=matrix(QQ,[*0*, *0*, *2*, *1*]) 

: print(m) 

: m_rs=m.row_space() 

: print(m_rs) 

: facet_z_plus_basis=m.right_kernel().basis() 

:  


 

SageMath version 9.3, Release Date: 2021-05-09

[0 0 2 1]

Vector space of degree 4 and dimension 1 over Rational Field

Basis matrix:

[  0   0   1 1/2]

---

SignalError   Traceback (most recent call last)

 in 

*  4* m_rs=m.row_space()

*  5* print(m_rs)

> 6 facet_z_plus_basis=m.right_kernel().basis()


~/software/sage-9.3/local/lib/python3.9/site-packages/sage/matrix/matrix2.pyx 
in sage.matrix.matrix2.Matrix.right_kernel 
(build/cythonized/sage/matrix/matrix2.c:31059)()

*   4717* 

*   4718* # Go get the kernel matrix, this is where it all happens

-> 4719 M = self.right_kernel_matrix(*args, **kwds)

*   4720* 

*   4721* ambient = R**self.ncols()


~/software/sage-9.3/local/lib/python3.9/site-packages/sage/matrix/matrix2.pyx 
in sage.matrix.matrix2.Matrix.right_kernel_matrix 
(build/cythonized/sage/matrix/matrix2.c:29696)()

*   4318* if M is None:

*   4319* try:

-> 4320 format, M = 
self._right_kernel_matrix(algorithm=algorithm, proof=proof)

*   4321* except AttributeError:

*   4322* pass


~/software/sage-9.3/local/lib/python3.9/site-packages/sage/matrix/matrix_rational_dense.pyx
 
in 
sage.matrix.matrix_rational_dense.Matrix_rational_dense._right_kernel_matrix 
(build/cythonized/sage/matrix/matrix_rational_dense.cpp:14103)()

*   1424* else:

*   1425* A, _ = self._clear_denom()

-> 1426 K = A._rational_kernel_iml().transpose().change_ring(QQ)

*   1427* verbose("done computing right kernel matrix over the 
rationals for %sx%s matrix" % (self.nrows(), self.ncols()),level=1, t=tm)

*   1428* return 'computed-iml-rational', K


~/software/sage-9.3/local/lib/python3.9/site-packages/sage/matrix/matrix_integer_dense.pyx
 
in 
sage.matrix.matrix_integer_dense.Matrix_integer_dense._rational_kernel_iml 
(build/cythonized/sage/matrix/matrix_integer_dense.cpp:32352)()

*   3880* time = verbose('computing null space of %s x %s matrix 
using IML'%(self._nrows, self._ncols))

*   3881* cdef mpz_t * m = fmpz_mat_to_mpz_array(self._matrix)

-> 3882 sig_on()

*   3883* dim = nullspaceMP(self._nrows, self._ncols, m, _N)

*   3884* sig_off()


SignalError: Illegal instruction

sage: *1*+*1*  


 

2

sage: K. = NumberField(x^*10* - *2*) 

:  


 

sage: L. = K.relativize(a^*4* + a^*2* + *2*); L 

:  

[sage-support] Re: Installing Package in Systemwise Sagemath

2021-08-23 Thread Eric Gourgoulhon


Le dimanche 22 août 2021 à 15:49:28 UTC+2, asd00012...@gmail.com a écrit :

>
> I installed Sagemath for the entire system using ``sudo apt-get install 
> sagemath'' on my Ubuntu machine. When I tried to do something like ``sage 
> -i kohel_database,'' it told me that it is an unknown option. As searched 
> from the ASKSAGE etc., there's no such options within the apt installed 
> version. So is there alternatives to install packages for this kind of 
> sagemath environment? Or we need to start over and build a fresh local 
> sagemath environment from scratch?
>

Unfortunately, the last option is the only way out here. So please download 
one of the binary builds available at 
https://www.sagemath.org/download-linux.html. The bonus is that you'll get 
a version of SageMath newer than the system one. 



 

-- 
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/5b8742cb-699c-4c8f-a981-44d7698c549en%40googlegroups.com.


[sage-support] Re: How to download as LaTeX, and have output boxes rendered

2021-08-23 Thread Eric Gourgoulhon
Hello,

You should upgrade to at least SageMath 9.2, where this bug has been fixed; 
cf. my answer on asksagemath: 
https://ask.sagemath.org/question/58626/how-to-download-as-latex-and-have-output-boxes-rendered/

Le lundi 23 août 2021 à 10:43:26 UTC+2, Jákup a écrit :

>
> I'm using the Jupyter notebook, and the "download as .tex" option works 
> great for me.
> The only problem is, I want the output to be rendered.
> Inside the notebook, I have '%display latex' set, so all output is 
> rendered in latex. However to my great surprise, when I export the 
> worksheet into a .tex file, the output boxes revert to normal unformatted 
> text.
> Is there a way to make the latex formatting of outputs "survive" when 
> saving it as a LaTeX document?
>
> I'm not afraid of writing the LaTeX myself, but this workflow needs to 
> work for exams, where time is a factor.
> Thanks for your help
>
> SageMath version 9.0, Release Date: 2020-01-01 │
> │ Using Python 3.8.10.
> Running Linux.
>
> Here are pictures of how it looks in my notebook, and in the exported 
> LaTeX:
> [image: 2021-08-23_10-33.png][image: latex.png]
>
>

-- 
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/84ad0ed7-05f3-447f-b9db-1689b6162e34n%40googlegroups.com.