在生产服务器上安装pyramid_jinja2时出错

时间:2013-02-17 15:29:26

标签: python-3.x pyramid

我在生产服务器上使用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

1 个答案:

答案 0 :(得分:1)

软件包更改日志在文件中包含非ASCII字符,从而破坏软件包安装。我filed a bug report对此有所了解。

您必须与开发人员合作,或转而使用Python 2或其他模板引擎。