Giter Club home page Giter Club logo

montecarlo_environment's People

Contributors

l-althueser avatar ramirezdiego avatar rynge avatar

Watchers

 avatar  avatar  avatar

Forkers

rynge

montecarlo_environment's Issues

GenerateGeant4.py not working in Container

wget -nv -O root_v${root_version}.Linux-centos7-x86_64-gcc4.8.tar.gz https://root.cern/download/root_v${root_version}.Linux-centos7-x86_64-gcc4.8.tar.gz

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)

Synchronization with base environment

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.

Mismatch between root built python version and environment python version

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.