Skip to content

Instantly share code, notes, and snippets.

@ErikHogenbirk
Created February 14, 2017 10:40
Show Gist options
  • Save ErikHogenbirk/38f8c047932023b0520f521b834fe42c to your computer and use it in GitHub Desktop.
Save ErikHogenbirk/38f8c047932023b0520f521b834fe42c to your computer and use it in GitHub Desktop.
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-58-e8445a5f0fac> in <module>()
1 for dset in datasets_sim[3:10]:
----> 2 ds_tmp = hax.minitrees.load(dset, ['Basics'])
/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-1.3.0-py3.4.egg/hax/minitrees.py in load(datasets, treemakers, preselection, force_reload, delayed, num_workers, compute_options, cache_file, remake_cache)
438 partial_histories.append(dask.delayed(lambda x: x[1])(mashup))
439
--> 440 result = dask.dataframe.from_delayed(partial_results, meta=partial_results[0].compute())
441
442 if not delayed:
/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/dask/base.py in compute(self, **kwargs)
84 Extra keywords to forward to the scheduler ``get`` function.
85 """
---> 86 return compute(self, **kwargs)[0]
87
88 @classmethod
/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/dask/base.py in compute(*args, **kwargs)
177 dsk = merge(var.dask for var in variables)
178 keys = [var._keys() for var in variables]
--> 179 results = get(dsk, keys, **kwargs)
180
181 results_iter = iter(results)
/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/dask/threaded.py in get(dsk, result, cache, num_workers, **kwargs)
56 results = get_async(pool.apply_async, len(pool._pool), dsk, result,
57 cache=cache, queue=queue, get_id=_thread_get_id,
---> 58 **kwargs)
59
60 return results
/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/dask/async.py in get_async(apply_async, num_workers, dsk, result, cache, queue, get_id, raise_on_exception, rerun_exceptions_locally, callbacks, **kwargs)
479 _execute_task(task, data) # Re-execute locally
480 else:
--> 481 raise(remote_exception(res, tb))
482 state['cache'][key] = res
483 finish_task(dsk, key, state, results, keyorder.get)
RuntimeError: failed to load the library for 'std::vector<Hit>' @ 9ed875416084b362
Traceback
---------
File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/dask/async.py", line 263, in execute_task
result = _execute_task(task, data)
File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/dask/async.py", line 245, in _execute_task
return func(*args2)
File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/dask/compatibility.py", line 47, in apply
return func(*args, **kwargs)
File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-1.3.0-py3.4.egg/hax/minitrees.py", line 342, in load_single_dataset
dataset_frame = load_single_minitree(run_id, treemaker, force_reload=force_reload, event_list=event_list)
File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-1.3.0-py3.4.egg/hax/minitrees.py", line 294, in load_single_minitree
skimmed_data = treemaker().get_data(run_id, event_list=event_list)
File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-1.3.0-py3.4.egg/hax/minitrees.py", line 82, in get_data
desc='Making %s minitree' % self.__class__.__name__)
File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-1.3.0-py3.4.egg/hax/paxroot.py", line 164, in loop_over_datasets
for _ in function_results_datasets(*args, **kwargs):
File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-1.3.0-py3.4.egg/hax/paxroot.py", line 120, in function_results_datasets
rootfile = open_pax_rootfile(run_id)
File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-1.3.0-py3.4.egg/hax/paxroot.py", line 43, in open_pax_rootfile
return _open_pax_rootfile(get_filename(run_id), load_class=load_class)
File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/hax-1.3.0-py3.4.egg/hax/paxroot.py", line 60, in _open_pax_rootfile
'pax_event_class_%d.cpp' % hax.config['old_pax_class_version']))
File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/pax-6.3.2-py3.4.egg/pax/plugins/io/ROOTClass.py", line 457, in load_event_class
stl.generate("std::vector<%s>" % name, ['<vector>', "%s" % filename], True)
File "/project/lgrandi/anaconda3/envs/pax_head/lib/python3.4/site-packages/rootpy/stl.py", line 380, in generate
declaration, libname))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment