Unicode bugs! Yay! What version of Ansible are you using for starters?
On Fri, Aug 15, 2014 at 1:15 AM, zperry <[email protected]> wrote: > I would like to install xmlrunner via the pip module to a KVM guest > running CentOS 6.5 with python34u installed from IUS Community repo. > > The following task include file always fails > > --- > > # Specifically, the xmlrunner for python3 is installed. > - name: Install xmlrunner > pip: > name=xmlrunner > executable=pip3 > use_mirrors=no > state=present > > [...] > > TASK: [development | Install xmlrunner] > *************************************** > failed: [teapot+centos6] => {"cmd": "/usr/bin/pip3 install xmlrunner", > "failed": true} > msg: stdout: Downloading/unpacking xmlrunner > Downloading xmlrunner-1.7.5.tar.gz > Running setup.py (path:/tmp/pip_build_root/xmlrunner/setup.py) egg_info > for package xmlrunner > Traceback (most recent call last): > File "<string>", line 17, in <module> > File "/tmp/pip_build_root/xmlrunner/setup.py", line 11, in <module> > exec(compile(open(xmlrunner_version).read(), xmlrunner_version, 'exec')) > 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 0xc2 in position 198: > ordinal not in range(128) > Complete output from command python setup.py egg_info: > Traceback (most recent call last): > > File "<string>", line 17, in <module> > > File "/tmp/pip_build_root/xmlrunner/setup.py", line 11, in <module> > > exec(compile(open(xmlrunner_version).read(), xmlrunner_version, 'exec')) > > 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 0xc2 in position 198: > ordinal not in range(128) > > ---------------------------------------- > Cleaning up... > Command python setup.py egg_info failed with error code 1 in > /tmp/pip_build_root/xmlrunner > Storing debug log for failure in /root/.pip/pip.log > > > FATAL: all hosts have already failed -- aborting > > PLAY RECAP > ******************************************************************** > to retry, use: --limit @/home/fangchin/development.retry > > teapot+centos6 : ok=1 changed=0 unreachable=0 failed=1 > > > But when I run pip3 install directory on CLI in bash, the installation > always succeeds: > > [root@centos6 ~]# pip3 install xmlrunner > > Downloading/unpacking xmlrunner > Downloading xmlrunner-1.7.5.tar.gz > Running setup.py (path:/tmp/pip_build_root/xmlrunner/setup.py) egg_info > for package xmlrunner > > Installing collected packages: xmlrunner > Running setup.py install for xmlrunner > > Successfully installed xmlrunner > Cleaning up... > [root@centos6 ~]# cat /etc/issue > CentOS release 6.5 (Final) > Kernel \r on an \m > > [root@centos6 ~]# > > I am quite puzzled why this is the case. BTW, when I used the default pip > (for python 2.6), the installation went on fine. > > --Zack > > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/41ea6cc7-0ad0-4d68-a6ed-87b54bee02c5%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/41ea6cc7-0ad0-4d68-a6ed-87b54bee02c5%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgw1tGtvNV6ffmuhnMK6YbOCB8isBzgQezGtP0mpOniBkg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
