+6

Ajenti V error: ImportError: cannot import name b

Plamen Kostov 7 years ago updated by Álvaro J. “Prompt” Martín Lópe 6 years ago 6

Hello Ajenti !

I currently installed fresh Ajenti/ Ajenti V on fresh DigitalOcean's CentOS droplet.

First when i install Ajenti, it was working, but when I install Ajenti V:


[root@hostname~]# service ajenti restart
Restarting ajenti (via systemctl): [ OK ]
[root@hostname~]# ajenti-panel -v
29.03.2017 08:53 ajenti-panel:105 INFO Using config file /etc/ajenti/config.json
29.03.2017 08:53 ajenti-panel:130 INFO Ajenti starting in foreground
Traceback (most recent call last):
File "/usr/bin/ajenti-panel", line 137, in <module>
from ajenti import core
File "/usr/lib/python2.7/site-packages/ajenti/core.py", line 21, in <module>
from ajenti.middleware import SessionMiddleware, AuthenticationMiddleware
File "/usr/lib/python2.7/site-packages/ajenti/middleware.py", line 11, in <module>
from ajenti.users import UserManager
File "/usr/lib/python2.7/site-packages/ajenti/users.py", line 3, in <module>
from passlib.hash import sha512_crypt
File "/usr/lib/python2.7/site-packages/passlib/hash.py", line 22, in <module>
from passlib.registry import _proxy
File "/usr/lib/python2.7/site-packages/passlib/registry.py", line 11, in <module>
from passlib.utils import is_crypt_handler
File "/usr/lib/python2.7/site-packages/passlib/utils/__init__.py", line 32, in <module>
from passlib.utils.compat import add_doc, b, bytes, join_bytes, join_byte_values, \
ImportError: cannot import name b


What can I do?

Thanks

I have the same problem, was a fix found?

Same here! I've posted a bug report. It'd probably be helpful if you all post there, too. I'm using CentOS 7. The OP mentioned CentOS. Are you all using CentOS 7? Or do we have some variety here? https://github.com/ajenti/ajenti/issues/1065

any solution? I got same error :(

Same here! Got this problem after Ajenti reinstall.

Unfortunately I'm blocked... first I thought Ajenti latest version contains the web server admin tools, as Ajenti V, I got it running after some manual pip commands. Then when I realised that AjentiV is what I need I install via yum, fixes some stuff as the project coordinator says and stuck here also


# ajenti-panel -v

16.03.2018 14:33 ajenti-panel:105              INFO  Using config file /etc/ajenti/config.json

16.03.2018 14:33 ajenti-panel:130              INFO  Ajenti starting in foreground

Traceback (most recent call last):

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

    from ajenti import core

  File "/usr/lib/python2.7/site-packages/ajenti/core.py", line 21, in <module>

    from ajenti.middleware import SessionMiddleware, AuthenticationMiddleware

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

    from ajenti.users import UserManager

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

    from passlib.hash import sha512_crypt

  File "/usr/lib/python2.7/site-packages/passlib/hash.py", line 22, in <module>

    from passlib.registry import _proxy

  File "/usr/lib/python2.7/site-packages/passlib/registry.py", line 11, in <module>

    from passlib.utils import is_crypt_handler

  File "/usr/lib/python2.7/site-packages/passlib/utils/__init__.py", line 32, in <module>

    from passlib.utils.compat import add_doc, b, bytes, join_bytes, join_byte_values, \

ImportError: cannot import name b