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

Failed to load Vega spectrum when running stsynphot unit tests #97

Open
zacharyburnett opened this issue Apr 5, 2023 · 1 comment · Fixed by #98
Open

Failed to load Vega spectrum when running stsynphot unit tests #97

zacharyburnett opened this issue Apr 5, 2023 · 1 comment · Fixed by #98
Assignees
Labels
bug Something isn't working

Comments

@zacharyburnett
Copy link
Collaborator

zacharyburnett commented Apr 5, 2023

Steps that can reproduce the error:

  1. run stsynphot tests in the Build and test environments workflow

  2. the following error happens:

    https://github.com/spacetelescope/stenv/actions/runs/4621154067/jobs/8172491792#step:11:22

    E   astropy.utils.exceptions.AstropyUserWarning: Failed to load Vega spectrum from /tmp/trds/calspec/alpha_lyr_stis_010.fits; Functionality involving Vega will be cripped: FileNotFoundError(2, 'No such file or directory')
    

Previously, it looks like this error was a warning:
https://github.com/spacetelescope/stenv/actions/runs/4324015155/jobs/7551034165#step:11:54

/home/runner/work/stenv/stenv/stsynphot/stsynphot/spectrum.py:615: AstropyUserWarning: Failed to load Vega spectrum from /tmp/trds/calspec/alpha_lyr_stis_010.fits; Functionality involving Vega will be cripped: FileNotFoundError(2, 'No such file or directory')
    warnings.warn(
/home/runner/work/stenv/stenv/stsynphot/conftest.py:16: AstropyDeprecationWarning: The enable_deprecations_as_exceptions function is deprecated and may be removed in a future version.
          Use https://docs.pytest.org/en/stable/warnings.html instead.
    enable_deprecations_as_exceptions()
@zacharyburnett zacharyburnett added the bug Something isn't working label Apr 5, 2023
@zacharyburnett zacharyburnett self-assigned this Apr 5, 2023
This was referenced Apr 5, 2023
@zacharyburnett zacharyburnett changed the title Failed to load Vega spectrum when running synphot unit tests Failed to load Vega spectrum when running stsynphot unit tests Apr 5, 2023
@zacharyburnett
Copy link
Collaborator Author

zacharyburnett commented Apr 6, 2023

the current workaround is to disable the tests in the workflow

@zacharyburnett zacharyburnett reopened this Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant