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

package install can print confusing error messages #27670

Closed
BrentBaccala opened this issue Apr 15, 2019 · 16 comments
Closed

package install can print confusing error messages #27670

BrentBaccala opened this issue Apr 15, 2019 · 16 comments

Comments

@BrentBaccala
Copy link

For example, while installing the kash3 package, the output includes the following lines:

usage: sage-spkg-uninstall [-h] [-v] [-k] spkg [sage_local]
sage-spkg-uninstall: error: argument spkg: invalid spkg_type value: 'kash3'

This is due to the uninstall script throwing incorrect error types.
After applying this ticket's patch, the output reads:

usage: sage-spkg-uninstall [-h] [-v] [-k] spkg [sage_local]
sage-spkg-uninstall: error: argument spkg: 'kash3' is not a known spkg

Which is at least more sensible. kash3 is not known because it is an old-style package that didn't create a directory in build/pkgs.

CC: @embray @slel

Component: packages: optional

Keywords: spkg, uninstall

Author: Brent Baccala

Branch/Commit: f0afed6

Reviewer: Erik Bray

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

@BrentBaccala
Copy link
Author

comment:1

(Wrong branch - fixed below)

@BrentBaccala
Copy link
Author

Commit: c50153a

@BrentBaccala
Copy link
Author

Branch: public/27607

@BrentBaccala

This comment has been minimized.

@BrentBaccala
Copy link
Author

Author: Brent Baccala

@BrentBaccala
Copy link
Author

Changed branch from public/27607 to public/27670

@BrentBaccala
Copy link
Author

Changed commit from c50153a to f0afed6

@BrentBaccala
Copy link
Author

Changed branch from public/27670 to none

@BrentBaccala
Copy link
Author

Changed commit from f0afed6 to none

@BrentBaccala
Copy link
Author

New commits:

f0afed6Trac #27670: throw correct error types in uninstall script

@BrentBaccala
Copy link
Author

Commit: f0afed6

@BrentBaccala
Copy link
Author

Branch: public/27670

@slel
Copy link
Member

slel commented Apr 18, 2019

Changed keywords from none to spkg, uninstall

@embray
Copy link
Contributor

embray commented Apr 18, 2019

comment:6

This fix makes sense in its own right so +1.

Support for old-style SPKGs is deprecated and should be removed completely.

The only reason it hasn't been completely removed is last time the question came up there was paralysis about what to do about one particularly large package that would need to be hosted somewhere if it were converted to a new-style SPKG.

In that case it was just a large database, and is so large in fact that I'm not convinced downloading the whole database is the right thing to do in most cases anyways. It should be wrapped in a little queryable web service hosted online somewhere (perhaps even sagemath.org). Someone just needs to do that. I don't think that one package is reason enough to hold up removal of old-style SPKG support though.

@embray
Copy link
Contributor

embray commented Apr 18, 2019

Reviewer: Erik Bray

@vbraun
Copy link
Member

vbraun commented Apr 29, 2019

Changed branch from public/27670 to f0afed6

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