Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

setup.py fails under some conditions due to encoding issues #26

Open
alexntt opened this issue Dec 2, 2016 · 0 comments
Open

setup.py fails under some conditions due to encoding issues #26

alexntt opened this issue Dec 2, 2016 · 0 comments

Comments

@alexntt
Copy link

alexntt commented Dec 2, 2016

Mostly creating this so if someone has the same problem this will show up in Google

Collecting SOAPpy (from servicenow->nms-servicenow-replica==0.0.1a1480522484)
  Downloading SOAPpy-0.12.22.zip (172kB)
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File \"<string>\", line 1, in <module>
      File \"/tmp/pip-build-fuwjy0sg/SOAPpy/setup.py\", line 17, in <module>
        +'\\n'+read('CHANGES.txt')
      File \"/tmp/pip-build-fuwjy0sg/SOAPpy/setup.py\", line 12, in read
        os.path.join('.', *rnames)
      File \"/usr/lib64/python3.4/encodings/ascii.py\", line 26, in decode
        return codecs.ascii_decode(input, self.errors)[0]
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 842: ordinal not in range(128)

We have this issue when running pip3 install soappy through Ansible executing in our Jenkins server, we have found out that adding:

export LANG="en_US.UTF-8"
export LANGUAGE="en_US:en"

to Ansible's environment fixes the issue, previously Jenkins had LANG=C.UTF-8 and no LANGUAGE set

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant