Skip to content

Instantly share code, notes, and snippets.

@cdeil
Created September 15, 2018 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdeil/1113fb18928761486403f274d31dcdc7 to your computer and use it in GitHub Desktop.
Save cdeil/1113fb18928761486403f274d31dcdc7 to your computer and use it in GitHub Desktop.
(gammapy-dev) hfm-1804a:gammapy deil$ pytest -v
======================================================================================== test session starts =========================================================================================
platform darwin -- Python 3.6.0, pytest-3.8.0, py-1.5.4, pluggy-0.7.1 -- /Users/deil/software/anaconda3/envs/gammapy-dev/bin/python
cachedir: .pytest_cache
rootdir: /Users/deil/work/code/gammapy, inifile: setup.cfg
plugins: repeat-0.6.0, remotedata-0.3.0, openfiles-0.3.0, doctestplus-0.1.3, cov-2.6.0, arraydiff-0.2
WARNING: AstropyDeprecationWarning: The module `astropy.tests.pytest_plugins has been deprecated. The variables `PYTEST_HEADER_MODULES` and `TESTED_VERSIONS`should now be imported from `astropy.tests.plugins.display`. The function `enable_deprecations_as_exceptions` should be imported from `astropy.tests.helper` [astropy.tests.pytest_plugins]
Gammapy test data availability:
gammapy-extra ... yes
Gammapy environment variables:
GAMMAPY_EXTRA = /Users/deil/work/code/gammapy-extra
Setting matplotlib backend to "agg" for the tests.
collecting 0 items ^C
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! KeyboardInterrupt !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
/Users/deil/software/anaconda3/envs/gammapy-dev/lib/python3.6/subprocess.py:1383: KeyboardInterrupt
(to show a full traceback on KeyboardInterrupt use --fulltrace)
=================================================================================== no tests ran in 19.88 seconds ====================================================================================
(gammapy-dev) hfm-1804a:gammapy deil$
(gammapy-dev) hfm-1804a:gammapy deil$
(gammapy-dev) hfm-1804a:gammapy deil$
(gammapy-dev) hfm-1804a:gammapy deil$ pytest -v
======================================================================================== test session starts =========================================================================================
platform darwin -- Python 3.6.0, pytest-3.8.0, py-1.5.4, pluggy-0.7.1 -- /Users/deil/software/anaconda3/envs/gammapy-dev/bin/python
cachedir: .pytest_cache
rootdir: /Users/deil/work/code/gammapy, inifile: setup.cfg
plugins: repeat-0.6.0, remotedata-0.3.0, openfiles-0.3.0, doctestplus-0.1.3, cov-2.6.0, arraydiff-0.2
WARNING: AstropyDeprecationWarning: The module `astropy.tests.pytest_plugins has been deprecated. The variables `PYTEST_HEADER_MODULES` and `TESTED_VERSIONS`should now be imported from `astropy.tests.plugins.display`. The function `enable_deprecations_as_exceptions` should be imported from `astropy.tests.helper` [astropy.tests.pytest_plugins]
Gammapy test data availability:
gammapy-extra ... yes
Gammapy environment variables:
GAMMAPY_EXTRA = /Users/deil/work/code/gammapy-extra
Setting matplotlib backend to "agg" for the tests.
collected 1339 items / 5 errors
=============================================================================================== ERRORS ===============================================================================================
_________________________________________________________________________________ ERROR collecting test_notebooks.py _________________________________________________________________________________
test_notebooks.py:45: in <module>
os.symlink(str(path_datasets), 'datasets')
E FileExistsError: [Errno 17] File exists: '/Users/deil/work/code/gammapy-extra/datasets' -> 'datasets'
During handling of the above exception, another exception occurred:
test_notebooks.py:49: in <module>
sys.exit()
E SystemExit
------------------------------------------------------------------------------------------ Captured stderr -------------------------------------------------------------------------------------------
ERROR:root:It was not possible to create a /datasets symlink
ERROR:root:[Errno 17] File exists: '/Users/deil/work/code/gammapy-extra/datasets' -> 'datasets'
_____________________________________________________________________________ ERROR collecting datasets/cta/test_area.py _____________________________________________________________________________
ImportError while importing test module '/Users/deil/work/code/gammapy/datasets/cta/test_area.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
datasets/cta/test_area.py:4: in <module>
from gammapy.utils.fits import get_hdu
E ImportError: cannot import name 'get_hdu'
_____________________________________________________________________________ ERROR collecting datasets/cta/test_bkg.py ______________________________________________________________________________
ImportError while importing test module '/Users/deil/work/code/gammapy/datasets/cta/test_bkg.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
datasets/cta/test_bkg.py:1: in <module>
from gammapy.utils.fits import get_hdu
E ImportError: cannot import name 'get_hdu'
____________________________________________________________________________ ERROR collecting datasets/cta/test_edisp.py _____________________________________________________________________________
ImportError while importing test module '/Users/deil/work/code/gammapy/datasets/cta/test_edisp.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
datasets/cta/test_edisp.py:3: in <module>
from gammapy.utils.fits import get_hdu
E ImportError: cannot import name 'get_hdu'
_____________________________________________________________________________ ERROR collecting datasets/cta/test_psf.py ______________________________________________________________________________
datasets/cta/test_psf.py:5: in <module>
psf = EnergyDependentMultiGaussPSF.read(irf_path, hdu='POINT SPREAD FUNCTION')
gammapy/irf/psf_gauss.py:112: in read
with fits.open(str(filename), memmap=False) as hdulist:
../../../software/anaconda3/envs/gammapy-dev/lib/python3.6/site-packages/astropy/io/fits/hdu/hdulist.py:151: in fitsopen
lazy_load_hdus, **kwargs)
../../../software/anaconda3/envs/gammapy-dev/lib/python3.6/site-packages/astropy/io/fits/hdu/hdulist.py:387: in fromfile
lazy_load_hdus=lazy_load_hdus, **kwargs)
../../../software/anaconda3/envs/gammapy-dev/lib/python3.6/site-packages/astropy/io/fits/hdu/hdulist.py:974: in _readfrom
fileobj = _File(fileobj, mode=mode, memmap=memmap, cache=cache)
../../../software/anaconda3/envs/gammapy-dev/lib/python3.6/site-packages/astropy/utils/decorators.py:488: in wrapper
return function(*args, **kwargs)
../../../software/anaconda3/envs/gammapy-dev/lib/python3.6/site-packages/astropy/io/fits/file.py:175: in __init__
self._open_filename(fileobj, mode, overwrite)
../../../software/anaconda3/envs/gammapy-dev/lib/python3.6/site-packages/astropy/io/fits/file.py:530: in _open_filename
if not self._try_read_compressed(self.name, magic, mode, ext=ext):
../../../software/anaconda3/envs/gammapy-dev/lib/python3.6/site-packages/astropy/io/fits/file.py:428: in _try_read_compressed
self._file = gzip.GzipFile(**kwargs)
../../../software/anaconda3/envs/gammapy-dev/lib/python3.6/gzip.py:163: in __init__
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
E FileNotFoundError: [Errno 2] No such file or directory: 'perf_prod2/South_5h/irf_file.fits.gz'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 5 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
====================================================================================== 5 error in 11.37 seconds ======================================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment