Pregunta

He instalado Lamson través easy_install en mi webfaction alojamiento compartido. Fue a hacer la segunda introducción '30'(Ver http://lamsonproject.org/docs/getting_started.html ) pero después de:

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

Puedo obtener:

    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

Soy muy nuevo programador. Te lo agradecería un poco de ayuda de depuración.

¿Fue útil?

Solución

Ya hay un boleto para el problema aquí: http://support.lamsonproject.org/tktview ? name = 06d488141d

http://pypi.python.org/pypi/lockfile/0.8 0.9.1 como de API cambios ruptura python_daemon-1.5.5-py2.5.egg / daemon / pidlockfile.py. 0.9.1 viene con easy_install. Por lo tanto, no es un problema con lamson.

Para resolver: suprimir fichero de bloqueo 0.9.1 de su site-packages de Python y obtener 0,8 de la tienda de quesos en su lugar.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top