xenonnt / montecarlo_environment Goto Github PK
View Code? Open in Web Editor NEWContainer environment for our monte carlo workflows
Container environment for our monte carlo workflows
montecarlo_environment/create-env
Line 44 in f67e0cf
Currently it is not possible to run GenerateGeant4.py in the container. The error message is:
Traceback (most recent call last):
File "/opt/geant4/lib/cppyy/__init__.py", line 60, in <module>
importlib.import_module(libcppyy_mod_name)
File "/opt/XENONnT/anaconda/envs/XENONnT_development/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'libcppyy3_8'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "GenerateGeant4.py", line 5, in <module>
import DataHandler
File "/home/wittweg/mc/nSort/DataHandler.py", line 6, in <module>
import ROOT
File "/opt/geant4/lib/ROOT/__init__.py", line 28, in <module>
import cppyy
File "/opt/geant4/lib/cppyy/__init__.py", line 62, in <module>
raise ImportError(
ImportError: Failed to import libcppyy3_8. Please check that ROOT has been built for Python 3.8
Is it possible to use a different precompiled ROOT version? I think @DonNabla ran into the same issue when trying to simulate XENONnT backgrounds on OSG. It is possible to use the C executable directly still with:
./nSort -i <path_to_raw_G4> -d XENONnT -s 2 -m 2
(from Maxime, -s 2
flag saves single- and multi-scatter)
Not a problem right now, but wondering whether we want to make this automatic (is possible) at one point. I guess the solution can be not that simple, given the ROOT and G4 dependencies.
It seems the root in singularity environment was built with python 3.6.8 and the python installed is 3.8.10, which causes problem when trying to use PyRoot.
Singularity xenonnt-montecarlo-development.simg:~> python --version
Python 3.8.10
Singularity xenonnt-montecarlo-development.simg:~> root-config --python-version
3.6.8
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.