i'm having trouble installing Jupyter - the log is below. I have open ssl. it it supposed to be installed or just files?

90 views
Skip to first unread message

Ira Shavel

unread,
Dec 26, 2020, 3:08:36 PM12/26/20
to sage-support
in have_prerequisites
    from notebook.notebookapp import NotebookApp
    from tornado import httpserver
    import ssl
  File "/Applications/SageMath-9.2.app/Contents/Resources/sage/local/lib/python3.8/ssl.py", line 98, in <module>
    import _ssl             # if we can't import it, let the error propagate
ModuleNotFoundError: No module named '_ssl'
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.2, Release Date: 2020-10-24                     │
│ Using Python 3.8.5. Type "help()" for help.                        │
└────────────────────────────────────────────────────────────────────┘
Please wait while the Sage Jupyter Notebook server starts...

The Jupyter notebook requires ssl, even if you do not use
https. Install the openssl development packages in your system and
then rebuild Python (sage -f python3).

slelievre

unread,
Dec 26, 2020, 7:54:15 PM12/26/20
to sage-support

Ira Shavel

unread,
Dec 28, 2020, 7:31:05 PM12/28/20
to sage-support
Thanks!  but here';s what happens

irashavel@Iras-MBP Downloads % sudo xattr -d com.apple.quarantine fix_mac_sage9_2.tgz

xattr: fix_mac_sage9_2.tgz: No such xattr: com.apple.quarantine


Ira Shavel

unread,
Dec 29, 2020, 12:38:44 AM12/29/20
to sage-s...@googlegroups.com

I installed open SSL using Homebrew.  I reinstalled Sagemath 9.2.  But I still have the same message from Jupyter.

I installed the 9.2 fix.  The response to the second line of the script *I think* is telling me the quarantine attribute is not present:

 

“No such xattr: com.apple.quarantine”:

 

 

The 3rd line runs fine.

 

I changed the 4th line to

 

/Applications/SageMath-9.2/sage -python -m fix_mac_sage9_2.fix

 

To be consistent with the name of the .app file.  Here is what I get:

 

“irashavel@Iras-MBP Downloads % /Applications/SageMath-9.2/sage -python -m fix_mac_sage9_2.fix

zsh: no such file or directory: /Applications/SageMath-9.2/sage

irashavel@Iras-MBP Downloads % “

 

 

Same problem if I use

 

/Applications/SageMath-9.2 -python -m fix_mac_sage9_2.fix

 

The script is supposed to be:

 

cd ~/Downloads

sudo xattr -d com.apple.quarantine fix_mac_sage9_2.tgz

tar xf fix_mac_sage9_2.tgz

/Applications/SageMath/sage -python -m fix_mac_sage9_2.fix

 

 

Ira

 

Ira Shavel

9212 Midwood Rd
Silver Spring, MD  20910

Cell:  202 256 3937 

Email:  ish...@alum.mit.edu

--
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/ca9d143d-c556-4136-87d4-593f87a55fd0n%40googlegroups.com.

Nathan Dunfield

unread,
Dec 29, 2020, 11:30:59 AM12/29/20
to sage-support

I installed the 9.2 fix.  The response to the second line of the script *I think* is telling me the quarantine attribute is not present:

“No such xattr: com.apple.quarantine”

Yes,  that response is fine.  It means you downloaded the file by a method which does not add that attribute.
 

“irashavel@Iras-MBP Downloads % /Applications/SageMath-9.2/sage -python -m fix_mac_sage9_2.fix

zsh: no such file or directory: /Applications/SageMath-9.2/sage


This is saying that the file "/Applications/SageMath-9.2/sage" does not exist.  Likely, you want "/Applications/SageMath-9.2.app/sage".

Best,

Nathan

Ira Shavel

unread,
Dec 29, 2020, 1:45:10 PM12/29/20
to sage-s...@googlegroups.com

Looks like I got further but here is the log:

 

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

Traceback (most recent call last):

  File "/Applications/SageMath-9.2.app/Contents/Resources/sage/src/bin/sage-notebook", line 218, in <module>

    launcher(unknown)

  File "/Applications/SageMath-9.2.app/Contents/Resources/sage/src/bin/sage-notebook", line 39, in __init__

    main(argv)

  File "/Applications/SageMath-9.2.app/Contents/Resources/sage/local/lib/python3.8/site-packages/jupyter_core/application.py", line 270, in launch_instance

    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)

  File "/Applications/SageMath-9.2.app/Contents/Resources/sage/local/lib/python3.8/site-packages/traitlets/config/application.py", line 663, in launch_instance

    app.initialize(argv)

  File "</Applications/SageMath-9.2.app/Contents/Resources/sage/local/lib/python3.8/site-packages/decorator.py:decorator-gen-7>", line 2, in initialize

  File "/Applications/SageMath-9.2.app/Contents/Resources/sage/local/lib/python3.8/site-packages/traitlets/config/application.py", line 87, in catch_config_error

    return method(app, *args, **kwargs)

  File "/Applications/SageMath-9.2.app/Contents/Resources/sage/local/lib/python3.8/site-packages/notebook/notebookapp.py", line 2021, in initialize

    super(NotebookApp, self).initialize(argv)

  File "</Applications/SageMath-9.2.app/Contents/Resources/sage/local/lib/python3.8/site-packages/decorator.py:decorator-gen-6>", line 2, in initialize

  File "/Applications/SageMath-9.2.app/Contents/Resources/sage/local/lib/python3.8/site-packages/traitlets/config/application.py", line 87, in catch_config_error

    return method(app, *args, **kwargs)

  File "/Applications/SageMath-9.2.app/Contents/Resources/sage/local/lib/python3.8/site-packages/jupyter_core/application.py", line 246, in initialize

    self.load_config_file()

  File "/Applications/SageMath-9.2.app/Contents/Resources/sage/local/lib/python3.8/site-packages/jupyter_core/application.py", line 179, in load_config_file

    self.log.debug("Searching %s for config files", self.config_file_paths)

  File "/Applications/SageMath-9.2.app/Contents/Resources/sage/local/lib/python3.8/site-packages/jupyter_core/application.py", line 87, in config_file_paths

    path.insert(0, py3compat.getcwd())

PermissionError: [Errno 1] Operation not permitted

 

 

Ira

 

Ira Shavel

9212 Midwood Rd
Silver Spring, MD  20910

Cell:  202 256 3937 

Email:  ish...@alum.mit.edu

 

 

--

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.

Ira Shavel

unread,
Dec 29, 2020, 1:45:11 PM12/29/20
to sage-s...@googlegroups.com

Thanks Nathan!  That got me passed that problem.   Now:

 

irashavel@Iras-MBP /applications % SageMath-9.2.app/sage  -python -m fix_mac_sage9_2.fix

/Applications/SageMath-9.2.app/Contents/Resources/sage/local/bin/python3: Error while finding module specification for 'fix_mac_sage9_2.fix' (ModuleNotFoundError: No module named 'fix_mac_sage9_2')

 

It sounds like I did not properly install fix_mac_sage9-2

 

 

 

Ira

 

Ira Shavel

9212 Midwood Rd
Silver Spring, MD  20910

Cell:  202 256 3937 

Email:  ish...@alum.mit.edu

 

 

From: <sage-s...@googlegroups.com> on behalf of Nathan Dunfield <nat...@dunfield.info>


Reply-To: <sage-s...@googlegroups.com>
Date: Tuesday, December 29, 2020 at 11:31 AM
To: sage-support <sage-s...@googlegroups.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...@googlegroups.com.

Ira Shavel

unread,
Dec 29, 2020, 7:46:14 PM12/29/20
to sage-s...@googlegroups.com

I solved my problem.  I set permissions so that Sage had access to my disk.

 

Thanks to everyone and Happy New Year

Reply all
Reply to author
Forward
0 new messages