Uploaded image for project: 'CORAL and COOL'
  1. CORAL and COOL
  2. CORALCOOL-1902

'No module named subprocess' in QMTEST for osx in COOL_HEAD

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: COOL_HEAD
    • Fix Version/s: None
    • Component/s: Infrastructure
    • Labels:
      None

      Description

      The COOL220 config for osx seems ok. The following produces real results:

      ssh macphsft01
      klog
      tcsh
      cd /afs/cern.ch/sw/lcg/app/releases/COOL/COOL_2_2_0/src/config/cmt
      setenv CMTCONFIG osx104_ppc_gcc401_dbg
      source CMT_env.csh
      source setup.csh
      cd ../qmtest
      qmtest run -o /tmp/COOL220-$CMTCONFIG.qmr cool

      However, I do not manage to produce decent results from the HEAD:

      ssh macphsft01
      klog
      tcsh
      cd /afs/cern.ch/user/a/avalassi/myLCG/COOL_HEAD/src/config/cmt/
      setenv CMTCONFIG osx104_ppc_gcc401_dbg
      source CMT_env.csh
      source setup.csh
      cd ../qmtest
      qmtest run -o /tmp/COOLHEAD-$CMTCONFIG.qmr coolkernel

      This fails:

      coolkernel.folderspec : UNTESTED
      Could not load test.

      qmtest.exception:

      xml_database.TestFileError: A problem occurred while loading the XML test file "coolkernel.folderspec":
      Exception 'exceptions.ImportError' : 'No module named subprocess'

      File "/afs/.cern.ch/sw/lcg/external/QMtest/2.3.0_python242/osx104_ppc_gcc401/lib/python2.3/site-packages/qm/test/base.py", line 223, in get_extension_class_from_directory
      path + sys.path)

      File "/afs/.cern.ch/sw/lcg/external/QMtest/2.3.0_python242/osx104_ppc_gcc401/lib/python2.3/site-packages/qm/common.py", line 366, in load_class
      module = load_module(module_name, search_path, load_path)

      File "/afs/.cern.ch/sw/lcg/external/QMtest/2.3.0_python242/osx104_ppc_gcc401/lib/python2.3/site-packages/qm/common.py", line 312, in load_module
      module = imp.load_module(name, file, file_name, description)

      File "/afs/cern.ch/user/a/avalassi/myLCG/COOL_HEAD/src/../src/config/qmtest/COOLTests.py", line 40, in ?
      from subprocess import Popen, PIPE, STDOUT

      The "COOLTests.StandardTest" extension class could not be loaded..

      qmtest.traceback:

      File "/afs/.cern.ch/sw/lcg/external/QMtest/2.3.0_python242/osx104_ppc_gcc401/lib/python2.3/site-packages/qm/test/execution_engine.py", line 796, in __GetTestDescriptor
      return self.__database.GetTest(test_id)

      File "/afs/.cern.ch/sw/lcg/external/QMtest/2.3.0_python242/osx104_ppc_gcc401/lib/python2.3/site-packages/qm/test/file_database.py", line 58, in GetTest
      return self._GetTestFromPath(test_id, os.path.normpath(path))

      File "/afs/.cern.ch/sw/lcg/external/QMtest/2.3.0_python242/osx104_ppc_gcc401/lib/python2.3/site-packages/qm/test/classes/xml_database.py", line 69, in _GetTestFromPath
      raise TestFileError, message

      What is wrong here?

        Attachments

          Activity

            People

            • Assignee:
              valassi Andrea Valassi
              Reporter:
              valassi Andrea Valassi
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: