1

在生产服务器上使用 pip/install pyramid_mongodb 没有问题。然而,当涉及到 pyramid_jinja2 时,这个问题不断出现,让我抓狂。我使用过 pip/install 和 easy_install,但两者似乎都不起作用。

我正在使用python3.3

我应该如何解决这个问题?

root@vre [/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
4

1 回答 1

1

包更改日志文件中包含非 ascii 字符,从而中断包安装。我已经提交了一个关于这个的错误报告。

您必须与开发人员一起解决这个问题,或者改用 Python 2 或其他模板引擎。

于 2013-02-17T15:31:53.177 回答