FS#70855 - [pgadmin4] should depend python-email-validator
Attached to Project:
Community Packages
Opened by Daniel Hahler (blueyed) - Friday, 14 May 2021, 12:23 GMT
Last edited by Jelle van der Waa (jelly) - Sunday, 03 October 2021, 15:59 GMT
Opened by Daniel Hahler (blueyed) - Friday, 14 May 2021, 12:23 GMT
Last edited by Jelle van der Waa (jelly) - Sunday, 03 October 2021, 15:59 GMT
|
Details
Description:
Without python-email-validator `pgadmin4` fails to start: > "An error occurred initialising the pgAdmin 4 server:\n\nFailed to launch the application server, server thread exiting." Using `pgadmin4-server` directly shows: ``` % pgadmin4-server Traceback (most recent call last): File "/usr/lib/pgadmin4/web/pgAdmin4.py", line 35, in <module> import config File "/usr/lib/pgadmin4/web/config.py", line 25, in <module> from pgadmin.utils import env, IS_WIN, fs_short_path File "/usr/lib/pgadmin4/web/pgadmin/__init__.py", line 28, in <module> from flask_security import Security, SQLAlchemyUserDatastore, current_user File "/usr/lib/python3.9/site-packages/flask_security/__init__.py", line 16, in <module> from .core import Security, RoleMixin, UserMixin, AnonymousUser, current_user File "/usr/lib/python3.9/site-packages/flask_security/core.py", line 33, in <module> from .forms import ( File "/usr/lib/python3.9/site-packages/flask_security/forms.py", line 114, in <module> email_validator = Email(message="INVALID_EMAIL_ADDRESS") File "/usr/lib/python3.9/site-packages/flask_security/forms.py", line 82, in __init__ super(ValidatorMixin, self).__init__(*args, **kwargs) File "/usr/lib/python3.9/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. ``` Installing `python-email-validator` fixes this, but for some yet unknown reason the server still fails to come up for me. (this used to work before, and might actually be a problem with a dependency of `pgadmin4` instead, since the current version was installed at the beginning of February here already (and worked before). Note that pgadmin4 is flagged out of date, and upgrading it might also change/fix this already maybe. Additional info: * pgadmin4 4.30-1 Steps to reproduce: |
This task depends upon
Closed by Jelle van der Waa (jelly)
Sunday, 03 October 2021, 15:59 GMT
Reason for closing: Fixed
Additional comments about closing: python-flask-security-too now depends on python-email-validator.
Sunday, 03 October 2021, 15:59 GMT
Reason for closing: Fixed
Additional comments about closing: python-flask-security-too now depends on python-email-validator.
ERROR : Failed to create the directory /var/lib/pgadmin:
[Errno 13] Permission denied: '/var/lib/pgadmin'
HINT : Create the directory /var/lib/pgadmin, ensure it is writeable by
'riaqn', and try again, or, create a config_local.py file
and override the SQLITE_PATH setting per
https://www.pgadmin.org/docs/pgadmin4/4.30/config_py.html
Does using `pgadmin4` work for you then?
(also: have you used the package previously?)
(for me the DB is in `/home/user/.pgadmin/pgadmin4.db` apparently)