Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for required extension module "ssl" in python3 build and spkg-configure #29291

Closed
mkoeppe opened this issue Mar 6, 2020 · 21 comments
Closed

Comments

@mkoeppe
Copy link
Contributor

mkoeppe commented Mar 6, 2020

Follow up from #27705.

As openssl has been a standard package since Sage 9.3, there is no more point in accepting system python3 without ssl support or ignoring errors in building the ssl module when building the python3 spkg.

As SSL issues are no longer a likely diagnosis for failures with launching the notebook, we change the corresponding code in src/bin/sage-notebook. (Prompted by https://groups.google.com/g/sage-devel/c/IXypXTbVkDM/m/CsWl8HbZAwAJ)

CC: @dimpase @embray @jhpalmieri @slel @NathanDunfield @sagetrac-tmonteil

Component: build

Author: Matthias Koeppe

Branch/Commit: 789c960

Reviewer: John Palmieri

Issue created by migration from https://trac.sagemath.org/ticket/29291

@mkoeppe mkoeppe added this to the sage-9.1 milestone Mar 6, 2020
@Shlokatadistance
Copy link
Mannequin

Shlokatadistance mannequin commented Mar 13, 2020

comment:1

Can this also work with certifi package?
I had issues previously with some other packages on Mac, and certifi seemed to fix it

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Apr 14, 2020

comment:2

pushing these forward to 9.2

@mkoeppe mkoeppe modified the milestones: sage-9.1, sage-9.2 Apr 14, 2020
@mkoeppe mkoeppe modified the milestones: sage-9.2, sage-9.3 Aug 29, 2020
@mkoeppe
Copy link
Contributor Author

mkoeppe commented Mar 15, 2021

comment:4

Setting new milestone based on a cursory review of ticket status, priority, and last modification date.

@mkoeppe mkoeppe modified the milestones: sage-9.3, sage-9.4 Mar 15, 2021
@mkoeppe mkoeppe modified the milestones: sage-9.4, sage-9.5 Jul 19, 2021
@mkoeppe
Copy link
Contributor Author

mkoeppe commented Aug 13, 2021

@mkoeppe

This comment has been minimized.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Aug 13, 2021

Author: Matthias Koeppe

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Aug 13, 2021

Commit: b6c27a7

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Aug 13, 2021

New commits:

b6c27a7build/pkgs/python3/{spkg-configure.m4,spkg-build.in}: Ensure ssl module is present

@mkoeppe mkoeppe changed the title Check for more strictly required extension module "ssl" in Python build Check for required extension module "ssl" in python3 build and spkg-configure Aug 13, 2021
@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 13, 2021

Changed commit from b6c27a7 to fa75b3e

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 13, 2021

Branch pushed to git repo; I updated commit sha1. New commits:

fa75b3esrc/bin/sage-notebook: On failures to import notebook/jupyterlab modules, point to instructions; do not offer a guessed diagnosis

@mkoeppe

This comment has been minimized.

@mkoeppe

This comment has been minimized.

@slel
Copy link
Member

slel commented Aug 22, 2021

comment:11

In build/pkgs/python3/spkg-build.in, line 32,
the (preexisting) typo explicitely -> explicitly
could be fixed since we're editing that file.

Any suggestions on how to review this ticket?

@jhpalmieri
Copy link
Member

comment:13

Replying to @slel:

In build/pkgs/python3/spkg-build.in, line 32,
the (preexisting) typo explicitely -> explicitly
could be fixed since we're editing that file.

Any suggestions on how to review this ticket?

I guess if we can't find systems without the Python module ssl already installed, maybe we should just merge it and move on?

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 14, 2021

comment:14

Right, I'm not aware of a distribution whose python would be missing the ssl module. The new configuration tests here on the ticket protect against broken pythons compiled by users. The most likely scenario could be that a user configures the source from within the sage -sh of some old installation of Sage.
Probably not useful to replicate something like this in order to review the ticket.

@jhpalmieri
Copy link
Member

comment:15

Why not just remove PREREQUISITE_ERROR completely?

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 14, 2021

Changed commit from fa75b3e to 789c960

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 14, 2021

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

1fc8732build/pkgs/python3/{spkg-configure.m4,spkg-build.in}: Ensure ssl module is present
42489c1src/bin/sage-notebook: On failures to import notebook/jupyterlab modules, point to instructions; do not offer a guessed diagnosis
789c960src/bin/sage-notebook: Remove PREREQUISITE_ERROR completely

@jhpalmieri
Copy link
Member

comment:17

This works for me, but my Python isn't broken (nor do I want to build a broken one), so I can't test the error messages. The code all makes sense, though.

@jhpalmieri
Copy link
Member

Reviewer: John Palmieri

@vbraun
Copy link
Member

vbraun commented Sep 15, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants