Open drnuriev opened 4 years ago
Доброго времени суток! У меня аналогичная ситуация. Вы ее победили? Усли да поделитесь
Привет! Вам нужно установить мудуль из pip с названием email_validator:
$ pip install email_validator
Но скоере свего вы сталкнетесь в дальнейшем с ImportError: cannot import name secure_filename Как это вылечит пока не знаю.
You are using pip version 9.0.1, however version 20.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. (env) [root@asterisk-main astconfman]# cd astconfman (env) [root@asterisk-main astconfman]# ./manage.py init Traceback (most recent call last): File "./manage.py", line 6, in
from flask_security import utils
File "/var/www/html/astconfman/astconfman/env/lib/python2.7/site-packages/flask_security/init.py", line 13, in
from .core import Security, RoleMixin, UserMixin, AnonymousUser, current_user
File "/var/www/html/astconfman/astconfman/env/lib/python2.7/site-packages/flask_security/core.py", line 28, in
from .forms import ChangePasswordForm, ConfirmRegisterForm, \
File "/var/www/html/astconfman/astconfman/env/lib/python2.7/site-packages/flask_security/forms.py", line 69, in
email_validator = Email(message='INVALID_EMAIL_ADDRESS')
File "/var/www/html/astconfman/astconfman/env/lib/python2.7/site-packages/wtforms/validators.py", line 332, in init
raise Exception("Install 'email_validator' for email validation support.")
Exception: Install 'email_validator' for email validation support.
(env) [root@asterisk-main astconfman]# ./run.py
Traceback (most recent call last):
File "./run.py", line 4, in
from app import app
File "/var/www/html/astconfman/astconfman/app.py", line 12, in
from flask_security import Security, SQLAlchemyUserDatastore, \
File "/var/www/html/astconfman/astconfman/env/lib/python2.7/site-packages/flask_security/init.py", line 13, in
from .core import Security, RoleMixin, UserMixin, AnonymousUser, current_user
File "/var/www/html/astconfman/astconfman/env/lib/python2.7/site-packages/flask_security/core.py", line 28, in
from .forms import ChangePasswordForm, ConfirmRegisterForm, \
File "/var/www/html/astconfman/astconfman/env/lib/python2.7/site-packages/flask_security/forms.py", line 69, in
email_validator = Email(message='INVALID_EMAIL_ADDRESS')
File "/var/www/html/astconfman/astconfman/env/lib/python2.7/site-packages/wtforms/validators.py", line 332, in init
raise Exception("Install 'email_validator' for email validation support.")
Exception: Install 'email_validator' for email validation support.
(env) [root@asterisk-main astconfman]# ls -l /var/spool/
итого 28
drwxr-xr-x. 2 root root 4096 мар 31 2016 anacron
drwxr-xr-x 12 root root 4096 май 2 14:20 asterisk
drwx------. 2 root root 4096 мар 31 2016 cron
drwxr-xr-x. 2 root root 4096 авг 12 2015 lpd
drwxrwxr-x. 2 root mail 4096 май 4 02:00 mail
drwxr-xr-x. 2 root root 4096 ноя 20 2015 plymouth
drwxr-xr-x. 16 root root 4096 июл 12 2016 postfix
(env) [root@asterisk-main astconfman]#
На адрес http://192.168.3.23:5000/ не идет
[root@asterisk-main ~]# sudo netstat -tulpn | grep LISTEN tcp 0 0 0.0.0.0:873 0.0.0.0: LISTEN 2280/rsync tcp 0 0 0.0.0.0:3306 0.0.0.0: LISTEN 4071/mysqld tcp 0 0 127.0.0.1:5038 0.0.0.0: LISTEN 5064/asterisk tcp 0 0 0.0.0.0:111 0.0.0.0: LISTEN 1/systemd tcp 0 0 127.0.0.1:53 0.0.0.0: LISTEN 3947/named tcp 0 0 0.0.0.0:22 0.0.0.0: LISTEN 2586/sshd tcp 0 0 127.0.0.1:25 0.0.0.0: LISTEN 3993/master tcp 0 0 127.0.0.1:953 0.0.0.0: LISTEN 3947/named tcp 0 0 0.0.0.0:4445 0.0.0.0: LISTEN 5650/fop2_server tcp6 0 0 :::873 ::: LISTEN 2280/rsync tcp6 0 0 :::111 ::: LISTEN 1/systemd tcp6 0 0 :::80 ::: LISTEN 3388/httpd tcp6 0 0 :::2224 ::: LISTEN 2265/ruby tcp6 0 0 ::1:53 ::: LISTEN 3947/named tcp6 0 0 :::22 ::: LISTEN 2586/sshd tcp6 0 0 ::1:25 ::: LISTEN 3993/master tcp6 0 0 ::1:953 :::* LISTEN 3947/named [root@asterisk-main ~]#