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

copyright.py breaks on Python 3.6+

    Details

    • Templates:
    • Story Points:
      1
    • Sprint:
      AP F18-4
    • Team:
      Alert Production

      Description

      Running the copyright.py file provided at https://developer.lsst.io/legal/copyright-overview.html#background gives the following exception:

      Traceback (most recent call last):
        File "copyright.py", line 190, in <module>
          for line in log.split("\n"):
      TypeError: a bytes-like object is required, not 'str'
      

      Adding an explicit encoding to the call that creates log fixes the problem.

        Attachments

          Activity

            People

            • Assignee:
              krzys Krzysztof Findeisen
              Reporter:
              krzys Krzysztof Findeisen
              Reviewers:
              Kian-Tat Lim
              Watchers:
              Kian-Tat Lim, Krzysztof Findeisen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel