Skip to content

Instantly share code, notes, and snippets.

@keflavich
Last active June 12, 2017 19:56
Show Gist options
  • Save keflavich/cc24726b995d51121e53c3b6ebbf4cd7 to your computer and use it in GitHub Desktop.
Save keflavich/cc24726b995d51121e53c3b6ebbf4cd7 to your computer and use it in GitHub Desktop.
test timeout/failure

command: ~/anaconda/envs/astropy27/bin/python setup.py test --remote-data=astropy -a "--mpl"

========================================================================== test session starts ==========================================================================
platform darwin -- Python 2.7.11, pytest-3.0.7, py-1.4.33, pluggy-0.4.0

Running tests with Astropy version 2.0.dev18294.
Running tests in lib.macosx-10.5-x86_64-2.7/astropy docs.

Date: 2017-05-16T13:16:14

Platform: Darwin-13.4.0-x86_64-i386-64bit

Executable: /Users/adam/anaconda/envs/astropy27/bin/python

Full Python Version:
2.7.11 |Continuum Analytics, Inc.| (default, Dec  6 2015, 18:57:58)
[GCC 4.2.1 (Apple Inc. build 5577)]

encodings: sys: ascii, locale: UTF-8, filesystem: utf-8, unicode bits: 15
byteorder: little
float info: dig: 15, mant_dig: 15

Numpy: 1.12.0
Scipy: 0.19.0
Matplotlib: 2.0.2
h5py: 2.7.0
Pandas: 0.20.1
Cython: 0.25.2
Using Astropy options: remote_data: astropy.

rootdir: /private/var/folders/_r/c4nkvmpn4vx6qc91qygz8h740000gr/T/astropy-test-QU2D11, inifile: setup.cfg
plugins: pep8-1.0.6, mpl-0.7, arraydiff-0.1
collected 11806 items / 4 errors

================================================================================ ERRORS =================================================================================
_______________________________________________ ERROR collecting docs/generated/examples/coordinates/plot_obs-planning.py _______________________________________________
../docs/generated/examples/coordinates/plot_obs-planning.py:60: in <module>
    m33 = SkyCoord.from_name('M33')
astropy/coordinates/sky_coordinate.py:1330: in from_name
    icrs_coord = get_icrs_coordinates(name)
astropy/coordinates/name_resolve.py:139: in get_icrs_coordinates
    resp = urllib.request.urlopen(url, timeout=data.conf.remote_timeout)
/Users/adam/anaconda/envs/astropy27/lib/python2.7/urllib2.py:154: in urlopen
    return opener.open(url, data, timeout)
/Users/adam/anaconda/envs/astropy27/lib/python2.7/urllib2.py:431: in open
    response = self._open(req, data)
/Users/adam/anaconda/envs/astropy27/lib/python2.7/urllib2.py:449: in _open
    '_open', req)
/Users/adam/anaconda/envs/astropy27/lib/python2.7/urllib2.py:409: in _call_chain
    result = func(*args)
/Users/adam/anaconda/envs/astropy27/lib/python2.7/urllib2.py:1227: in http_open
    return self.do_open(httplib.HTTPConnection, req)
/Users/adam/anaconda/envs/astropy27/lib/python2.7/urllib2.py:1194: in do_open
    h.request(req.get_method(), req.get_selector(), req.data, headers)
/Users/adam/anaconda/envs/astropy27/lib/python2.7/httplib.py:1057: in request
    self._send_request(method, url, body, headers)
/Users/adam/anaconda/envs/astropy27/lib/python2.7/httplib.py:1097: in _send_request
    self.endheaders(body)
/Users/adam/anaconda/envs/astropy27/lib/python2.7/httplib.py:1053: in endheaders
    self._send_output(message_body)
/Users/adam/anaconda/envs/astropy27/lib/python2.7/httplib.py:897: in _send_output
    self.send(msg)
/Users/adam/anaconda/envs/astropy27/lib/python2.7/httplib.py:859: in send
    self.connect()
/Users/adam/anaconda/envs/astropy27/lib/python2.7/httplib.py:836: in connect
    self.timeout, self.source_address)
astropy/tests/disable_internet.py:75: in new_function
    "requested host was: {0}".format(host))
E   IOError: An attempt was made to connect to the internet by a test that was not marked `remote_data`. The requested host was: cdsweb.u-strasbg.fr
___________________________________________ ERROR collecting docs/generated/examples/coordinates/plot_sgr-coordinate-frame.py ___________________________________________
../docs/generated/examples/coordinates/plot_sgr-coordinate-frame.py:177: in <module>
    subplot_kw={'projection': 'aitoff'})
/Users/adam/anaconda/envs/astropy27/lib/python2.7/site-packages/matplotlib/pyplot.py:1211: in subplots
    ax0 = fig.add_subplot(gs[0, 0], **subplot_kw)
/Users/adam/anaconda/envs/astropy27/lib/python2.7/site-packages/matplotlib/figure.py:1021: in add_subplot
    a = subplot_class_factory(projection_class)(self, *args, **kwargs)
/Users/adam/anaconda/envs/astropy27/lib/python2.7/site-packages/matplotlib/axes/_subplots.py:73: in __init__
    self._axes_class.__init__(self, fig, self.figbox, **kwargs)
/Users/adam/anaconda/envs/astropy27/lib/python2.7/site-packages/matplotlib/projections/geo.py:326: in __init__
    GeoAxes.__init__(self, *args, **kwargs)
/Users/adam/anaconda/envs/astropy27/lib/python2.7/site-packages/matplotlib/axes/_base.py:551: in __init__
    self.cla()
/Users/adam/anaconda/envs/astropy27/lib/python2.7/site-packages/matplotlib/projections/geo.py:56: in cla
    self.set_longitude_grid(30)
/Users/adam/anaconda/envs/astropy27/lib/python2.7/site-packages/matplotlib/projections/geo.py:196: in set_longitude_grid
    np.linspace(-np.pi, np.pi, number, True)[1:-1]))
/Users/adam/anaconda/envs/astropy27/lib/python2.7/site-packages/numpy/core/function_base.py:101: in linspace
    num = _index_deprecate(num)
/Users/adam/anaconda/envs/astropy27/lib/python2.7/site-packages/numpy/core/function_base.py:21: in _index_deprecate
    warnings.warn(msg, DeprecationWarning, stacklevel=stacklevel)
E   DeprecationWarning: object of type <type 'float'> cannot be safely interpreted as an integer.
---------------------------------------------------------------------------- Captured stdout ----------------------------------------------------------------------------
<Sagittarius Coordinate: (Lambda, Beta) in deg
    ( 346.81830652, -39.28360407)>
<ICRS Coordinate: (ra, dec) in deg
    [( 284.03876751, -29.00408353), ( 287.24685769, -29.44848352),
     ( 290.48068369, -29.81535572), ( 293.7357366 , -30.1029631 ),
     ( 297.00711066, -30.30991693), ( 300.28958688, -30.43520293),
     ( 303.57772919, -30.47820084), ( 306.86598944, -30.43869669),
     ( 310.14881715, -30.31688708), ( 313.42076929, -30.11337526),
     ( 316.67661568, -29.82915917), ( 319.91143548, -29.46561215),
     ( 323.12070147, -29.02445708), ( 326.30034928, -28.50773532),
     ( 329.44683007, -27.9177717 ), ( 332.55714589, -27.257137  ),
     ( 335.62886847, -26.52860943), ( 338.66014233, -25.73513624),
     ( 341.64967439, -24.87979679), ( 344.59671212, -23.96576781),
     ( 347.50101283, -22.99629167), ( 350.36280652, -21.97464811),
     ( 353.18275454, -20.90412969), ( 355.96190618, -19.78802107),
     ( 358.70165491, -18.62958199), (   1.40369557, -17.43203397),
     (   4.06998374, -16.19855028), (   6.70269788, -14.93224899),
     (   9.30420479, -13.63618882), (  11.87702861, -12.31336727),
     (  14.42382347, -10.96672102), (  16.94734952,  -9.59912794),
     (  19.45045241,  -8.21341071), (  21.93604568,  -6.81234162),
     (  24.40709589,  -5.39864845), (  26.86661004,  -3.97502106),
     (  29.31762493,  -2.54411871), (  31.76319801,  -1.10857781),
     (  34.20639942,   0.32898001), (  36.65030466,   1.76593955),
     (  39.09798768,   3.19968374), (  41.55251374,   4.6275852 ),
     (  44.01693189,   6.04699804), (  46.49426651,   7.45524993),
     (  48.98750752,   8.84963453), (  51.4995989 ,  10.22740448),
     (  54.03342512,  11.58576509), (  56.59179508,  12.92186896),
     (  59.17742314,  14.23281165), (  61.79290712,  15.51562883),
     (  64.44070278,  16.76729487), (  67.12309478,  17.98472356),
     (  69.84216409,  19.16477088), (  72.59975183,  20.30424045),
     (  75.39742013,  21.3998918 ), (  78.23641033,  22.44845192),
     (  81.11759966,  23.44663022), (  84.04145735,  24.39113719),
     (  87.00800203,  25.27870692), (  90.01676196,  26.10612335),
     (  93.06674057,  26.87025019), (  96.15638947,  27.56806406),
     (  99.28359159,  28.19669038), ( 102.44565666,  28.75344107),
     ( 105.63933131,  29.23585315), ( 108.86082534,  29.64172698),
     ( 112.105855  ,  29.96916281), ( 115.36970341,  30.21659414),
     ( 118.64729687,  30.38281659), ( 121.93329519,  30.46701088),
     ( 125.22219273,  30.46875885), ( 128.50842634,  30.38805179),
     ( 131.78648572,  30.22529063), ( 135.05102157,  29.98127794),
     ( 138.29694697,  29.6572022 ), ( 141.51952827,  29.2546151 ),
     ( 144.71446203,  28.77540295), ( 147.87793614,  28.22175338),
     ( 151.00667382,  27.59611901), ( 154.09796066,  26.90117914),
     ( 157.14965528,  26.13980125), ( 160.16018547,  25.31500315),
     ( 163.12853176,  24.42991703), ( 166.05420084,  23.48775622),
     ( 168.93719133,  22.49178507), ( 171.77795423,  21.44529257),
     ( 174.57735037,  20.35156967), ( 177.33660656,  19.21389046),
     ( 180.05727218,  18.03549704), ( 182.74117737,  16.81958784),
     ( 185.39039367,  15.56930924), ( 188.00719783,  14.28774998),
     ( 190.59403895,  12.97793826), ( 193.15350938,  11.64284103),
     ( 195.68831902,  10.28536518), ( 198.20127316,   8.90836046),
     ( 200.69525342,   7.51462369), ( 203.17320154,   6.10690412),
     ( 205.63810576,   4.6879097 ), ( 208.09298919,   3.26031403),
     ( 210.54090002,   1.82676397), ( 212.984903  ,   0.38988751),
     ( 215.42807182,  -1.04769799), ( 217.87348209,  -2.48337744),
     ( 220.32420429,  -3.91452965), ( 222.7832966 ,  -5.338519  ),
     ( 225.25379684,  -6.75268736), ( 227.73871349,  -8.15434631),
     ( 230.24101506,  -9.54076983), ( 232.76361762, -10.90918763),
     ( 235.30937003, -12.25677927), ( 237.88103647, -13.58066929),
     ( 240.48127601, -14.87792359), ( 243.11261883, -16.14554723),
     ( 245.777439  , -17.38048408), ( 248.47792364, -18.57961852),
     ( 251.2160385 , -19.7397795 ), ( 253.9934903 , -20.85774736),
     ( 256.81168612, -21.93026371), ( 259.67169071, -22.95404466),
     ( 262.57418275, -23.92579758), ( 265.51941137, -24.84224172),
     ( 268.50715471, -25.70013256), ( 271.53668252, -26.49628998),
     ( 274.6067251 , -27.22762983), ( 277.71545113, -27.89119849),
     ( 280.86045662, -28.48420985), ( 284.03876751, -29.00408353)]>
_________________________________________________ ERROR collecting docs/generated/examples/io/skip_create-large-fits.py _________________________________________________
../docs/generated/examples/io/skip_create-large-fits.py:72: in <module>
    header.tofile('large.fits')
astropy/utils/decorators.py:507: in wrapper
    return function(*args, **kwargs)
astropy/io/fits/header.py:684: in tofile
    fileobj = _File(fileobj, mode='ostream', overwrite=overwrite)
astropy/utils/decorators.py:507: in wrapper
    return function(*args, **kwargs)
astropy/io/fits/file.py:144: in __init__
    self._open_filename(fileobj, mode, overwrite)
astropy/io/fits/file.py:473: in _open_filename
    self._overwrite_existing(overwrite, None, True)
astropy/io/fits/file.py:394: in _overwrite_existing
    raise IOError("File {!r} already exists.".format(self.name))
E   IOError: File 'large.fits' already exists.
___________________________________________________ ERROR collecting docs/generated/examples/io/split-jpeg-to-fits.py ___________________________________________________
../docs/generated/examples/io/split-jpeg-to-fits.py:37: in <module>
    image = Image.open('Hs-2009-14-a-web.jpg')
/Users/adam/anaconda/envs/astropy27/lib/python2.7/site-packages/Pillow-2.9.0-py2.7-macosx-10.5-x86_64.egg/PIL/Image.py:2288: in open
    fp = builtins.open(fp, "rb")
E   IOError: [Errno 2] No such file or directory: 'Hs-2009-14-a-web.jpg'
======================================================================== pytest-warning summary =========================================================================
WC1 None [pytest] section in setup.cfg files is deprecated, use [tool:pytest] instead.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 4 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================= 1 pytest-warnings, 4 error in 188.41 seconds =============================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment