I've installed postgresql 9.6 (using suggested linux installer) which comes with pgAdmin4, but getting a few errors.
First, I had to change the folder name from "pgAdmin 4" (note the extra space) to "pgAdmin4" to avoid "file not found error".
Then I run sudo python pgAdmin4.py
and got the following error:
Traceback (most recent call last):
File "../../pgAdmin4.py", line 24, in <module>
from pgadmin import create_app
File "/opt/PostgreSQL/9.6/pgAdmin4/web/pgadmin/__init__.py", line 17, in <module>
from flask import Flask, abort, request, current_app
ImportError: No module named flask
I tried following this related question: Flask ImportError: No Module Named Flask -- managed to installed flask on virtualenv.
But then I started getting other flask related modules that are missing: flask_babel, flask_login, flask_security. I installed all of them using pip, but then I got an error on missing module htmlmin.minify
which I can't seems to able to install.
Traceback (most recent call last):
File "../pgAdmin4.py", line 24, in <module>
from pgadmin import create_app
File "/opt/PostgreSQL/9.6/pgAdmin4/web/pgadmin/__init__.py", line 23, in <module>
from htmlmin.minify import html_minify
ImportError: No module named htmlmin.minify
I also exported PYTHONPATH to the one on flask, as described here, still getting the same error.
So, anyone have an idea how to make pgAdmin4 work on ubuntu environemt?