我有一个用 Python 2.7.5 编写的程序,我想转移到我托管在 WebFaction 上的帐户。在那里,我想使用 Pyramid 1.4/Python 2.7 来实现它。我已经安装了所有软件包,但似乎 Pyramid 本身有问题。我使用的软件包列表下方是我得到的错误。
md5, sys, os, tempfile, json, re, urllib2, time, multiprocessing requests
2013-10-18 21:37:48,821 ERROR [waitress][Dummy-1] Exception when serving /
Traceback (most recent call last):
File "/home/.../lib/python2.7/waitress/channel.py", line 329, in service
task.service()
File "/home/.../lib/python2.7/waitress/task.py", line 173, in service
self.execute()
File "/home/.../lib/python2.7/waitress/task.py", line 412, in execute
self.write(chunk)
File "/home/.../lib/python2.7/waitress/task.py", line 303, in write
channel.write_soon(towrite)
File "/home/.../lib/python2.7/waitress/channel.py", line 311, in write_soon
self.outbufs[-1].append(data)
File "/home/.../lib/python2.7/waitress/buffers.py", line 243, in append
self.strbuf = strbuf + s
TypeError: cannot concatenate 'str' and 'list' objects
有什么建议如何调试吗?