新月質問スレ

新月

14709f24 anonymous 2015-11-08 14:12
github の最新を clone して、設定ファイルを適当にしつらえて、sakuフォルだ内で実行すると jinja2 のインポートでエラーが出る。

~/shingetsu/saku $ ./saku
Traceback (most recent call last):
  File "./saku", line 35, in <module>
    import shingetsu.daemon as daemon
  File "/home/my/shingetsu/saku/shingetsu/daemon.py", line 35, in <module>
    from . import httpd
  File "/home/my/shingetsu/saku/shingetsu/httpd.py", line 37, in <module>
    from . import LightCGIHTTPServer
  File "/home/my/shingetsu/saku/shingetsu/LightCGIHTTPServer.py", line 40, in <module>
    from . import admin_cgi, server_cgi, gateway_cgi, thread_cgi
  File "/home/my/shingetsu/saku/shingetsu/admin_cgi.py", line 35, in <module>
    from . import gateway
  File "/home/my/shingetsu/saku/shingetsu/gateway.py", line 45, in <module>
    from .template import Template
  File "/home/my/shingetsu/saku/shingetsu/template.py", line 33, in <module>
    import jinja2
  File "/home/my/shingetsu/saku/jinja2/__init__.py", line 33, in <module>
    from jinja2.environment import Environment, Template
  File "/home/my/shingetsu/saku/jinja2/environment.py", line 13, in <module>
    from jinja2 import nodes
  File "/home/my/shingetsu/saku/jinja2/nodes.py", line 18, in <module>
    from jinja2.utils import Markup, MethodType, FunctionType
  File "/home/my/shingetsu/saku/jinja2/utils.py", line 585, in <module>
    from markupsafe import Markup, escape, soft_unicode
  File "/usr/local/lib/python3.2/dist-packages/markupsafe/__init__.py", line 70
    def __new__(cls, base=u'', encoding=None, errors='strict'):
                            ^
SyntaxError: invalid syntax

$ python3 -V
Python 3.2.3

で、環境は Raspbian wheezy on Raspberry Pi。こは、いかに。

Top of this page. | <<last 0 1 2 3 | Archive | Mobile

limit: 1536KB

新月

(新月質問スレ/200/0.2MB)

Powered by shinGETsu.