1

我已经在我的 webfaction 共享主机上通过 easy_install 安装了 Lamson。去做'30秒介绍'(见http://lamsonproject.org/docs/getting_started.html)但之后:

[almacmillan@web129 python2.6]$ lamson gen -project mymailserver

我得到:

    Traceback (most recent call last):
  File "/home/almacmillan/bin/lamson", line 5, in <module>
    pkg_resources.run_script('lamson==1.0', 'lamson')
  File "/usr/local/lib/python2.6/site-packages/pkg_resources.py", line 448, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/local/lib/python2.6/site-packages/pkg_resources.py", line 1166, in run_script
    execfile(script_filename, namespace, namespace)
  File "/home/almacmillan/lib/python2.6/lamson-1.0-py2.6.egg/EGG-INFO/scripts/lamson", line 3, in <module>
    from lamson import args, commands
  File "/home/almacmillan/lib/python2.6/lamson-1.0-py2.6.egg/lamson/commands.py", line 28, in <module>
    from lamson import server, args, utils, mail, routing, queue, encoding
  File "/home/almacmillan/lib/python2.6/lamson-1.0-py2.6.egg/lamson/utils.py", line 12, in <module>
    from daemon import pidlockfile
  File "/home/almacmillan/lib/python2.6/python_daemon-1.5.5-py2.6.egg/daemon/pidlockfile.py", line 33, in <module>
    class PIDLockFile(LinkFileLock, object):
TypeError: Error when calling the metaclass bases
    function() argument 1 must be code, not str

我是一个非常新的程序员。我真的很感激一些调试帮助。

4

1 回答 1

3

这里已经有问题的票:http: //support.lamsonproject.org/tktview ?name=06d488141d

使用http://pypi.python.org/pypi/lockfile/0.8作为 0.9.1 的 API 更改会破坏 python_daemon-1.5.5-py2.5.egg/daemon/pidlockfile.py。0.9.1 带有easy_install。所以,这不是lamson的问题。

解决方法:从 Python 站点包中删除 lockfile 0.9.1,然后从奶酪店获取 0.8。

于 2010-10-06T19:47:13.807 回答