Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-522

gracefully handle misconfigured scons

    Details

    • Type: Bug
    • Status: Won't Fix
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: Qserv
    • Labels:
      None
    • Templates:
    • Story Points:
      1
    • Sprint:
      DB_W16_01
    • Team:
      Data Access and Database

      Description

      When I try to run scons using the latest master (89aaa6), it fails with

      scons: Reading SConscript files ...
      AttributeError: 'NoneType' object has no attribute 'rfind':
        File "/home/becla/cssProto/qserv_css6/SConstruct", line 17:
          state.init(src_dir)
        File "/home/becla/cssProto/qserv_css6/site_scons/state.py", line 161:
          _initEnvironment(src_dir)
        File "/home/becla/cssProto/qserv_css6/site_scons/state.py", line 128:
          _initVariables(src_dir)
        File "/home/becla/cssProto/qserv_css6/site_scons/state.py", line 89:
          (PathVariable('XROOTD_DIR', 'xrootd install dir', _findPrefix("XROOTD", "xrootd"), PathVariable.PathIsDir)),
        File "/home/becla/cssProto/qserv_css6/site_scons/state.py", line 53:
          (binpath, binname) = os.path.split(binFullPath)
        File "/usr/lib/python2.7/posixpath.py", line 83:
          i = p.rfind('/') + 1

      The scripts should check that requires variables are not set, and print appropriate error (and ideally, suggest how to fix it)

        Attachments

          Activity

            People

            • Assignee:
              salnikov Andy Salnikov
              Reporter:
              fritzm Fritz Mueller
              Watchers:
              Andy Salnikov, Jacek Becla
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved:

                Summary Panel