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

UnicodeDecodeError 0xe2 in letsencrypt-auto #127

Closed
Sjoerdjanssenen opened this issue Mar 1, 2016 · 8 comments
Closed

UnicodeDecodeError 0xe2 in letsencrypt-auto #127

Sjoerdjanssenen opened this issue Mar 1, 2016 · 8 comments

Comments

@Sjoerdjanssenen
Copy link

I just got this error on Laravel Forge. Thought I should paste it here.

peep: (3, 1, 1)
python: '2.7.11 (default, Dec 15 2015, 16:46:19) 
[GCC 4.8.4]'
pip: '1.5.4'
Command line:  ['/tmp/tmp.NzGgj8lhQl/peep.py', 'install', '-r', '/tmp/tmp.NzGgj8lhQl/letsencrypt-auto-requirements.txt']
Traceback (most recent call last):
  File "/tmp/tmp.NzGgj8lhQl/peep.py", line 967, in <module>
    exit(main())
  File "/tmp/tmp.NzGgj8lhQl/peep.py", line 939, in main
    return commands[argv[1]](argv[2:])
  File "/tmp/tmp.NzGgj8lhQl/peep.py", line 884, in peep_install
    req.install()
  File "/tmp/tmp.NzGgj8lhQl/peep.py", line 652, in install
    run_pip(['install'] + other_args + ['--no-deps', '-U', archive_path])
  File "/tmp/tmp.NzGgj8lhQl/peep.py", line 206, in run_pip
    status_code = pip.main(initial_args)
  File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/__init__.py", line 185, in main
    return command.main(cmd_args)
  File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/basecommand.py", line 161, in main
    text = '
'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 79: ordinal not in range(128)
@matthewlilley
Copy link

Same here

@singlow
Copy link

singlow commented Mar 2, 2016

I have this too. Related:
pyca/cryptography#2750

@JC5
Copy link

JC5 commented Mar 2, 2016

Same.

@DeltoidDelta
Copy link

Same issue here on 3.16.0-46-generic #6214.04.1-Ubuntu. This happened while trying to build OpenSSL (1.0.2g-1+deb.sury.orgtrusty+1).

creating build/temp.linux-x86_64-2.7/build
creating build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7

x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o

build/temp.linux-x86_64-2.7/_openssl.c:710:6: error: conflicting types for ‘BIO_new_mem_buf’
 BIO *BIO_new_mem_buf(void *, int);
      ^
In file included from /usr/include/openssl/asn1.h:65:0,
                 from build/temp.linux-x86_64-2.7/_openssl.c:426:
/usr/include/openssl/bio.h:692:6: note: previous declaration of ‘BIO_new_mem_buf’ was here
 BIO *BIO_new_mem_buf(const void *buf, int len);
      ^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

@DeltoidDelta
Copy link

Thank you for posting your solution of downgrading, @singlow. Your solution worked for me. Those of you who are still looking for a temporary solution, check this out.

certbot/certbot#2588

@erikrose erikrose changed the title Oh no! Peep had a problem while trying to do stuff. UnicodeDecodeError 0xe2 in letsencrypt-auto Mar 2, 2016
@erikrose
Copy link
Owner

erikrose commented Mar 2, 2016

Can you try upgrading to a newer version of pip and seeing if the problem goes away? I suspect 1.5.4 is causing the unicode error (and then the C build error is a separate thing).

@erikrose
Copy link
Owner

erikrose commented Mar 3, 2016

All of you tracking this issue might also (and more easily) try setting the env var LC_ALL=C while running letsencrypt-auto and see if that helps while we work on a better fix:

LC_ALL=C letsencrypt-auto ...

@matthewsuan matthewsuan mentioned this issue Mar 3, 2016
@erikrose
Copy link
Owner

erikrose commented Mar 4, 2016

I'm going to assume this is a pip error until somebody shows it still happens under the latest pip (in which case please reopen). We're working around it in certbot/certbot#2596.

@erikrose erikrose closed this as completed Mar 4, 2016
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

6 participants