Uploaded image for project: 'DRP 2-D Pipeline'
  1. DRP 2-D Pipeline
  2. PIPE2D-53

tests/testDRP.py will fail on modern Mac OS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Sprint:
      2014-16

      Description

      drp_stella's tests/testDRP.py contains the line:

      print subprocess.Popen("bin.src/reduceArcRefSpec.py %s --id visit=%d --refSpec %s --lineList %s --loglevel 'info' --calib %s --output %s --clobber-config" % (self.testDataDir, self.arcVisit, self.refSpec, self.lineList, self.testCalibDir, self.testDataDir), shell=True)
      

      On Mac OS >= 10.11, this will produce the following result:

      self.testDataDir = < /Users/jds/Projects/Astronomy/PFS/src/drp_stella_data/tests/data/ >
      self.testCalibDir = < /Users/jds/Projects/Astronomy/PFS/src/drp_stella_data/tests/data/CALIB/ >
      self.arcVisit = < 4 >
      self.refSpec = < /Users/jds/Projects/Astronomy/PFS/src/obs_pfs/pfs/arcSpectra/refSpec_CdHgKrNeXe_red.fits >
      self.lineList = < /Users/jds/Projects/Astronomy/PFS/src/obs_pfs/pfs/lineLists/CdHgKrNeXe_red.fits >
      os.environ['OBS_PFS_DIR'] = < /Users/jds/Projects/Astronomy/PFS/src/obs_pfs >
      <subprocess.Popen object at 0x114f36c90>
      .
      ----------------------------------------------------------------------
      Ran 1 test in 0.004s
      
      OK
      Could not import lsstcppimport; please ensure the base package has been built (not just setup).
      
      Traceback (most recent call last):
        File "bin.src/reduceArcRefSpec.py", line 3, in <module>
          from pfs.drp.stella.reduceArcRefSpecTask import ReduceArcRefSpecTask
        File "/Users/jds/Projects/Astronomy/PFS/src/drp_stella/python/pfs/drp/stella/__init__.py", line 1, in <module>
          from stellaLib import *
        File "/Users/jds/Projects/Astronomy/PFS/src/drp_stella/python/pfs/drp/stella/stellaLib.py", line 34, in <module>
          _stellaLib = swig_import_helper()
        File "/Users/jds/Projects/Astronomy/PFS/src/drp_stella/python/pfs/drp/stella/stellaLib.py", line 30, in swig_import_helper
          _mod = imp.load_module('_stellaLib', fp, pathname, description)
        File "/Users/jds/Projects/Astronomy/LSST/stack/DarwinX86/base/12.0-4-g0d328d3/python/lsstimport.py", line 107, in imp_load_module
          module = orig_imp_load_module(name, *args)
      ImportError: dlopen(/Users/jds/Projects/Astronomy/PFS/src/drp_stella/python/pfs/drp/stella/_stellaLib.so, 2): Library not loaded: libdrp_stella.dylib
        Referenced from: /Users/jds/Projects/Astronomy/PFS/src/drp_stella/python/pfs/drp/stella/_stellaLib.so
        Reason: image not found
      

      Two problems here:

      1. The test is obviously not being run, due to issues with SIP;
      2. Despite crashing and burning like this, we're still reporting it as a success.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                aritter aritter
                Reporter:
                swinbank swinbank
                Reviewers:
                swinbank
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: