Skip to content

gzip was not found on your system! #1538

Closed

Description

@erwanp

I use astroquery in my infrared spectroscopy package radis to retrieve HITRAN data.

However, on each first import I get a printed message (originates from astroquery.utils.system_tools.py )

gzip was not found on your system! You should solve this issue for astroquery.eso to be at its best!
On POSIX system: make sure gzip is installed and in your path!On Windows: same for 7-zip (http://www.7-zip.org)!

I do not use the astroquery.eso module and thus I'd like not to have to install gzip, nor to see that message.
There are two easy options:

  1. The gzip check could be moved within the astroquery.eso function calls.
  2. The print can be replaced with a Warning, which I can catch and filter from my own code.

Option 1. requires some knowledge of astroquery which I don't have. Option 2. does not and I can do a MR.

What do you think?

Activity

  1. keflavich commented on Aug 21, 2019

    @keflavich
    Contributor

    Agreed, this should be changed. A few things should happen:
    (1) the print statement should be a warning (so it can be silenced)
    (2) the 'gunzip' utility should be reevaluated - I'm not clear that there's any reason to use a system-wide gunzip instead of the python gzip package
    (3) the warning should only be raised if a zip file is encountered, not before

  2. erwanp commented on Aug 30, 2019

    @erwanp
    ContributorAuthor

    I can work on (1) and (3) but someone else must decide (2)

  3. erwanp commented on Jan 6, 2020

    @erwanp
    ContributorAuthor

    @keflavich do you know who could decide on (2) ?

  4. keflavich commented on Jan 6, 2020

    @keflavich
    Contributor

    Let's just get rid of it - python's gzip is fine.

  5. erwanp commented on Jan 6, 2020

    @erwanp
    ContributorAuthor

    Ok, i'll submit a PR sometimes in the week then!

  6. added a commit that references this issue on Jan 9, 2020
    f4aa259
  7. added a commit that references this issue on Apr 8, 2020
    96fa9cb
  8. added a commit that references this issue on Apr 16, 2020
    5cdc707
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions