Skip to content

mast import crashes when botocore optional dependency is not installed #3546

@pllim

Description

@pllim

To reproduce this problem:

  1. Make sure botocore is not installed.
  2. from astroquery.mast import Observations

from botocore.exceptions import ClientError, BotoCoreError

It crashes with ModuleNotFoundError: No module named 'botocore' even though botocore is not required:

all = [
"mocpy>=0.12",
"astropy-healpix",
"boto3",
"botocore",
"regions>=0.5",
]

Desired outcome: It does not crash on import.

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