Skip to content

mkedanlzr in slc6 CMSSW_7_6_7 image

mkedanlzr is a nice script to have for getting started with CMS open data. In order for it to work in a slc6 CMSSW_7_6_7 container, following changes would be needed:

  • in /opt/cms/slc6_amd64_gcc493/cms/cmssw/CMSSW_7_6_7/python/FWCore/Skeletons/pkg.py:
    • add import pwd
    • replace os.getlogin() with pwd.getpwuid(os.geteuid())[0]
  • in /opt/cms/slc6_amd64_gcc493/cms/cmssw/CMSSW_7_6_7/python/FWCore/Skeletons/utils.py:
    • similarly, replace os.getlogin() with pwd.getpwuid(os.geteuid())[0]

(see https://github.com/cernopendata/data-curation/issues/114)

Could that be done in the image build? It is a bit awkward to ask users to make this change, in particular, as this comes quite early in the learning path.