Re: [sage-support] Re: Jupiter Server fails to start on macOS Catalina

2020-04-05 Thread 'Dan Brooks' via sage-support
I had the same problem as the OP. Jupyter Server would not start after 
install of the .app.dmg package. 

I can report success launching Sage from the Applications icon after the 
following steps:

1) Grant Full Disk Access in System Preferences->Security->Privacy (as 
suggested previously)

2) Launch Sage from the command line in the executable's installed 
directory. In a terminal window:

cd /Applications/SageMath-9.0.app
./sage -n



3) The executable should "patch" or rewrite all of the required paths to 
match their actual locations in your particular Catalina install. 
After that, it should open a Jupyter tab in Safari.

4) When you see the Jupyter tab in Safari: 
 click the Quit button. This will stop the Jupyter Server, but that's 
ok. 

5) Launch Sage using Applications->SageMath-9.0. 

All should be well at this point, but your actual mileage may vary. Hope 
this helps. 

-- 
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/354982d2-b75d-4424-a60a-fd749725d42f%40googlegroups.com.


Re: [sage-support] Apparently Sage lost Python

2020-04-05 Thread Anita Rojas
Thanks a lot for your support and patience but I gave up. I can not
succeed. There are too many difficulties that I am not going to be able of
solving: My older routines lost, my files with computations and examples. I
do not know how to recover them. Perhaps I will try again in next future,
with less anxiety and more energy.
Thanks again.
Best regards

On Sat, Apr 4, 2020 at 12:13 AM Dima Pasechnik  wrote:

>
>
> On Sat, 4 Apr 2020, 11:11 Anita Rojas,  wrote:
>
>> Hi! I am far away of being a OSX guru, but I managed to get my SAGE
>> working.
>>
>> It use to work properly but now I got the following message:
>>
>>
>> Error: Tried to use Sage's Python which was not yet installed.
>>
>> If this was called from an spkg-install script for another
>>
>> package you should add $(PYTHON) as a dependency in
>>
>> build/pkgs//dependencies
>>
>>
>> I looked for solutions but I could not find answers. I would appreciate
>> help.
>>
>
> Probably a MacOS update broke your Sage installation.
>
> If so, reinstalling might be the only  known way to fix this.
>
>
>> Best,
>>
>> Anita
>>
>> --
>> 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/e7c84768-c030-425a-b78b-aa1a378e757e%40googlegroups.com
>> 
>> .
>>
> --
> 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/CAAWYfq0h61z4n-xV2yT6-CB_-izF5ZkOtF%3DXUu%2Bq_h%2BDekYCZw%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-Ve0whOc4CpDdyQO09hvLD0sErp%3DUCByOdVH86xS-4Bq8Lw%40mail.gmail.com.


Re: [sage-support] Apparently Sage lost Python

2020-04-05 Thread Anita Rojas
Thanks. I did it and I got no ID. The message was:
---

anirojas@MacBook-de-Anita ~ % /Applications/SageMath/sage --notebook=export
--list

Unique ID   | Notebook Name

---

Traceback (most recent call last):

  File "/Applications/SageMath/local/bin/sagenb-export", line 11, in


load_entry_point('sagenb-export==3.3', 'console_scripts',
'sagenb-export')()

  File
"/Applications/SageMath/local/lib/python3.7/site-packages/sagenb_export/cmdline.py",
line 49, in main

action_list(dot_sage)

  File
"/Applications/SageMath/local/lib/python3.7/site-packages/sagenb_export/actions.py",
line 14, in action_list

for notebook in NotebookSageNB.all_iter(dot_sage)

  File
"/Applications/SageMath/local/lib/python3.7/site-packages/sagenb_export/actions.py",
line 14, in 

for notebook in NotebookSageNB.all_iter(dot_sage)

  File
"/Applications/SageMath/local/lib/python3.7/site-packages/sagenb_export/sagenb_reader.py",
line 217, in sort_key

return (self.conf['owner'], self.conf['id_number'])

KeyError: 'owner'

On Sun, Apr 5, 2020 at 11:31 AM rana-aere  wrote:

> I guess it is about the page of title "Home".
> We do not have access to sagenb notebooks.
> Instead we have access to jupyter notebooks.
> For the current situation, you do not have any noebooks.
> That is why no notebook is listed in the page.
> You can try "New" button at the upper right corner below the grey
> horizontal line.
> If you play with some little program in the new notebook,
> it might be a good chance to test upgrading sagenb notebooks.
>
> This "upgrade" is only possible from command line.
> The two relevant "sage --notebook=export --list" and "sage
> --notebook=export ipynb TARGETFILENAME admin:NN". The former prints a
> list of sagenb notebooks.
> An example is here.
>
> ```
>
> Unique ID   | Notebook Name
>
>
> ---
>
> admin:0 | Save 30% by Sagemath  (~/Manuals/SageTutorial9.0.pdf)
>
> admin:1 | "Rabbit's population" $F_n$ is like $((1+\sqrt{5})/2)^n$!
>
> admin:2 | Integral #1: $f(x)=\frac{1}{\sqrt{1-x^2}}$, $|x| < 1$.
>
> admin:3 | Integral #2: why is f(x) = x * sqrt(1-x^2), (x in
> [-1,1]) easier?
>
> admin:4 | Oval body & `tail' of @rana-aerea
>
> admin:5 | Calculus of log|x|, x > 0.
>
> admin:6 | mycalc
>
> admin:7 | mycalc
>
> ```
>
>
> The other command upgrades the notebook.
>
> For example,
>
> "sage --notebook=export ipynb mycalc-a admin:6"
>
> converts the notebook with title "mycalc" with the unique id "admin:6".
>
> It is possible some notebooks of yours have unique id of the form "guest:0"
>
> or some other "user name". I guess
>
> "sage --notebook=export ipynb guestnotebook guest:0"
>
> also works.
>
> --
> 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/d2d8cae8-622d-4c60-93a7-bcc9b0ae7f31%40googlegroups.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-Ve1CvaTo6srOD0qnW3_iG76NwxeLCPv%2BO6ug1Voonbr1Ag%40mail.gmail.com.


Re: [sage-support] Apparently Sage lost Python

2020-04-05 Thread Anita Rojas
Thanks, but I installed 8.9 and it did not work. Back again to point 0.
I did the line "sudodisable" but I still get:

*“python2.7” no se puede abrir porque no se puede verificar el
desarrollador.*

(meaning that python2.7 can not open because it could be a malware)


On Sun, Apr 5, 2020 at 11:16 AM rana-aere  wrote:

> Yes, version <= 8.9 is the solution for now.
> If the number of notebooks is not too large, upgrading sagenb notebooks to
> jupyter notebooks
> might be a good idea.
> In the next release, the error messages will not be missing.
> In that time please try "sage --notebook=export --list"
> and "sage --notebook=export ipynb TARGETFILENAME admin:NN"
> for upgrading notebooks.
>
> 2020年4月5日日曜日 23時17分02秒 UTC+9 Anita Rojas:
>>
>> Thanks. I tried "sage -n Jupyter", and my browser opened but without
>> success in entering SAGE.
>> I will install SAGA 8.1 to see if it works.
>> Here is the message I got once typing "sage -n":
>> ---
>>
>> sage: notebook()
>>
>>
>> ---
>>
>> ModuleNotFoundError   Traceback (most recent call
>> last)
>>
>>  in ()
>>
>> > 1 notebook()
>>
>>
>>
>> ModuleNotFoundError: No module named 'sagenb'
>> ...
>>
> --
> 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/ddfde43c-d1e8-44b2-8e7e-ba514dd8ef1e%40googlegroups.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-Ve3VBgMgGhcLMG%3DwqHmOGH88E30m7dU-xgA%3DEZRPnaL2AQ%40mail.gmail.com.


[sage-support] Re: Slow Computations in Quotient Rings

2020-04-05 Thread rana-aere
I think it is an issue to be reported.
So, I wait for someone to respond this question.

To developers of the SageMath module of rings:
Please verify the program in this question, with debugging messages I added.
we ran into a weakness of SageMath either
 in formula processing producing too complicated denominators
 or in SageMath module of quotient of rings, which fail to reduce the 
element of the ring.
I believe the code reported here is an important entry for new students to 
SageMath.
Please program what is going for this program.

2020年4月5日日曜日 5時56分25秒 UTC+9 finotti:
>
> Thanks for the reply!
>
> On Saturday, April 4, 2020 at 1:00:12 PM UTC-4, rana-aere wrote:
>>
>> I modified the code and tried to trace computation.
>>
>> I think you stepped over the weakness of Sagemath.
>>
>
> I was afraid that that would be the case...
>  
>
>>
>> The modified code is quoted below.
>> The line with many minus signs is meant to separate the program in 
>> different cells of jupyter notebook.
>> My impression is that the program computes R, P + Q, LHS = (P + Q) + R 
>> and then Q + R for RHS.
>> After that the data for the outer call of P + (Q + R) becomes too big so 
>> that Sagemath cannot pass the parameters to add_EC.
>>
>
> Thanks for taking the time to do that! I really appreciate.  I wonder if 
> this is an issue that I should report or if it simply "how it is"...
>
> I think we will just stick with Magma for now.  I try to use (and teach 
> with) Sage whenever possible, but in this case I think I will have to stick 
> with Magma.
>
> Thanks again!
>

-- 
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/57695753-ccfd-4542-98fb-3093297fd0ad%40googlegroups.com.


Re: [sage-support] Apparently Sage lost Python

2020-04-05 Thread rana-aere
I guess it is about the page of title "Home".
We do not have access to sagenb notebooks.
Instead we have access to jupyter notebooks.
For the current situation, you do not have any noebooks.
That is why no notebook is listed in the page.
You can try "New" button at the upper right corner below the grey 
horizontal line.
If you play with some little program in the new notebook,
it might be a good chance to test upgrading sagenb notebooks.

This "upgrade" is only possible from command line.
The two relevant "sage --notebook=export --list" and "sage 
--notebook=export ipynb TARGETFILENAME admin:NN". The former prints a 
list of sagenb notebooks.
An example is here.

```

Unique ID   | Notebook Name

---

admin:0 | Save 30% by Sagemath  (~/Manuals/SageTutorial9.0.pdf)

admin:1 | "Rabbit's population" $F_n$ is like $((1+\sqrt{5})/2)^n$!

admin:2 | Integral #1: $f(x)=\frac{1}{\sqrt{1-x^2}}$, $|x| < 1$.

admin:3 | Integral #2: why is f(x) = x * sqrt(1-x^2), (x in [-1,1]) 
easier?

admin:4 | Oval body & `tail' of @rana-aerea

admin:5 | Calculus of log|x|, x > 0.

admin:6 | mycalc

admin:7 | mycalc

```


The other command upgrades the notebook.

For example,

"sage --notebook=export ipynb mycalc-a admin:6"

converts the notebook with title "mycalc" with the unique id "admin:6".

It is possible some notebooks of yours have unique id of the form "guest:0"

or some other "user name". I guess 

"sage --notebook=export ipynb guestnotebook guest:0"

also works.

-- 
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/d2d8cae8-622d-4c60-93a7-bcc9b0ae7f31%40googlegroups.com.


Re: [sage-support] Apparently Sage lost Python

2020-04-05 Thread Dima Pasechnik
On Sun, Apr 5, 2020 at 11:08 PM Anita Rojas  wrote:
>
> Sorry. Here is the message once typing sage -n jupyter
> ---
>
> Please wait while the Sage Jupyter Notebook server starts...
>
> [I 11:06:33.649 NotebookApp] Using MathJax: nbextensions/mathjax/MathJax.js
>
> [I 11:06:33.944 NotebookApp] Serving notebooks from local directory: 
> /Users/anirojas
>
> [I 11:06:33.944 NotebookApp] The Jupyter Notebook is running at:
>
> [I 11:06:33.944 NotebookApp] 
> http://localhost:/?token=fffae97f554fd98928c0aa84067eb7f2738ba70e8fa14b47
>
> [I 11:06:33.944 NotebookApp] Use Control-C to stop this server and shut down 
> all kernels (twice to skip confirmation).
>
> [C 11:06:33.962 NotebookApp]
>
>
>
> To access the notebook, open this file in a browser:
>
> file:///Users/anirojas/Library/Jupyter/runtime/nbserver-8335-open.html
>
> Or copy and paste one of these URLs:
>
> 
> http://localhost:/?token=fffae97f554fd98928c0aa84067eb7f2738ba70e8fa14b47
>
> -
>
> My browser opens with:
>
>
> http://localhost:/tree

and what happens if you open

 http://localhost:/?token=fffae97f554fd98928c0aa84067eb7f2738ba70e8fa14b47

as suggested in the message above?

>
>
> I am downloading sage 8.8 (sorry!)
>
>
> Thanks again
>
>
>
>
>
> On Sun, Apr 5, 2020 at 10:31 AM Dima Pasechnik  wrote:
>>
>> On Sun, Apr 5, 2020 at 10:16 PM Anita Rojas  wrote:
>> >
>> > Thanks. I tried "sage -n Jupyter", and my browser opened but without 
>> > success in entering SAGE.
>>
>> At least on Linux, it must be jupyter, not Jupyter
>>
>> Once again, to get an idea what goes wrong, we need to see the
>> messages you get in the terminal after you started this.
>>
>>
>>
>>
>> > I will install SAGA 8.1 to see if it works.
>> 9.1 ?
>> It's not ready yet.
>>
>>
>> > Here is the message I got once typing "sage -n":
>>
>> yes, this is expected.
>>
>> > ---
>> >
>> > sage: notebook()
>> >
>> > ---
>> >
>> > ModuleNotFoundError   Traceback (most recent call last)
>> >
>> >  in ()
>> >
>> > > 1 notebook()
>> >
>> >
>> > /Applications/SageMath/local/lib/python3.7/site-packages/sage/misc/lazy_import.pyx
>> >  in sage.misc.lazy_import.LazyImport.__call__ 
>> > (build/cythonized/sage/misc/lazy_import.c:3684)()
>> >
>> > 351 True
>> >
>> > 352 """
>> >
>> > --> 353 return self.get_object()(*args, **kwds)
>> >
>> > 354
>> >
>> > 355 def __repr__(self):
>> >
>> >
>> > /Applications/SageMath/local/lib/python3.7/site-packages/sage/misc/lazy_import.pyx
>> >  in sage.misc.lazy_import.LazyImport.get_object 
>> > (build/cythonized/sage/misc/lazy_import.c:2347)()
>> >
>> > 186 if likely(self._object is not None):
>> >
>> > 187 return self._object
>> >
>> > --> 188 return self._get_object()
>> >
>> > 189
>> >
>> > 190 cpdef _get_object(self):
>> >
>> >
>> > /Applications/SageMath/local/lib/python3.7/site-packages/sage/misc/lazy_import.pyx
>> >  in sage.misc.lazy_import.LazyImport._get_object 
>> > (build/cythonized/sage/misc/lazy_import.c:2586)()
>> >
>> > 218 elif self._at_startup and not startup_guard:
>> >
>> > 219 print('Option ``at_startup=True`` for lazy import {0} 
>> > not needed anymore'.format(self._name))
>> >
>> > --> 220 self._object = getattr(__import__(self._module, {}, {}, 
>> > [self._name]), self._name)
>> >
>> > 221 name = self._as_name
>> >
>> > 222 if self._deprecation is not None:
>> >
>> >
>> > ModuleNotFoundError: No module named 'sagenb'
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > On Sat, Apr 4, 2020 at 1:41 PM Dima Pasechnik  wrote:
>> >>
>> >> On Sat, Apr 4, 2020 at 9:10 PM Anita Rojas  wrote:
>> >> >
>> >> > Thanks. Still not working :(
>> >> > Now I got:
>> >> >
>> >> > 500 : Internal Server Error
>> >> >
>> >> > in Chrome browser.
>> >> > What should I do?
>> >>
>> >> please post more details.
>> >> e.g. if I try running "sage -n"
>> >> in the terminal I see something like this:
>> >>
>> >>
>> >> $ ./sage -n
>> >> ┌┐
>> >> │ SageMath version 9.1.beta9, Release Date: 2020-03-29   │
>> >> │ Using Python 3.7.3. Type "help()" for help.│
>> >> └┘
>> >> ┏┓
>> >> ┃ Warning: this is a prerelease version, and it may be unstable. ┃
>> >> ┗┛
>> >> Please wait while the SageNB export server starts...
>> >> [I 00:38:22.448 NotebookApp] Using MathJax: 
>> >> nbextensions/mathjax/MathJax.js
>> >> [I 00:38:22.684 NotebookApp] Serving notebooks from local directory:
>> >> /home/dimpase/sage
>> >> [I 00:38:22.684 NotebookApp] The Jupyter Noteboo

Re: [sage-support] Apparently Sage lost Python

2020-04-05 Thread rana-aere
Yes, version <= 8.9 is the solution for now.
If the number of notebooks is not too large, upgrading sagenb notebooks to 
jupyter notebooks
might be a good idea.
In the next release, the error messages will not be missing.
In that time please try "sage --notebook=export --list"
and "sage --notebook=export ipynb TARGETFILENAME admin:NN"
for upgrading notebooks.

2020年4月5日日曜日 23時17分02秒 UTC+9 Anita Rojas:
>
> Thanks. I tried "sage -n Jupyter", and my browser opened but without 
> success in entering SAGE.
> I will install SAGA 8.1 to see if it works. 
> Here is the message I got once typing "sage -n":
> ---
>
> sage: notebook()
>
> ---
>
> ModuleNotFoundError   Traceback (most recent call 
> last)
>
>  in ()
>
> > 1 notebook()
>
>
>
> ModuleNotFoundError: No module named 'sagenb'
> ...
>

-- 
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/ddfde43c-d1e8-44b2-8e7e-ba514dd8ef1e%40googlegroups.com.


Re: [sage-support] Apparently Sage lost Python

2020-04-05 Thread Anita Rojas
Yes. Thanks. I manage in less than enough in MacOS. I will try to install
8.9 version. I'll report if this works.
Could be useful to other user

On Sat, Apr 4, 2020 at 2:34 PM rana-aere  wrote:

> I guess your computer is left vulnerable.
> So you should use
> ```
> sudo spctl --master-enable
> ```
>
> We are fixing slow start-up of Sagemath and also problems of permissions.
> SageMath-8.9 is OK for MacOS upto MacOS Mojave.
> SageMath-9.0 needs techniques for installation on MacOS Mojave.
> Many people complains problems of SageMath-9.0 on MacOS Catalina.
> I only understood two or three symptoms reported but I located one
> essential problem.
>
> So, we are in a rather transient situation.
>
> For the user's of sagenb notebook, I'd rather recommend to use
> SageMath-8.9 while
> waiting for SageMath get OK with Catalina. I think you are in this
> category.
>
> For MacOS freak, I recommend to try the following procedure in the same
> account:
> (This works for MacOS Mojave. On the other hand, no one reported it to
> work on Catalina.)
> (1) Copy SageMath-9.0 from disk-image to /Applications. Do not double
> click it at this moment.
> (2) Open /Applications/Utilities/Terminal.app
> (3) In the terminal window, issue the following command
> ```
> myhome$ /Applications/SageMath-9.0.app/sage
> ```
> (4) Quit sage after the sage-prompt asks you for input something.
> (5) Diable verification by "sudo spctl --master-disable".
> (6) Double click /Applications/SageMath-9.0.app
> (7) Specify your folder for Sagemath when a dialogue asks it.
>  This folder is something close to the folder tree  ~/.sage of
> notebooks.
>  But it must be different from ~/.sage.
>  Sagemath does not start-up on Catalina if this folder is not
> specified at the dialogue.
> (8) If Sagemath opened a web-page of jupyter notebook
>  and you verify this page accept programs of Sagemath (e.g.
> print("hello") ),
>  then quit Sagemath by the menu.
> (9) Use " sudo spctl --master-enable" to restart protection.
>
> I guess this explanation gives an impression of a gap between (7) and (8).
> This is because we are still fighting the problem behind (7).
>
> If you are in this category, I welcome claims from you.
>
> Alternatively, if you want to go to new versions of Sagemath,
> please wait for Sagemath-9.1.
>
>
> 2020年4月4日土曜日 13時25分46秒 UTC+9 Anita Rojas:
>>
>> Thanks. I did:
>>
>> sudo spctl --master-disable
>>
>> and it worked. I have a question: Did I leave my computer vulnerable by
>> doing so?
>>
>> Second: I was used to use notebook() but it did not work.
>>
>> Deep thanks for your help
>> Anita
>>
>> ...
>>
> --
> 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/60dbe26c-376a-4a84-8082-9e150beaafbe%40googlegroups.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-Ve1AfyLdqb5PoC2vagn7grtStGE9HTkHXm_7eYwUBWLZng%40mail.gmail.com.


Re: [sage-support] Apparently Sage lost Python

2020-04-05 Thread Anita Rojas
Sorry. Here is the message once typing sage -n jupyter
---

Please wait while the Sage Jupyter Notebook server starts...

[I 11:06:33.649 NotebookApp] Using MathJax: nbextensions/mathjax/MathJax.js

[I 11:06:33.944 NotebookApp] Serving notebooks from local directory:
/Users/anirojas

[I 11:06:33.944 NotebookApp] The Jupyter Notebook is running at:

[I 11:06:33.944 NotebookApp]
http://localhost:/?token=fffae97f554fd98928c0aa84067eb7f2738ba70e8fa14b47

[I 11:06:33.944 NotebookApp] Use Control-C to stop this server and shut
down all kernels (twice to skip confirmation).

[C 11:06:33.962 NotebookApp]



To access the notebook, open this file in a browser:


file:///Users/anirojas/Library/Jupyter/runtime/nbserver-8335-open.html

Or copy and paste one of these URLs:


http://localhost:/?token=fffae97f554fd98928c0aa84067eb7f2738ba70e8fa14b47

-

My browser opens with:


http://localhost:/tree


I am downloading sage 8.8 (sorry!)


Thanks again




On Sun, Apr 5, 2020 at 10:31 AM Dima Pasechnik  wrote:

> On Sun, Apr 5, 2020 at 10:16 PM Anita Rojas  wrote:
> >
> > Thanks. I tried "sage -n Jupyter", and my browser opened but without
> success in entering SAGE.
>
> At least on Linux, it must be jupyter, not Jupyter
>
> Once again, to get an idea what goes wrong, we need to see the
> messages you get in the terminal after you started this.
>
>
>
>
> > I will install SAGA 8.1 to see if it works.
> 9.1 ?
> It's not ready yet.
>
>
> > Here is the message I got once typing "sage -n":
>
> yes, this is expected.
>
> > ---
> >
> > sage: notebook()
> >
> >
> ---
> >
> > ModuleNotFoundError   Traceback (most recent call
> last)
> >
> >  in ()
> >
> > > 1 notebook()
> >
> >
> >
> /Applications/SageMath/local/lib/python3.7/site-packages/sage/misc/lazy_import.pyx
> in sage.misc.lazy_import.LazyImport.__call__
> (build/cythonized/sage/misc/lazy_import.c:3684)()
> >
> > 351 True
> >
> > 352 """
> >
> > --> 353 return self.get_object()(*args, **kwds)
> >
> > 354
> >
> > 355 def __repr__(self):
> >
> >
> >
> /Applications/SageMath/local/lib/python3.7/site-packages/sage/misc/lazy_import.pyx
> in sage.misc.lazy_import.LazyImport.get_object
> (build/cythonized/sage/misc/lazy_import.c:2347)()
> >
> > 186 if likely(self._object is not None):
> >
> > 187 return self._object
> >
> > --> 188 return self._get_object()
> >
> > 189
> >
> > 190 cpdef _get_object(self):
> >
> >
> >
> /Applications/SageMath/local/lib/python3.7/site-packages/sage/misc/lazy_import.pyx
> in sage.misc.lazy_import.LazyImport._get_object
> (build/cythonized/sage/misc/lazy_import.c:2586)()
> >
> > 218 elif self._at_startup and not startup_guard:
> >
> > 219 print('Option ``at_startup=True`` for lazy import
> {0} not needed anymore'.format(self._name))
> >
> > --> 220 self._object = getattr(__import__(self._module, {}, {},
> [self._name]), self._name)
> >
> > 221 name = self._as_name
> >
> > 222 if self._deprecation is not None:
> >
> >
> > ModuleNotFoundError: No module named 'sagenb'
> >
> >
> >
> >
> >
> >
> >
> > On Sat, Apr 4, 2020 at 1:41 PM Dima Pasechnik  wrote:
> >>
> >> On Sat, Apr 4, 2020 at 9:10 PM Anita Rojas  wrote:
> >> >
> >> > Thanks. Still not working :(
> >> > Now I got:
> >> >
> >> > 500 : Internal Server Error
> >> >
> >> > in Chrome browser.
> >> > What should I do?
> >>
> >> please post more details.
> >> e.g. if I try running "sage -n"
> >> in the terminal I see something like this:
> >>
> >>
> >> $ ./sage -n
> >> ┌┐
> >> │ SageMath version 9.1.beta9, Release Date: 2020-03-29   │
> >> │ Using Python 3.7.3. Type "help()" for help.│
> >> └┘
> >> ┏┓
> >> ┃ Warning: this is a prerelease version, and it may be unstable. ┃
> >> ┗┛
> >> Please wait while the SageNB export server starts...
> >> [I 00:38:22.448 NotebookApp] Using MathJax:
> nbextensions/mathjax/MathJax.js
> >> [I 00:38:22.684 NotebookApp] Serving notebooks from local directory:
> >> /home/dimpase/sage
> >> [I 00:38:22.684 NotebookApp] The Jupyter Notebook is running at:
> >> [I 00:38:22.684 NotebookApp]
> >>
> http://localhost:/?token=5f633ab1a08a1d6abc180d567fc05d5158ba41652359faa2
> >> [I 00:38:22.684 NotebookApp] Use Control-C to stop this server and
> >> shut down all kernels (twice to skip confirmation).
> >> [C 00:38:22.975 NotebookApp]
> >>
> >> To access the notebook, open this file in a browser:
> >> file:///run/user/1000/jupyter/nbserver-10489-open.html
> 

Re: [sage-support] Apparently Sage lost Python

2020-04-05 Thread Dima Pasechnik
On Sun, Apr 5, 2020 at 10:16 PM Anita Rojas  wrote:
>
> Thanks. I tried "sage -n Jupyter", and my browser opened but without success 
> in entering SAGE.

At least on Linux, it must be jupyter, not Jupyter

Once again, to get an idea what goes wrong, we need to see the
messages you get in the terminal after you started this.




> I will install SAGA 8.1 to see if it works.
9.1 ?
It's not ready yet.


> Here is the message I got once typing "sage -n":

yes, this is expected.

> ---
>
> sage: notebook()
>
> ---
>
> ModuleNotFoundError   Traceback (most recent call last)
>
>  in ()
>
> > 1 notebook()
>
>
> /Applications/SageMath/local/lib/python3.7/site-packages/sage/misc/lazy_import.pyx
>  in sage.misc.lazy_import.LazyImport.__call__ 
> (build/cythonized/sage/misc/lazy_import.c:3684)()
>
> 351 True
>
> 352 """
>
> --> 353 return self.get_object()(*args, **kwds)
>
> 354
>
> 355 def __repr__(self):
>
>
> /Applications/SageMath/local/lib/python3.7/site-packages/sage/misc/lazy_import.pyx
>  in sage.misc.lazy_import.LazyImport.get_object 
> (build/cythonized/sage/misc/lazy_import.c:2347)()
>
> 186 if likely(self._object is not None):
>
> 187 return self._object
>
> --> 188 return self._get_object()
>
> 189
>
> 190 cpdef _get_object(self):
>
>
> /Applications/SageMath/local/lib/python3.7/site-packages/sage/misc/lazy_import.pyx
>  in sage.misc.lazy_import.LazyImport._get_object 
> (build/cythonized/sage/misc/lazy_import.c:2586)()
>
> 218 elif self._at_startup and not startup_guard:
>
> 219 print('Option ``at_startup=True`` for lazy import {0} not 
> needed anymore'.format(self._name))
>
> --> 220 self._object = getattr(__import__(self._module, {}, {}, 
> [self._name]), self._name)
>
> 221 name = self._as_name
>
> 222 if self._deprecation is not None:
>
>
> ModuleNotFoundError: No module named 'sagenb'
>
>
>
>
>
>
>
> On Sat, Apr 4, 2020 at 1:41 PM Dima Pasechnik  wrote:
>>
>> On Sat, Apr 4, 2020 at 9:10 PM Anita Rojas  wrote:
>> >
>> > Thanks. Still not working :(
>> > Now I got:
>> >
>> > 500 : Internal Server Error
>> >
>> > in Chrome browser.
>> > What should I do?
>>
>> please post more details.
>> e.g. if I try running "sage -n"
>> in the terminal I see something like this:
>>
>>
>> $ ./sage -n
>> ┌┐
>> │ SageMath version 9.1.beta9, Release Date: 2020-03-29   │
>> │ Using Python 3.7.3. Type "help()" for help.│
>> └┘
>> ┏┓
>> ┃ Warning: this is a prerelease version, and it may be unstable. ┃
>> ┗┛
>> Please wait while the SageNB export server starts...
>> [I 00:38:22.448 NotebookApp] Using MathJax: nbextensions/mathjax/MathJax.js
>> [I 00:38:22.684 NotebookApp] Serving notebooks from local directory:
>> /home/dimpase/sage
>> [I 00:38:22.684 NotebookApp] The Jupyter Notebook is running at:
>> [I 00:38:22.684 NotebookApp]
>> http://localhost:/?token=5f633ab1a08a1d6abc180d567fc05d5158ba41652359faa2
>> [I 00:38:22.684 NotebookApp] Use Control-C to stop this server and
>> shut down all kernels (twice to skip confirmation).
>> [C 00:38:22.975 NotebookApp]
>>
>> To access the notebook, open this file in a browser:
>> file:///run/user/1000/jupyter/nbserver-10489-open.html
>> Or copy and paste one of these URLs:
>> 
>> http://localhost:/?token=5f633ab1a08a1d6abc180d567fc05d5158ba41652359faa2
>>
>> Please post what you're seeing.
>>
>>
>> As well,
>>
>> you might try running
>>
>> sage -n jupyter
>>
>> which should directly launch a jupyter notebook
>>
>>
>>
>>
>> > Sorry and deep thanks.
>> >
>> > On Sat, Apr 4, 2020 at 2:12 AM Dima Pasechnik  wrote:
>> >>
>> >>
>> >>
>> >> On Sat, 4 Apr 2020, 12:25 Anita Rojas,  wrote:
>> >>>
>> >>> Thanks. I did:
>> >>>
>> >>> sudo spctl --master-disable
>> >>>
>> >>> and it worked. I have a question: Did I leave my computer vulnerable by 
>> >>> doing so?
>> >>
>> >>
>> >> it depends upon settings of your usual account. If it allows 
>> >> password-less automatic installation of random stuff from the net, then 
>> >> yes...
>> >>
>> >>>
>> >>> Second: I was used to use notebook() but it did not work. .
>> >>
>> >> start Sage in the terminal as
>> >>
>> >> sage -n
>> >>
>> >> to get Jupyter notebook - or a convertor from sagenb (which is Python 2 
>> >> only, so it is being retired)
>> >>>
>> >>>
>> >>> Deep thanks for your help
>> >>> Anita
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> On Sat, Apr 4, 2020 at 12:54 AM Dima Pasechnik  wrote:
>> 
>>  yes, this is an issue due to Ap

Re: [sage-support] Apparently Sage lost Python

2020-04-05 Thread Anita Rojas
Thanks. I tried "sage -n Jupyter", and my browser opened but without
success in entering SAGE.
I will install SAGA 8.1 to see if it works.
Here is the message I got once typing "sage -n":
---

sage: notebook()

---

ModuleNotFoundError   Traceback (most recent call last)

 in ()

> 1 notebook()


/Applications/SageMath/local/lib/python3.7/site-packages/sage/misc/lazy_import.pyx
in sage.misc.lazy_import.LazyImport.__call__
(build/cythonized/sage/misc/lazy_import.c:3684)()

*351* True

*352* """

--> 353 return self.get_object()(*args, **kwds)

*354*

*355* def __repr__(self):


/Applications/SageMath/local/lib/python3.7/site-packages/sage/misc/lazy_import.pyx
in sage.misc.lazy_import.LazyImport.get_object
(build/cythonized/sage/misc/lazy_import.c:2347)()

*186* if likely(self._object is not None):

*187* return self._object

--> 188 return self._get_object()

*189*

*190* cpdef _get_object(self):


/Applications/SageMath/local/lib/python3.7/site-packages/sage/misc/lazy_import.pyx
in sage.misc.lazy_import.LazyImport._get_object
(build/cythonized/sage/misc/lazy_import.c:2586)()

*218* elif self._at_startup and not startup_guard:

*219* print('Option ``at_startup=True`` for lazy import {0}
not needed anymore'.format(self._name))

--> 220 self._object = getattr(__import__(self._module, {}, {}, [
self._name]), self._name)

*221* name = self._as_name

*222* if self._deprecation is not None:


ModuleNotFoundError: No module named 'sagenb'






On Sat, Apr 4, 2020 at 1:41 PM Dima Pasechnik  wrote:

> On Sat, Apr 4, 2020 at 9:10 PM Anita Rojas  wrote:
> >
> > Thanks. Still not working :(
> > Now I got:
> >
> > 500 : Internal Server Error
> >
> > in Chrome browser.
> > What should I do?
>
> please post more details.
> e.g. if I try running "sage -n"
> in the terminal I see something like this:
>
>
> $ ./sage -n
> ┌┐
> │ SageMath version 9.1.beta9, Release Date: 2020-03-29   │
> │ Using Python 3.7.3. Type "help()" for help.│
> └┘
> ┏┓
> ┃ Warning: this is a prerelease version, and it may be unstable. ┃
> ┗┛
> Please wait while the SageNB export server starts...
> [I 00:38:22.448 NotebookApp] Using MathJax: nbextensions/mathjax/MathJax.js
> [I 00:38:22.684 NotebookApp] Serving notebooks from local directory:
> /home/dimpase/sage
> [I 00:38:22.684 NotebookApp] The Jupyter Notebook is running at:
> [I 00:38:22.684 NotebookApp]
>
> http://localhost:/?token=5f633ab1a08a1d6abc180d567fc05d5158ba41652359faa2
> [I 00:38:22.684 NotebookApp] Use Control-C to stop this server and
> shut down all kernels (twice to skip confirmation).
> [C 00:38:22.975 NotebookApp]
>
> To access the notebook, open this file in a browser:
> file:///run/user/1000/jupyter/nbserver-10489-open.html
> Or copy and paste one of these URLs:
>
> http://localhost:/?token=5f633ab1a08a1d6abc180d567fc05d5158ba41652359faa2
>
> Please post what you're seeing.
>
>
> As well,
>
> you might try running
>
> sage -n jupyter
>
> which should directly launch a jupyter notebook
>
>
>
>
> > Sorry and deep thanks.
> >
> > On Sat, Apr 4, 2020 at 2:12 AM Dima Pasechnik  wrote:
> >>
> >>
> >>
> >> On Sat, 4 Apr 2020, 12:25 Anita Rojas,  wrote:
> >>>
> >>> Thanks. I did:
> >>>
> >>> sudo spctl --master-disable
> >>>
> >>> and it worked. I have a question: Did I leave my computer vulnerable
> by doing so?
> >>
> >>
> >> it depends upon settings of your usual account. If it allows
> password-less automatic installation of random stuff from the net, then
> yes...
> >>
> >>>
> >>> Second: I was used to use notebook() but it did not work. .
> >>
> >> start Sage in the terminal as
> >>
> >> sage -n
> >>
> >> to get Jupyter notebook - or a convertor from sagenb (which is Python 2
> only, so it is being retired)
> >>>
> >>>
> >>> Deep thanks for your help
> >>> Anita
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> On Sat, Apr 4, 2020 at 12:54 AM Dima Pasechnik 
> wrote:
> 
>  yes, this is an issue due to Apple "improving" their security in the
> latest MacOS.
> 
>  I believe there are instructions on
> 
> https://ask.sagemath.org/question/49568/new-sagemath-90-installation-not-running-on-catalina-sagemath-87-worked-fine/
> 
>  and perhaps other posts there.
> 
>  On Sat, 4 Apr 2020, 11:47 Anita Rojas,  wrote:
> >
> > Thanks a lot!
> > I am installing a new version of sage. I have received several times
> (more than 20) a message like
> >
> > macOS n