Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10175

Notebook `jsmva on` package util not found

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 6.16/00, 6.19/01
    • Fix Version/s: 6.22/00
    • Component/s: PyROOT, TMVA
    • Labels:
      None
    • Environment:

      Tested with Swan with LCG version 95 and bleeding edge corresponding to ROOT version 6.16 and 6.19 respectively.

    • Development:

      Description

      Reported first here: https://root-forum.cern.ch/t/tmva-not-showing-plots-on-swan/29762/7

      Running

      import ROOT
      %jsmva on
      

      on Swan with LCG version 95 yields the following error message

      ImportErrorTraceback (most recent call last)
      <ipython-input-5-e674067ab362> in <module>()
            1 import ROOT
      ----> 2 get_ipython().magic(u'jsmva on')
       
      /cvmfs/sft.cern.ch/lcg/views/LCG_95a/x86_64-centos7-gcc7-opt/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in magic(self, arg_s)
         2158         magic_name, _, magic_arg_s = arg_s.partition(' ')
         2159         magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
      -> 2160         return self.run_line_magic(magic_name, magic_arg_s)
         2161 
         2162     #-------------------------------------------------------------------------
       
      /cvmfs/sft.cern.ch/lcg/views/LCG_95a/x86_64-centos7-gcc7-opt/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in run_line_magic(self, magic_name, line)
         2079                 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
         2080             with self.builtin_trap:
      -> 2081                 result = fn(*args,**kwargs)
         2082             return result
         2083 
       
      <decorator-gen-125> in jsmva(self, line)
       
      /cvmfs/sft.cern.ch/lcg/views/LCG_95a/x86_64-centos7-gcc7-opt/lib/python2.7/site-packages/IPython/core/magic.pyc in <lambda>(f, *a, **k)
          186     # but it's overkill for just that one bit of state.
          187     def magic_deco(arg):
      --> 188         call = lambda f, *a, **k: f(*a, **k)
          189 
          190         if callable(arg):
       
      /cvmfs/sft.cern.ch/lcg/views/LCG_95a/x86_64-centos7-gcc7-opt/lib/JsMVA/JsMVAMagic.py in jsmva(self, line)
           27         args = parse_argstring(self.jsmva, line)
           28         if args.arg == 'on':
      ---> 29            functions.register()
           30         elif args.arg == 'off':
           31            functions.unregister()
       
      /cvmfs/sft.cern.ch/lcg/views/LCG_95a/x86_64-centos7-gcc7-opt/lib/JsMVA/JPyInterface.py in register(noOutput)
          146     @staticmethod
          147     def register(noOutput=False):
      --> 148         from JupyROOT.utils import transformers
          149         functions.__register(ROOT.TMVA.DataLoader, DataLoader, *functions.__getMethods(DataLoader, "Draw"))
          150         functions.__register(ROOT.TMVA.Factory,    Factory,    *functions.__getMethods(Factory,    "Draw"))
       
      /cvmfs/sft.cern.ch/lcg/views/LCG_95a/x86_64-centos7-gcc7-opt/lib/ROOT.pyc in _importhook(name, *args, **kwds)
          461       except Exception:
          462          pass
      --> 463    return _orig_ihook( name, *args, **kwds )
          464 
          465 __builtin__.__import__ = _importhook
       
      ImportError: No module named utils
      

        Attachments

          Activity

            People

            • Assignee:
              gallim Massimiliano Galli
              Reporter:
              kialbert Kim Albertsson (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: