Hi all,
I've tried to install pgadmin4 from apt.postgresql.org and get the error below.
I'm no python expert but both python-flask and python3-flask packages are installed.
Would appreciate any thoughts on what I should try next
I suspect it’s because Christoph build the packages using Python 3. I don’t know how to make that default on Ubuntu (or even if you can), but try something like:
python3 /path/to/pgAdmin4.py
Thanks
Tony Bazeley
tonbaz@muscat:~$ pgadmin4
Python path: ""
Python Home: ""
Webapp path: "/usr/share/pgadmin4/web/pgAdmin4.py"
Traceback (most recent call last):
File "/usr/share/pgadmin4/web/pgAdmin4.py", line 34, in <module>
import config
File "/usr/share/pgadmin4/web/config.py", line 30, in <module>
from pgadmin.utils import env, IS_PY2, IS_WIN, fs_short_path
File "/usr/share/pgadmin4/web/pgadmin/__init__.py", line 17, in <module>
from flask import Flask, abort, request, current_app, session, url_for
ImportError: No module named 'flask'