Apparently Sage lost Python

417 views
Skip to first unread message

Anita Rojas

unread,
Apr 3, 2020, 11:11:03 PM4/3/20
to sage-support

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/<pkg>/dependencies


I looked for solutions but I could not find answers. I would appreciate help.


Best,

Anita

Dima Pasechnik

unread,
Apr 3, 2020, 11:13:49 PM4/3/20
to sage-support
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...@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.

Anita Rojas

unread,
Apr 3, 2020, 11:47:53 PM4/3/20
to sage-s...@googlegroups.com
Thanks a lot!
I am installing a new version of sage. I have received several times (more than 20) a message like

macOS no puede verificar el desarrollador de la app “_sha3.cpython-37m-darwin.so”. ¿Seguro que quieres abrirla?

Which means that the developer is unknown and it asks me if I want to open it. It is a warning of malware. I have authorize its installation, but I have been doing this one by one...is it ok? or usual?

Thanks, and I am sorry for bothering you but I use sage regularly and I do not want to lose it.
Best,
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...@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

Dima Pasechnik

unread,
Apr 3, 2020, 11:54:48 PM4/3/20
to sage-support
yes, this is an issue due to Apple "improving" their security in the latest MacOS.

I believe there are instructions on

and perhaps other posts there.

Anita Rojas

unread,
Apr 4, 2020, 12:25:46 AM4/4/20
to sage-s...@googlegroups.com
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





Dima Pasechnik

unread,
Apr 4, 2020, 1:12:13 AM4/4/20
to sage-support


On Sat, 4 Apr 2020, 12:25 Anita Rojas, <roja...@gmail.com> 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)

Anita Rojas

unread,
Apr 4, 2020, 9:10:35 AM4/4/20
to sage-s...@googlegroups.com
Thanks. Still not working :(
Now I got:

500 : Internal Server Error

in Chrome browser. 
What should I do?
Sorry and deep thanks. 

Dima Pasechnik

unread,
Apr 4, 2020, 12:41:23 PM4/4/20
to sage-support
On Sat, Apr 4, 2020 at 9:10 PM Anita Rojas <roja...@gmail.com> 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:8888/?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:8888/?token=5f633ab1a08a1d6abc180d567fc05d5158ba41652359faa2

Please post what you're seeing.


As well,

you might try running

sage -n jupyter

which should directly launch a jupyter notebook
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/CAFV-Ve0YANV4Zan%2B_guhBxViF-55QActPFKiFsx34gKkkan-RA%40mail.gmail.com.

rana-aere

unread,
Apr 4, 2020, 1:34:11 PM4/4/20
to sage-support
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

...

Anita Rojas

unread,
Apr 5, 2020, 10:17:02 AM4/5/20
to sage-s...@googlegroups.com
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)

<ipython-input-1-b5959bb24428> in <module>()

----> 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'







Dima Pasechnik

unread,
Apr 5, 2020, 10:31:56 AM4/5/20
to sage-support
On Sun, Apr 5, 2020 at 10:16 PM Anita Rojas <roja...@gmail.com> 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.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/CAFV-Ve0dr8htv4q-f9%3D5ymM6_6aG_xjJOAXCPF64tJyfFgfSqA%40mail.gmail.com.

Anita Rojas

unread,
Apr 5, 2020, 11:08:28 AM4/5/20
to sage-s...@googlegroups.com
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:8888/?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:8888/?token=fffae97f554fd98928c0aa84067eb7f2738ba70e8fa14b47

-----------------

My browser opens with:


http://localhost:8888/tree


I am downloading sage 8.8 (sorry!)


Thanks again





Anita Rojas

unread,
Apr 5, 2020, 11:13:58 AM4/5/20
to sage-s...@googlegroups.com
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 

--
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...@googlegroups.com.

rana-aere

unread,
Apr 5, 2020, 11:16:06 AM4/5/20
to sage-support
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)

<ipython-input-1-b5959bb24428> in <module>()

----> 1 notebook()



ModuleNotFoundError: No module named 'sagenb'

...

Dima Pasechnik

unread,
Apr 5, 2020, 11:16:13 AM4/5/20
to sage-support
On Sun, Apr 5, 2020 at 11:08 PM Anita Rojas <roja...@gmail.com> 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:8888/?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:8888/?token=fffae97f554fd98928c0aa84067eb7f2738ba70e8fa14b47
>
> -----------------
>
> My browser opens with:
>
>
> http://localhost:8888/tree

and what happens if you open

http://localhost:8888/?token=fffae97f554fd98928c0aa84067eb7f2738ba70e8fa14b47

as suggested in the message above?
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/CAFV-Ve1am0cu61P8LXp0cY9a8tR3PtgBngR%3Dp6Hj%3DYkLOJ5k%3Dg%40mail.gmail.com.

rana-aere

unread,
Apr 5, 2020, 11:31:24 AM4/5/20
to sage-support
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.

Anita Rojas

unread,
Apr 5, 2020, 11:40:02 AM4/5/20
to sage-s...@googlegroups.com
Thanks, but I installed 8.9 and it did not work. Back again to point 0.
I did the line "sudo....disable" 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)


--
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...@googlegroups.com.

Anita Rojas

unread,
Apr 5, 2020, 11:58:40 AM4/5/20
to sage-s...@googlegroups.com
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 <module>

    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 <genexpr>

    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'


--
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...@googlegroups.com.

Anita Rojas

unread,
Apr 5, 2020, 2:14:47 PM4/5/20
to sage-s...@googlegroups.com
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 <dim...@gmail.com> wrote:
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...@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.

rana-aere

unread,
Apr 6, 2020, 10:59:55 AM4/6/20
to sage-support
I am sorry for I might have given you extra work, which produced nothing.
I agree it is not a good time to use SageMath on Catalina.


2020年4月6日月曜日 3時14分47秒 UTC+9 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 <dim...@gmail.com> wrote:


On Sat, 4 Apr 2020, 11:11 Anita Rojas, <roja...@gmail.com> 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/<pkg>/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-s...@googlegroups.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-s...@googlegroups.com.

Anita Rojas

unread,
Apr 6, 2020, 12:07:36 PM4/6/20
to sage-s...@googlegroups.com
Not at all, please! Thanks for your support. I will come back to these line of messages once again in (hopefully) near future.
Best,
Anita

To unsubscribe from this group and all its topics, send an email to sage-support...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/e2a51b32-7a5b-44e6-b56c-a17aea65113f%40googlegroups.com.

rana-aere

unread,
Apr 6, 2020, 2:37:31 PM4/6/20
to sage-support
Dear Dima,

I found something strange in this error message.
--------
anirojas@MacBook-de-Anita ~ % /Applications/SageMath/sage --notebook=export --list

File "/Applications/SageMath/local/bin/sagenb-export"

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

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

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

File "/Applications/SageMath/local/lib/python3.7/site-packages/sagenb_export/sagenb_reader.py"


On MacOS, normally, we see

---------

/Applications/SageMath-9.0.app/sage --notebook=export --list

/Applications/SageMath-9.0.app/Contents/Resources/sage/local/lib/python3.7/site-packages/sagenb_export/...



I do not understand why "Contents/Resources/sage/" disappeared.

More strangely, functions defined in these files are actually executed.

Is it possible some problem in setting PATH leads to python3 bundled with Catalina controls

Sagemath instead of python3.7 included in Sagemath?


I do not have Catalina installed. So, I cannot verify anything on it.

I only heard Catalina now has python3 not python2.

The default shell changed to zsh instead of bash.

Dima Pasechnik

unread,
Apr 6, 2020, 10:03:07 PM4/6/20
to sage-support
On Tue, Apr 7, 2020 at 2:37 AM rana-aere <rana-...@air.nifty.jp> wrote:
>
> Dear Dima,
>
> I found something strange in this error message.
> --------
> anirojas@MacBook-de-Anita ~ % /Applications/SageMath/sage --notebook=export --list
>
> File "/Applications/SageMath/local/bin/sagenb-export"
>
> File "/Applications/SageMath/local/lib/python3.7/site-packages/sagenb_export/cmdline.py",
>
> File "/Applications/SageMath/local/lib/python3.7/site-packages/sagenb_export/actions.py",
>
> File "/Applications/SageMath/local/lib/python3.7/site-packages/sagenb_export/actions.py",
>
> File "/Applications/SageMath/local/lib/python3.7/site-packages/sagenb_export/sagenb_reader.py"
>
>
> On MacOS, normally, we see
>
> ---------
>
> /Applications/SageMath-9.0.app/sage --notebook=export --list
>
> /Applications/SageMath-9.0.app/Contents/Resources/sage/local/lib/python3.7/site-packages/sagenb_export/...
>
This might be due to a different binary Sage package installed (.app
vs non-app, packaged as a tar file)

>
>
> I do not understand why "Contents/Resources/sage/" disappeared.
>
> More strangely, functions defined in these files are actually executed.
>
> Is it possible some problem in setting PATH leads to python3 bundled with Catalina controls
>
> Sagemath instead of python3.7 included in Sagemath?
>
the recent Sage 9.1 betas have ability to use system Python3 rarher
than build Python.
But then there would not be "SageMath" in some paths at all.


>
> I do not have Catalina installed. So, I cannot verify anything on it.
>
> I only heard Catalina now has python3 not python2.
>
> The default shell changed to zsh instead of bash.
>
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/bf88b236-c428-4d8a-80c3-0fced449a0e3%40googlegroups.com.

Anita Rojas

unread,
Apr 7, 2020, 2:19:09 PM4/7/20
to sage-s...@googlegroups.com
Hi. Thanks. Sage 9.0 is working on my mac, still with some issues.

I have to run in a terminal:
 

sudo spctl --master-disable

~/Applications/SageMath/sage -n jupyter

(without "sudo..." it does not open because some archives can not be checked)

My older routines don't work. They use GAP and I got the message:

“gap-bin” no se puede abrir porque no se puede verificar el desarrollador.
macOS no puede verificar si esta app está libre de software malicioso.

(Same as before: gap-bin can not be executed because it can not be verified and it could be a malware)

I can not even use the line G=SmallGroup(2,1)

I thought it was a problem of security and I gave full access to disk to sage, I work under this "sudo....disable", but still..

Well. Thanks again for all your support. I am sure the main problem is that I am barely qualified in anything more than a user level of mac.

Best,
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/CAAWYfq2cPK1m2bZnOEYVAFBL23X63mQ48gBNxq8kFUKK695t%2Bw%40mail.gmail.com.

slelievre

unread,
Apr 8, 2020, 1:25:03 PM4/8/20
to sage-support
Have you tried running


    THING="~/Applications/SageMath/"

    xattr -rd com.apple.quarantine $THING

Anita Rojas

unread,
Apr 8, 2020, 3:02:33 PM4/8/20
to sage-s...@googlegroups.com
This worked! Thanks
Now I have troubles calling gap. I used to do

sage:  libgap.eval('LoadPackage("kbmag")')


but now I got 


fail



--
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...@googlegroups.com.

slelievre

unread,
Apr 8, 2020, 5:43:12 PM4/8/20
to sage-support
Wed 2020-04-08 19:02:33 UTC, Anita Rojas:
>
> Now I have trouble calling GAP. I used to do
>
>     sage: libgap.eval('LoadPackage("kbmag")')
>
> but now I got 
>
>     fail

The following says the `kbmag` GAP package cannot be loaded.

    sage: libgap.eval('LoadPackage("kbmag")')
    fail

It fails to load because it is not installed in Sage's GAP.

Thankfully, installing packages has become a pleasant task
thanks to Michael Torpey's `PackageManager` GAP package.

Load the `PackageManager` GAP package, whose job
is to help you install further packages:

    sage: libgap.eval('LoadPackage("PackageManager")')
    true

and let it install `kbmag` with this command:

    sage: libgap.eval('InstallPackage("kbmag")')
    true

Now loading `kbmag` works:

    sage: libgap.eval('LoadPackage("kbmag")')
    true

The `kbmag` package is now loaded, ready to
try and make rewriting systems confluent.

Further reading:

- kbmag GAP package
  Knuth-Bendix on Monoids and Automatic Groups
  by Derek Holt

- PackageManager GAP package --- GAP Package Manager
  Easily download and install GAP packages
  by Michael Torpey

Anita Rojas

unread,
Apr 8, 2020, 7:33:09 PM4/8/20
to sage-s...@googlegroups.com
Thanks a lot. But I also got:

sage: libgap.eval('LoadPackage("PackageManager")')

fail


 Should I add (or install) some gap package inside SageMath folder?

Sorry

--
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...@googlegroups.com.
To view this discussion on the web visit