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

python 3 error when running: templatekit list

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: templates
    • Labels:
      None
    • Team:
      Data Facility

      Description

      The following error can sometimes occur when running the command "templatekit list".

      RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment. Consult http://click.pocoo.org/python3/for mitigation steps.

      I believe the fix for this is the same to the error outlined in lsst-technode-bootstrap/README.rst

      To solve this, you need to set your shell's locale to use UTF-8.
      Type these lines into your shell:

      export LC_ALL=en_US.utf-8
      export LANG=en_US.utf-8

      This will work on macOS. Linux distributions may be different (try C.UTF-8).

        Attachments

          Activity

          Hide
          spietrowicz Steve Pietrowicz added a comment -

          I ran into an issue when trying to run {quote}templatekit list{quote} and remembered this was the same error that I had under cookiecutter when creating a new DMTN... which makes sense, since templatekit uses it.  

           

          I cribbed the note from the other repo and added that section here.

           

          Can you take a quick look at this to see if it looks ok to you?

          Show
          spietrowicz Steve Pietrowicz added a comment - I ran into an issue when trying to run {quote}templatekit list{quote} and remembered this was the same error that I had under cookiecutter when creating a new DMTN... which makes sense, since templatekit uses it.     I cribbed the note from the other repo and added that section here.   Can you take a quick look at this to see if it looks ok to you?
          Hide
          jsick Jonathan Sick added a comment -

          Thanks for this. I've put a couple comments in the PR.

          Show
          jsick Jonathan Sick added a comment - Thanks for this. I've put a couple comments in the PR.
          Hide
          spietrowicz Steve Pietrowicz added a comment -

          Thanks for the review!  I fixed everything you commented on in the PR, and merged.

          Show
          spietrowicz Steve Pietrowicz added a comment - Thanks for the review!  I fixed everything you commented on in the PR, and merged.

            People

            • Assignee:
              spietrowicz Steve Pietrowicz
              Reporter:
              spietrowicz Steve Pietrowicz
              Reviewers:
              Jonathan Sick
              Watchers:
              Jonathan Sick, Steve Pietrowicz
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel