我正在尝试使用名为 django-xhtml2pdf 的助手生成带有 xhtml2pdf 的 pdf,但我收到关于库 xhtml2pdf 的错误。你能帮助我吗?
这是错误。谢谢
SyntaxError at /
invalid syntax (util.py, line 302)
Request Method: GET
Request URL: http://localhost:8000/
Django Version: 1.7.7
Exception Type: SyntaxError
Exception Value:
invalid syntax (util.py, line 302)
Exception Location: /usr/lib/python3.4/site-packages/xhtml2pdf/__init__.py in <module>, line 41
Python Executable: /usr/bin/python
Python Version: 3.4.3
Python Path:
['/home/ed/syscat',
'/usr/lib/python34.zip',
'/usr/lib/python3.4',
'/usr/lib/python3.4/plat-linux',
'/usr/lib/python3.4/lib-dynload',
'/usr/lib/python3.4/site-packages']