Re: [sage-support] Cannot launch SAGE on MacOS BigSur

2021-03-14 Thread slelievre
If you install Sage for macOS using the binaries from the
download pages of the SageMath website, make sure to
run the `fix_mac_sage` script from

https://github.com/3-manifolds/fix_mac_sage/

If you install via Conda, then to launch Jupyter or JupyerLab,
open a terminal, activate the desired Conda environment,
and run one of

jupyter notebook

or

jupyter lab

That's it.

-- 
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/05384e94-a27c-431b-b5f1-d1065e2bf2een%40googlegroups.com.


[sage-support] problems again installing Sage9.1 (and 9.2)

2021-03-14 Thread Anita Rojas
Dear Developers, I hope you are well. Here I am struggling with the
installation of Sage9.1 (I gave up on Sage9.2) in my new Imac.

I succeeded up to some point with Sage9.1 but when running sage -n jupyter
It opens Chrome and the right page but when I try to open a Sage9.1
Notebook it says:

Creating Notebook Failed
An error occurred while creating a new notebook.
Unexpected error while saving file: Untitled.ipynb [Errno 30] Read-only
file system: '/Untitled.ipynb'
I have tried all your instructions from last time unsuccessfully.
I would really appreciate some help. Thanks in advance.

Best regards,
Anita
(Ah! I have macOS BigSur 11.2.3 on a  3,1 GHz Intel Core i5 de seis núcleos)


On Wed, Apr 8, 2020 at 7:37 PM Samuel Lelièvre 
wrote:

> Forgot one step. Run this:
>
> sage -i gap_packages
> After that, the steps indicated earlier should work.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sage-support" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sage-support/NletjrinNhM/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAEcArF18yaZKbDR-W23%2BSn21mZUSf9uB8MWc6sm1c0Wr7EOcDA%40mail.gmail.com
> .
>


-- 
Anita M. Rojas
Departamento de Matemáticas
Facultad de Ciencias
Universidad de Chile

https://sites.google.com/a/u.uchile.cl/mat-ciencias-prof-anita-rojas/

-- 
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/CAFV-Ve0Vth40NuwGiLcK0KHDD_RfMn-FKPa13gaDLvbYPyAo2Q%40mail.gmail.com.


Re: [sage-support] Using Cadabra2

2021-03-14 Thread Kasper Peeters
Run cmake as

cmake -DCMAKE_INSTALL_PREFIX=/local 

and do not set `DESTDIR`. The `DESTDIR` variable is meant for package 
creation, not to set the final installation location; see 
https://www.gnu.org/prep/standards/html_node/DESTDIR.html for more details.

On Saturday, 13 March 2021 at 16:19:59 UTC dim...@gmail.com wrote:

> On Sat, Mar 13, 2021 at 3:34 PM Kasper Peeters  
> wrote:
> >
> > I am happy to stand corrected, but shouldn't you in that case set 
> `CMAKE_INSTALL_PREFIX` to the empty string? Things get installed into 
> `${DESTDIR}${CMAKE_INSTALL_PREFIX}`. If you do not set 
> `CMAKE_INSTALL_PREFIX`, it defaults to `/usr/local`.
>
> Right, but I don't understand at what point CMAKE_INSTALL_PREFIX has
> to be set, and how.
> CMAKE_INSTALL_PREFIX is a "cmake-variable", as opposed to DESTDIR,
> which is an environment
> variable used in cmake-produced makefiles.
> (As I said, I have little understanding of cmake...)
>
> Dima
>
> >
> > Kasper
> >
> > On Saturday, 13 March 2021 at 13:47:43 UTC dim...@gmail.com wrote:
> >>
> >> On Fri, Mar 12, 2021 at 10:51 PM Kasper Peeters
> >>  wrote:
> >> >
> >> > Cadabra author here. On Unix, the Cadabra build/install process 
> installs a Jupyter kernel, which works with SageMath installed from the 
> binary distribution (may need some PYTHONPATH setting, but nothing more).
> >>
> >> It seems that the Jupyter part of Cadabra appends /usr/local to
> >> cmake's DESTDIR for a reason I don't understand.
> >> A Cadabra bug, maybe? (I don't know enough of cmake to be certain).
> >> It least that's what I got when I tried installing Cadabra into 
> SageMath's venv,
> >> which has the convention that the install prefix is /local
> >> (with SAGE_ROOT the location of the
> >> root of SageMath install); I've set DESTDIR=/local and got
> >> (some parts of) Cadabra installed into DESTDIR/usr/local - which is
> >> not what's needed.
> >>
> >> Dima
> >>
> >> > On Windows, the build process using Visual Studio is relatively 
> simple, but getting everything to see all required libraries is a 
> never-ending horror story. Maybe someone on the SageMath team responsible 
> for the Windows port can help out; I have no resources to properly support 
> Windows.
> >> >
> >> > The alternative is to run the lot in WSL and then install a binary 
> distribution of Cadabra; that is known to work from first-hand experience 
> using a non-SageMath Jupyter installation, but I have no doubt it can be 
> made to work with the one supplied by SageMath. You can still connect to 
> the Jupyter kernel from your Windows browser that way.
> >> >
> >> > On Monday, 8 March 2021 at 14:22:57 UTC dim...@gmail.com wrote:
> >> >>
> >> >> On Mon, Mar 8, 2021 at 7:28 AM 'Daniel Volinski' via sage-support
> >> >>  wrote:
> >> >> >
> >> >> > Hi Dima,
> >> >> >
> >> >> > This is a page in the Cadabra site: Cadabra: use with Jupyter
> >> >> >
> >> >> > I just want to calculate some General relativity stuff using 
> Cadabra on a Jupyter Notebook as shown in their picture.
> >> >>
> >> >> I'm able to build Cadabra2 in SageMath environment (at sage --buildsh
> >> >> prompt, that is)
> >> >> on Debian Linux. This way it should be possible to use it with Sage's
> >> >> Jupyter notebook.
> >> >>
> >> >> But on Windows, well, probably much harder...
> >> >>
> >> >>
> >> >> >
> >> >> > Thanks,
> >> >> >
> >> >> > Daniel Volinski
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> > En domingo, 7 de marzo de 2021 11:54:22 GMT+2, Dima Pasechnik <
> dim...@gmail.com> escribió:
> >> >> >
> >> >> >
> >> >> > I must say I don't understand what you mean by "use Cadabra2 on a 
> Jupyter Notebook", is it even possible?
> >> >> > The following does not read like it's supported by Cadabra2:
> >> >> > https://github.com/kpeeters/cadabra2/tree/master/frontend/web
> >> >> >
> >> >> > They have 
> https://github.com/kpeeters/cadabra2/tree/master/jupyterkernel
> >> >> > but it's not clear how to use it, whether it's working at all etc.
> >> >> > Do they have a working Jupyter kernel, which can be used in a 
> system Jupyter notebook?
> >> >> >
> >> >> > In principle, Sage can use system Jupyter notebook (although 
> whether it's try on Windows, I don't know)
> >> >> > So if this is all working there should be no issue.
> >> >> >
> >> >> >
> >> >> > On Sunday, March 7, 2021 at 9:10:54 AM UTC Daniel Volinski wrote:
> >> >> >
> >> >> > Hi Dima,
> >> >> >
> >> >> > I asked the same question on the Cadabra support site, they don't 
> know either.
> >> >> >
> >> >> > Daniel Volinski
> >> >> >
> >> >> >
> >> >> >
> >> >> > En sábado, 6 de marzo de 2021 16:57:24 GMT+2, 'Daniel Volinski' 
> via sage-support  escribió:
> >> >> >
> >> >> >
> >> >> > Thank you Dima.
> >> >> >
> >> >> > Daniel Volinski
> >> >> >
> >> >> >
> >> >> > En sábado, 6 de marzo de 2021 12:30:27 GMT+2, Dima Pasechnik <
> dim...@gmail.com> escribió:
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> > On Sat, 6 Mar 2021, 10:23 'Daniel Volinski' via sage-support, <
> sage-s...@go

Re: [sage-support] Using Cadabra2

2021-03-14 Thread Dima Pasechnik
On Sun, Mar 14, 2021 at 7:29 PM Kasper Peeters  wrote:
>
> Run cmake as
>
> cmake -DCMAKE_INSTALL_PREFIX=/local
>
> and do not set `DESTDIR`. The `DESTDIR` variable is meant for package 
> creation, not to set the final installation location; see 
> https://www.gnu.org/prep/standards/html_node/DESTDIR.html for more details.

Thanks. I forgot that cmake-speak for parameters is "variables".

>
> On Saturday, 13 March 2021 at 16:19:59 UTC dim...@gmail.com wrote:
>>
>> On Sat, Mar 13, 2021 at 3:34 PM Kasper Peeters  wrote:
>> >
>> > I am happy to stand corrected, but shouldn't you in that case set 
>> > `CMAKE_INSTALL_PREFIX` to the empty string? Things get installed into 
>> > `${DESTDIR}${CMAKE_INSTALL_PREFIX}`. If you do not set 
>> > `CMAKE_INSTALL_PREFIX`, it defaults to `/usr/local`.
>>
>> Right, but I don't understand at what point CMAKE_INSTALL_PREFIX has
>> to be set, and how.
>> CMAKE_INSTALL_PREFIX is a "cmake-variable", as opposed to DESTDIR,
>> which is an environment
>> variable used in cmake-produced makefiles.
>> (As I said, I have little understanding of cmake...)
>>
>> Dima
>>
>> >
>> > Kasper
>> >
>> > On Saturday, 13 March 2021 at 13:47:43 UTC dim...@gmail.com wrote:
>> >>
>> >> On Fri, Mar 12, 2021 at 10:51 PM Kasper Peeters
>> >>  wrote:
>> >> >
>> >> > Cadabra author here. On Unix, the Cadabra build/install process 
>> >> > installs a Jupyter kernel, which works with SageMath installed from the 
>> >> > binary distribution (may need some PYTHONPATH setting, but nothing 
>> >> > more).
>> >>
>> >> It seems that the Jupyter part of Cadabra appends /usr/local to
>> >> cmake's DESTDIR for a reason I don't understand.
>> >> A Cadabra bug, maybe? (I don't know enough of cmake to be certain).
>> >> It least that's what I got when I tried installing Cadabra into 
>> >> SageMath's venv,
>> >> which has the convention that the install prefix is /local
>> >> (with SAGE_ROOT the location of the
>> >> root of SageMath install); I've set DESTDIR=/local and got
>> >> (some parts of) Cadabra installed into DESTDIR/usr/local - which is
>> >> not what's needed.
>> >>
>> >> Dima
>> >>
>> >> > On Windows, the build process using Visual Studio is relatively simple, 
>> >> > but getting everything to see all required libraries is a never-ending 
>> >> > horror story. Maybe someone on the SageMath team responsible for the 
>> >> > Windows port can help out; I have no resources to properly support 
>> >> > Windows.
>> >> >
>> >> > The alternative is to run the lot in WSL and then install a binary 
>> >> > distribution of Cadabra; that is known to work from first-hand 
>> >> > experience using a non-SageMath Jupyter installation, but I have no 
>> >> > doubt it can be made to work with the one supplied by SageMath. You can 
>> >> > still connect to the Jupyter kernel from your Windows browser that way.
>> >> >
>> >> > On Monday, 8 March 2021 at 14:22:57 UTC dim...@gmail.com wrote:
>> >> >>
>> >> >> On Mon, Mar 8, 2021 at 7:28 AM 'Daniel Volinski' via sage-support
>> >> >>  wrote:
>> >> >> >
>> >> >> > Hi Dima,
>> >> >> >
>> >> >> > This is a page in the Cadabra site: Cadabra: use with Jupyter
>> >> >> >
>> >> >> > I just want to calculate some General relativity stuff using Cadabra 
>> >> >> > on a Jupyter Notebook as shown in their picture.
>> >> >>
>> >> >> I'm able to build Cadabra2 in SageMath environment (at sage --buildsh
>> >> >> prompt, that is)
>> >> >> on Debian Linux. This way it should be possible to use it with Sage's
>> >> >> Jupyter notebook.
>> >> >>
>> >> >> But on Windows, well, probably much harder...
>> >> >>
>> >> >>
>> >> >> >
>> >> >> > Thanks,
>> >> >> >
>> >> >> > Daniel Volinski
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > En domingo, 7 de marzo de 2021 11:54:22 GMT+2, Dima Pasechnik 
>> >> >> >  escribió:
>> >> >> >
>> >> >> >
>> >> >> > I must say I don't understand what you mean by "use Cadabra2 on a 
>> >> >> > Jupyter Notebook", is it even possible?
>> >> >> > The following does not read like it's supported by Cadabra2:
>> >> >> > https://github.com/kpeeters/cadabra2/tree/master/frontend/web
>> >> >> >
>> >> >> > They have 
>> >> >> > https://github.com/kpeeters/cadabra2/tree/master/jupyterkernel
>> >> >> > but it's not clear how to use it, whether it's working at all etc.
>> >> >> > Do they have a working Jupyter kernel, which can be used in a system 
>> >> >> > Jupyter notebook?
>> >> >> >
>> >> >> > In principle, Sage can use system Jupyter notebook (although whether 
>> >> >> > it's try on Windows, I don't know)
>> >> >> > So if this is all working there should be no issue.
>> >> >> >
>> >> >> >
>> >> >> > On Sunday, March 7, 2021 at 9:10:54 AM UTC Daniel Volinski wrote:
>> >> >> >
>> >> >> > Hi Dima,
>> >> >> >
>> >> >> > I asked the same question on the Cadabra support site, they don't 
>> >> >> > know either.
>> >> >> >
>> >> >> > Daniel Volinski
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > En sábado, 6 de marzo de 2021 16:57:24 GMT+2, 'Daniel Volinski' via 
>> 

Re: [sage-support] Windows install problems

2021-03-14 Thread Vincent Delecroix

Dear Fernando,

The error should be reported to

https://github.com/sagemath/sage-windows

If you do so, include a more complete description
of your settings. That is

- your operating system (ie which Windows version)
- the version of the SageMath Windows installer
  you tried (ie 0.6.1 or 0.6.2 since you mentioned SageMath 9.2)
- if you had a previous working SageMath on the same machine

Best
Vincent

Le 12/03/2021 à 21:01, Fernando Q. Gouvea a écrit :
I have installed Sage on lots of windows machines using the prepared 
binary, but this time I'm having trouble.


The installation seems to run fine and creates the icons. When I click 
on the SageMath 9.2 icon, however, I get this:


mount: /tmp: Invalid argument
Sage home directory set to 'C:\Users\fqgouvea'
Close and restart all Sage sessions for the new setting to take effect.

And then nothing for a long time. If I lose my patience and close that 
window (one time I waited a whole day), then the next time I click I get 
a blank terminal window.


Any idea what might be going on?

Thanks,

Fernando




--
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/779d8a08-0c30-70aa-d9ba-8edae6ddc34a%40gmail.com.


[sage-support] Re: problems again installing Sage9.1 (and 9.2)

2021-03-14 Thread Anita Rojas
Sorry! Me again. I got further: I manage to start sage -n jupyter. I did
some trigonometric graphs
but my gap-routines didn't work. So I run in a terminal:

/Application/ XXX /sage -i gap_packages

and then I got backwards to this:

**


Oops, Sage crashed. We do our best to make it stable, but...


A crash report was automatically generated with the following information:

  - A verbatim copy of the crash traceback.

  - A copy of your input history during this session.

  - Data on your current Sage configuration.


It was left in the file named:

'/Users/anitaimac/.sage/ipython-5.0.0/Sage_crash_report.txt'

If you can email this file to the developers, the information in it will
help

them in understanding and correcting the problem.


You can mail it to: sage-support at sage-support@googlegroups.com

with the subject 'Sage Crash Report'.


If you want to do it now, the following command will work (under Unix):

mail -s 'Sage Crash Report' sage-support@googlegroups.com <
/Users/anitaimac/.sage/ipython-5.0.0/Sage_crash_report.txt


In your email, please also include information about:

- The operating system under which the crash happened: Linux, macOS,
Windows,

  other, and which exact version (for example: Ubuntu 16.04.3, macOS
10.13.2,

  Windows 10 Pro), and whether it is 32-bit or 64-bit;

- How Sage was installed: using pip or conda, from GitHub, as part of

  a Docker container, or other, providing more detail if possible;

- How to reproduce the crash: what exact sequence of instructions can one

  input to get the same crash? Ideally, find a minimal yet complete sequence

  of instructions that yields the crash.


To ensure accurate tracking of this issue, please file a report about it at:

http://trac.sagemath.org


Hit  to quit (your terminal may close):


---


Now nothing works. I tried sage 9.1 and 9.2, and also sage.app 9.1.
Nothing.

I'll stop here and wait for your help... Thanks.

On Sun, Mar 14, 2021 at 4:24 PM Anita Rojas  wrote:

> Dear Developers, I hope you are well. Here I am struggling with the
> installation of Sage9.1 (I gave up on Sage9.2) in my new Imac.
>
> I succeeded up to some point with Sage9.1 but when running sage -n jupyter
> It opens Chrome and the right page but when I try to open a Sage9.1
> Notebook it says:
>
> Creating Notebook Failed
> An error occurred while creating a new notebook.
> Unexpected error while saving file: Untitled.ipynb [Errno 30] Read-only
> file system: '/Untitled.ipynb'
> I have tried all your instructions from last time unsuccessfully.
> I would really appreciate some help. Thanks in advance.
>
> Best regards,
> Anita
> (Ah! I have macOS BigSur 11.2.3 on a  3,1 GHz Intel Core i5 de seis
> núcleos)
>
>
> On Wed, Apr 8, 2020 at 7:37 PM Samuel Lelièvre 
> wrote:
>
>> Forgot one step. Run this:
>>
>> sage -i gap_packages
>> After that, the steps indicated earlier should work.
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "sage-support" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/sage-support/NletjrinNhM/unsubscribe.
>> To unsubscribe from this group and all its topics, 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/CAEcArF18yaZKbDR-W23%2BSn21mZUSf9uB8MWc6sm1c0Wr7EOcDA%40mail.gmail.com
>> .
>>
>
>
> --
> Anita M. Rojas
> Departamento de Matemáticas
> Facultad de Ciencias
> Universidad de Chile
>
> https://sites.google.com/a/u.uchile.cl/mat-ciencias-prof-anita-rojas/
>


-- 
Anita M. Rojas
Departamento de Matemáticas
Facultad de Ciencias
Universidad de Chile

https://sites.google.com/a/u.uchile.cl/mat-ciencias-prof-anita-rojas/

-- 
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/CAFV-Ve1b3nT10gLbVj7d4kULWf%3DEPcgm2TdLqXLvgO2b48iwWA%40mail.gmail.com.