Need to pip install passlib

Quinn Rohlf 8 year бұрын updated by Eugene Pankov (Project coordinator) 8 year бұрын 3

After following the instructions for installing on Ubuntu from the docs, I was having trouble with Ajenti not starting but saying it did. I tried starting it manually and got the following error:

$ /usr/bin/ajenti-panel

01.08.2013 01:18 INFO  Ajenti starting in foreground

Traceback (most recent call last):

  File "/usr/bin/ajenti-panel", line 85, in <module>

    from ajenti import core

  File "/usr/lib/pymodules/python2.7/ajenti/core.py", line 19, in <module>

    from ajenti.middleware import SessionMiddleware, AuthenticationMiddleware

  File "/usr/lib/pymodules/python2.7/ajenti/middleware.py", line 11, in <module>

    from ajenti.users import UserManager

  File "/usr/lib/pymodules/python2.7/ajenti/users.py", line 3, in <module>

    from passlib.hash import sha512_crypt

ImportError: No module named passlib.hash

To fix, I just did a 

$ apt-get install python-pip

$ pip install passlib

and Ajenti now runs just fine.

I suggest adding the steps

$ apt-get install python-pip

$ pip install passlib

to the document at http://docs.ajenti.org/man/install/ubuntu.html

as this is a necessary step to get Ajenti working on stock Ubuntu server