jnicoleoliveira / SPECData

Interactive spectroscopic data analysis tool.
6 stars 4 forks source link

ConnectTimeoutError #5

Closed jnicoleoliveira closed 7 years ago

jnicoleoliveira commented 7 years ago

Every now and then, I get this error when trying to load an experiment.

Traceback (most recent call last):
  File "/home/joli/PycharmProjects/SPECData2.0/app/dialogs/dialog___load_experiment.py", line 53, in load
    self.load_experiment(text[1], text[2])
  File "/home/joli/PycharmProjects/SPECData2.0/app/dialogs/dialog___load_experiment.py", line 67, in load_experiment
    window = OpenExperimentView(name, mid)
  File "/home/joli/PycharmProjects/SPECData2.0/app/dialogs/dialog___open_experiment_view.py", line 13, in __init__
    self.show_experiment(name, mid)
  File "/home/joli/PycharmProjects/SPECData2.0/app/dialogs/dialog___open_experiment_view.py", line 17, in show_experiment
    self.new_window = ExperimentView(name, mid)
  File "/home/joli/PycharmProjects/SPECData2.0/app/dialogs/dialog___experiment_view.py", line 93, in __init__
    self.__setup__(experiment_name, mid)
  File "/home/joli/PycharmProjects/SPECData2.0/app/dialogs/dialog___experiment_view.py", line 581, in __setup__
    self.splatalogue_dock_widget.__setup__()  # Note: Setup here, to stop pop-up windows in load
  File "/home/joli/PycharmProjects/SPECData2.0/app/dialogs/widgets/widget___splatalogue_dock.py", line 64, in __setup__
    self.populate_lists_with_matches()
  File "/home/joli/PycharmProjects/SPECData2.0/app/dialogs/widgets/widget___splatalogue_dock.py", line 70, in populate_lists_with_matches
    self.splat_analysis.find_matches()
  File "/home/joli/PycharmProjects/SPECData2.0/analysis/splatalogue_analysis.py", line 52, in find_matches
    lines = self.query(frequencies[i] - threshold, frequencies[i] + threshold)
  File "/home/joli/PycharmProjects/SPECData2.0/analysis/splatalogue_analysis.py", line 149, in query
    line_lists=line_list)[columns]
  File "/home/joli/tools/anaconda3/envs/2.7Envi/lib/python2.7/site-packages/astroquery/utils/class_or_instance.py", line 25, in f
    return self.fn(obj, *args, **kwds)
  File "/home/joli/tools/anaconda3/envs/2.7Envi/lib/python2.7/site-packages/astroquery/utils/process_asyncs.py", line 26, in newmethod
    response = getattr(self, async_method_name)(*args, **kwargs)
  File "/home/joli/tools/anaconda3/envs/2.7Envi/lib/python2.7/site-packages/astroquery/splatalogue/core.py", line 410, in query_lines_async
    cache=cache)
  File "/home/joli/tools/anaconda3/envs/2.7Envi/lib/python2.7/site-packages/astroquery/query.py", line 195, in _request
    auth=auth)
  File "/home/joli/tools/anaconda3/envs/2.7Envi/lib/python2.7/site-packages/astroquery/query.py", line 60, in request
    stream=stream, auth=auth)
  File "/home/joli/tools/anaconda3/envs/2.7Envi/lib/python2.7/site-packages/requests/sessions.py", line 475, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/joli/tools/anaconda3/envs/2.7Envi/lib/python2.7/site-packages/requests/sessions.py", line 596, in send
    r = adapter.send(request, **kwargs)
  File "/home/joli/tools/anaconda3/envs/2.7Envi/lib/python2.7/site-packages/requests/adapters.py", line 479, in send
    raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='www.cv.nrao.edu', port=80): Max retries exceeded with url: /php/splat/c_export.php (Caused by ConnectTimeoutError(<requests.packages.urllib3.connection.HTTPConnection object at 0x7f0e9ab798d0>, 'Connection to www.cv.nrao.edu timed out. (connect timeout=60)'))