Skip to content

Instantly share code, notes, and snippets.

erik@erik-VirtualBox:~/pax$ paxer --input /home/erik/pax/pax/data/xe100_120402_2000_000000.xed
pyROOT didn't import - if you use the ROOT format, pax will crash!
processor MainProcess L71 INFO This is PAX version 3.3.0, running with configuration for XENON100.
ReadXED MainProcess L86 INFO InputFromFolder: Selecting file /home/erik/pax/pax/data/xe100_120402_2000_000000.xed (number 1/1 in folder) for reading
Traceback (most recent call last):
File "/home/erik/anaconda3/lib/python3.4/site-packages/numba/targets/options.py", line 16, in from_dict
ctor = self.OPTIONS[k]
KeyError: 'cache'
(pax)erik@erik-VirtualBox:~/pax$ python setup.py develop
running develop
running egg_info
writing top-level names to pax.egg-info/top_level.txt
writing requirements to pax.egg-info/requires.txt
writing pax.egg-info/PKG-INFO
writing dependency_links to pax.egg-info/dependency_links.txt
package init file 'pax/config/__init__.py' not found (or not a regular file)
reading manifest file 'pax.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
File "/home/erik/anaconda3/envs/pax/bin/paxer", line 6, in <module>
exec(compile(open(__file__).read(), __file__, 'exec'))
File "/home/erik/pax/bin/paxer", line 465, in <module>
main()
File "/home/erik/pax/bin/paxer", line 280, in main
pax_instance.run()
File "/home/erik/pax/pax/core.py", line 451, in run
self.process_event(event)
File "/home/erik/pax/pax/core.py", line 410, in process_event
event = plugin.process_event(event)
lcg-cr -v --vo xenon.biggrid.nl -l lfn:/grid/xenon.biggrid.nl/ehogenbi/bigfile2.txt -d tbn18.nikhef.nl file://$(pwd)/bigfile.txt
Using grid catalog type: lfc
Using grid catalog : opkamer.nikhef.nl
Checksum type: None
SE type: SRMv2
Destination SURL : srm://tbn18.nikhef.nl/dpm/nikhef.nl/home/xenon.biggrid.nl/generated/2016-03-03/file8abcb070-4fa7-4f38-8276-b30a41901994
Source SRM Request Token: f04d0d59-9b7f-4ecc-95b4-1cf63b4df595
Source URL: file:/home/hogenbirk/bigfile.txt
%run boiler_plate.py
%matplotlib inline
hax.init() # Specify your own data location here, if needed
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-1-c90f81990fa8> in <module>()
1 get_ipython().magic('run boiler_plate.py')
2 get_ipython().magic('matplotlib inline')
data = []
def loop_body(event):
global data
data_this_event = root_to_numpy(event,"all_hits",hit_fields_to_import)
data.append(data_this_event)
return None
hax.paxroot.loop_over_datasets([dataset],
# Must contain a function with event as argument
loop_body,
Traceback (most recent call last):
File "get_data.py", line 79, in <module>
collection.insert(doc)
File "/archive_lngs/common/anaconda3/envs/pax/lib/python3.4/site-packages/pymongo-3.2-py3.4-linux-x86_64.egg/pymongo/collection.py", line 2198, in insert
with self._socket_for_writes() as sock_info:
File "/archive_lngs/common/anaconda3/envs/pax/lib/python3.4/contextlib.py", line 59, in __enter__
return next(self.gen)
File "/archive_lngs/common/anaconda3/envs/pax/lib/python3.4/site-packages/pymongo-3.2-py3.4-linux-x86_64.egg/pymongo/mongo_client.py", line 714, in _get_socket
with server.get_socket(self.__all_credentials) as sock_info:
(pax)hogenbirk@xecluster06:~/sc_new> python get_data.py
Traceback (most recent call last):
File "get_data.py", line 81, in <module>
collection.insert(doc)
File "/archive_lngs/common/anaconda3/envs/pax/lib/python3.4/site-packages/pymongo-3.2-py3.4-linux-x86_64.egg/pymongo/collection.py", line 2198, in insert
with self._socket_for_writes() as sock_info:
File "/archive_lngs/common/anaconda3/envs/pax/lib/python3.4/contextlib.py", line 59, in __enter__
return next(self.gen)
File "/archive_lngs/common/anaconda3/envs/pax/lib/python3.4/site-packages/pymongo-3.2-py3.4-linux-x86_64.egg/pymongo/mongo_client.py", line 714, in _get_socket
with server.get_socket(self.__all_credentials) as sock_info:
DAQRecorder.cc: In member function ‘int DAQRecorder_mongodb::InsertThreaded(std::vector<mongo::BSONObj>*, int)’:
DAQRecorder.cc:276:6: error: ‘WriteResult’ is not a member of ‘mongo’
mongo::WriteResult RES;
^
DAQRecorder.cc:276:25: error: expected ‘;’ before ‘RES’
mongo::WriteResult RES;
^
DAQRecorder.cc:280:13: error: ‘unacknowledged’ is not a member of ‘mongo::WriteConcern’
WC = mongo::WriteConcern::unacknowledged;
^
xams@xams-Vostro-270:~/mongo-cxx-driver$ scons install-mongoclient
scons: Reading SConscript files ...
ImportError: No module named docs:
File "/home/xams/mongo-cxx-driver/SConstruct", line 19:
import buildscripts.docs
xams@xams-Vostro-270:~/mongo-cxx-driver$ sudo scons install-mongoclient
[sudo] password for xams:
scons: Reading SConscript files ...
ImportError: No module named docs:
File "/home/xams/mongo-cxx-driver/SConstruct", line 19: