프로덕션 서버에서 pip/install pyramid_mongodb를 사용할 때 아무런 문제가 없습니다. 그러나 pyramid_jinja2에 관해서는이 문제가 계속 나타나고 그것이 나를 괴롭히는 원인이됩니다. 나는 pip/install과 easy_install을 사용했지만 둘 다 작동하지 않습니다.프로덕션 서버에 pyramid_jinja2를 설치할 때 오류가 발생했습니다.
저는 python3.3을 사용하고 있습니다.
어떻게 해결해야합니까?
[email protected] [/home/vrnet/public_html/env]# sudo -u vrnet ./bin/pip install pyramid_jinja2
Downloading/unpacking pyramid-jinja2
Running setup.py egg_info for package pyramid-jinja2
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/home/vrnet/public_html/env/build/pyramid-jinja2/setup.py", line 21, in <module>
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
File "/home/vrnet/public_html/env/lib64/python3.3/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 131: ordinal not in range(128)
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/home/vrnet/public_html/env/build/pyramid-jinja2/setup.py", line 21, in <module>
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
File "/home/vrnet/public_html/env/lib64/python3.3/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 131: ordinal not in range(128)
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /home/vrnet/public_html/env/build/pyramid-jinja2
이상한 문제. 나는 파이썬 3.3을 사용하고 있는데 ** easy_install **과 ** pip **를 사용하여 이것을 재현 할 수 없다. – Tshepang
CentOS 64에서 운영되는 프로덕션 서버에서도 python3.3을 실행하고 있습니다. root @ vre [/ home/vrnet/public_html/env] # sudo -u vrnet ./bin/easy_install pyramid_jinja2를 사용해 보았습니다. 그것은 여전히 동일한 문제입니다 : 파일 "/home/vrnet/public_html/env/lib64/python3.3/encodings/ascii.py", 26 행, 디코드 – Gino