Thread: flask again
For reasons unrelated to pga4, I had to reinstall it in a new venv. I am now on Python 3.6.3 and Ubuntu 16.04, and I am working with pga4.2.0, which is a newer version than I had before, and which worked with Python 3.5. I am getting the import error related to flask that I have seen many other posts about, but none of the solutions work for me.
Flask and PGA4 are side by side in the same site-packages. They were all installed at the same time, as was libpq-dev and python-dev https://stackoverflow.com/questions/41260004/error-trying-to-run-pgadmin4
They are in the same venv: http://www.postgresql-archive.org/pgadmin4-1-6-python-wheel-doesn-t-work-under-Ubuntu-Server-16-04-LTS-td5971865.html
I have seen no errors related to "yarn" or "qt": http://www.postgresql-archive.org/v2-0-rc1-not-starting-runtime-not-building-td5982724.html
What is my solution? Thank you.
“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”
Make sure that you have activated correct virtual environment in which you have installed all your python dependencies before running python pgAdmin4.py
-- Murtuza
On Sat, Nov 18, 2017 at 8:36 AM, Malik Rumi <malik.a.rumi@gmail.com> wrote:
For reasons unrelated to pga4, I had to reinstall it in a new venv. I am now on Python 3.6.3 and Ubuntu 16.04, and I am working with pga4.2.0, which is a newer version than I had before, and which worked with Python 3.5. I am getting the import error related to flask that I have seen many other posts about, but none of the solutions work for me.Flask and PGA4 are side by side in the same site-packages. They were all installed at the same time, as was libpq-dev and python-dev https://stackoverflow.com/questions/41260004/error- trying-to-run-pgadmin4 They are in the same venv: http://www.postgresql-archive.org/pgadmin4-1-6- python-wheel-doesn-t-work- under-Ubuntu-Server-16-04-LTS- td5971865.html I have seen no errors related to "yarn" or "qt": http://www.postgresql-archive.org/v2-0-rc1-not- starting-runtime-not-building- td5982724.html What is my solution? Thank you.“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”
++ Adding pgadmin-support
Please keep the group in loop.
On Wed, Dec 13, 2017 at 11:12 AM, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote:
Is there any specific reason for using sudo?(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ sudo python python3.6/site-packages/pgadmi n4/pgAdmin4.py Could you try & check,malikarumi@Tetuoan2:~/Projects/faruha/lib$python python3.6/site-packages/pgadmi n4/pgAdmin4.py On Wed, Dec 13, 2017 at 11:00 AM, Malik Rumi <malik.a.rumi@gmail.com> wrote:...and if that doesn't work?(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ sudo python python3.6/site-packages/pgadmi n4/pgAdmin4.py [sudo] password for malikarumi:Traceback (most recent call last):File "python3.6/site-packages/pgadmin4/pgAdmin4.py", line 34, in <module> import configFile "/home/malikarumi/Projects/faruha/lib/python3.6/site-package s/pgadmin4/config.py", line 30, in <module> from pgadmin.utils import env, IS_PY2, IS_WIN, fs_short_pathFile "/home/malikarumi/Projects/faruha/lib/python3.6/site-package s/pgadmin4/pgadmin/__init__. py", line 17, in <module> from flask import Flask, abort, request, current_app, session, url_forImportError: No module named flask(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ cd python3.6 (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6$ ls site-packages(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6$ cd site-packages (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site- packages$ ls ...flaskFlask-0.11.1.dist-infoflask_babelFlask_Babel-0.11.1-py3.6.egg-info flask_babelexFlask_BabelEx-0.9.3-py3.6.egg-info flask_gravatarFlask_Gravatar-0.4.2.dist-infoFlask_HTMLmin-1.2-py3.6.egg-info flask_htmlmin.pyFlask_Login-0.3.2-py3.6.egg-info flask_login.pyFlask_Mail-0.9.1-py3.6.egg-info flask_mail.pyflask_migrateFlask_Migrate-2.0.3-py3.6.egg-info flask_paranoidFlask_Paranoid-0.1.0-py3.6.egg-info flask_principal.pyflask_scriptFlask_Script-2.0.6-py3.6.egg-info flask_securityFlask_Security-1.7.5-py3.6.egg-info flask_sqlalchemyFlask_SQLAlchemy-2.1-py3.6.egg-info flask_wtfFlask_WTF-0.12-py3.6.egg-info...pgadmin4pgadmin4-2.0.dist-info...(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site- packages$ (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site- packages$ flask Usage: flask [OPTIONS] COMMAND [ARGS]...This shell command acts as general utility script for Flask applications.(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site- packages$ export FLASK_APP=hello.py (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site- packages$ flask run * Serving Flask app "hello"* Running on http://127.0.0.1:5000/“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”On Fri, Nov 17, 2017 at 8:12 PM, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote: Make sure that you have activated correct virtual environment in which you have installed all your python dependencies before running python pgAdmin4.py-- MurtuzaOn Sat, Nov 18, 2017 at 8:36 AM, Malik Rumi <malik.a.rumi@gmail.com> wrote:For reasons unrelated to pga4, I had to reinstall it in a new venv. I am now on Python 3.6.3 and Ubuntu 16.04, and I am working with pga4.2.0, which is a newer version than I had before, and which worked with Python 3.5. I am getting the import error related to flask that I have seen many other posts about, but none of the solutions work for me.Flask and PGA4 are side by side in the same site-packages. They were all installed at the same time, as was libpq-dev and python-dev https://stackoverflow.com/questions/41260004/error-trying-t o-run-pgadmin4 They are in the same venv: http://www.postgresql-archive.org/pgadmin4-1-6-python- wheel-doesn-t-work-under-Ubunt u-Server-16-04-LTS-td5971865.h tml I have seen no errors related to "yarn" or "qt": http://www.postgresql-archive.org/v2-0-rc1-not-startin g-runtime-not-building-td59827 24.html What is my solution? Thank you.“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”
sorry, not sure why the support group got dropped from reply,,,
“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”
On Tue, Dec 12, 2017 at 10:00 PM, Malik Rumi <malik.a.rumi@gmail.com> wrote:
>> Is there any specific reason for using sudo?Yes: PermissionError: [Errno 13] Permission denied: '/var/lib/pgadmin'<<>>>> Could you try & check,>> malikarumi@Tetuoan2:~/Projects/faruha/lib$python python3.6/site-packages/pgadmi n4/pgAdmin4.py (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ python python3.6/site-packages/ pgadmin4/pgAdmin4.py Traceback (most recent call last):File "python3.6/site-packages/pgadmin4/pgAdmin4.py", line 55, in <module> exec(open(file_quote(setupfile), 'r').read()) File "<string>", line 46, in <module>File "/home/malikarumi/Projects/faruha/lib/python3.6/site- packages/pgadmin4/pgadmin/ setup/data_directory.py", line 23, in create_app_data_directory _create_directory_if_not_exists(os.path.dirname(config. SQLITE_PATH)) File "/home/malikarumi/Projects/faruha/lib/python3.6/site- packages/pgadmin4/pgadmin/ setup/data_directory.py", line 15, in _create_directory_if_not_ exists os.mkdir(_path)PermissionError: [Errno 13] Permission denied: '/var/lib/pgadmin'(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ “None of you has faith until he loves for his brother or his neighbor what he loves for himself.”On Tue, Dec 12, 2017 at 9:42 PM, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote: Is there any specific reason for using sudo?(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ sudo python python3.6/site-packages/pgadmi n4/pgAdmin4.py Could you try & check,malikarumi@Tetuoan2:~/Projects/faruha/lib$python python3.6/site-packages/pgadmi n4/pgAdmin4.py On Wed, Dec 13, 2017 at 11:00 AM, Malik Rumi <malik.a.rumi@gmail.com> wrote:...and if that doesn't work?(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ sudo python python3.6/site-packages/pgadmi n4/pgAdmin4.py [sudo] password for malikarumi:Traceback (most recent call last):File "python3.6/site-packages/pgadmin4/pgAdmin4.py", line 34, in <module> import configFile "/home/malikarumi/Projects/faruha/lib/python3.6/site-package s/pgadmin4/config.py", line 30, in <module> from pgadmin.utils import env, IS_PY2, IS_WIN, fs_short_pathFile "/home/malikarumi/Projects/faruha/lib/python3.6/site-package s/pgadmin4/pgadmin/__init__.py ", line 17, in <module> from flask import Flask, abort, request, current_app, session, url_forImportError: No module named flask(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ cd python3.6 (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6$ ls site-packages(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6$ cd site-packages (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site-pac kages$ ls ...flaskFlask-0.11.1.dist-infoflask_babelFlask_Babel-0.11.1-py3.6.egg-info flask_babelexFlask_BabelEx-0.9.3-py3.6.egg-info flask_gravatarFlask_Gravatar-0.4.2.dist-infoFlask_HTMLmin-1.2-py3.6.egg-info flask_htmlmin.pyFlask_Login-0.3.2-py3.6.egg-info flask_login.pyFlask_Mail-0.9.1-py3.6.egg-info flask_mail.pyflask_migrateFlask_Migrate-2.0.3-py3.6.egg-info flask_paranoidFlask_Paranoid-0.1.0-py3.6.egg-info flask_principal.pyflask_scriptFlask_Script-2.0.6-py3.6.egg-info flask_securityFlask_Security-1.7.5-py3.6.egg-info flask_sqlalchemyFlask_SQLAlchemy-2.1-py3.6.egg-info flask_wtfFlask_WTF-0.12-py3.6.egg-info...pgadmin4pgadmin4-2.0.dist-info...(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site-pac kages$ (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site-pac kages$ flask Usage: flask [OPTIONS] COMMAND [ARGS]...This shell command acts as general utility script for Flask applications.(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site-pac kages$ export FLASK_APP=hello.py (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site-pac kages$ flask run * Serving Flask app "hello"* Running on http://127.0.0.1:5000/“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”On Fri, Nov 17, 2017 at 8:12 PM, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote: Make sure that you have activated correct virtual environment in which you have installed all your python dependencies before running python pgAdmin4.py-- MurtuzaOn Sat, Nov 18, 2017 at 8:36 AM, Malik Rumi <malik.a.rumi@gmail.com> wrote:For reasons unrelated to pga4, I had to reinstall it in a new venv. I am now on Python 3.6.3 and Ubuntu 16.04, and I am working with pga4.2.0, which is a newer version than I had before, and which worked with Python 3.5. I am getting the import error related to flask that I have seen many other posts about, but none of the solutions work for me.Flask and PGA4 are side by side in the same site-packages. They were all installed at the same time, as was libpq-dev and python-dev https://stackoverflow.com/questions/41260004/error-trying-t o-run-pgadmin4 They are in the same venv: http://www.postgresql-archive.org/pgadmin4-1-6-python- wheel-doesn-t-work-under-Ubunt u-Server-16-04-LTS-td5971865.h tml I have seen no errors related to "yarn" or "qt": http://www.postgresql-archive.org/v2-0-rc1-not-startin g-runtime-not-building-td59827 24.html What is my solution? Thank you.“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”
No need to run it as sudo just provide the permission to user for that path,
chown -R malikarumi:root /var/lib/pgadmin
And if the folder does not exists then,
sudo mkdir "/var/log/pgadmin"
sudo chmod a+wrx "/var/log/pgadmin"
sudo mkdir "/var/lib/pgadmin"
sudo chmod a+wrx "/var/lib/pgadmin"
On Wed, Dec 13, 2017 at 11:31 AM, Malik Rumi <malik.a.rumi@gmail.com> wrote:
sorry, not sure why the support group got dropped from reply,,,“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”On Tue, Dec 12, 2017 at 10:00 PM, Malik Rumi <malik.a.rumi@gmail.com> wrote:>> Is there any specific reason for using sudo?Yes: PermissionError: [Errno 13] Permission denied: '/var/lib/pgadmin'<<>>>> Could you try & check,>> malikarumi@Tetuoan2:~/Projects/faruha/lib$python python3.6/site-packages/pgadmi n4/pgAdmin4.py (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ python python3.6/site-packages/pgadmi n4/pgAdmin4.py Traceback (most recent call last):File "python3.6/site-packages/pgadmin4/pgAdmin4.py", line 55, in <module> exec(open(file_quote(setupfile), 'r').read()) File "<string>", line 46, in <module>File "/home/malikarumi/Projects/faruha/lib/python3.6/site-package s/pgadmin4/pgadmin/setup/data_ directory.py", line 23, in create_app_data_directory _create_directory_if_not_exists(os.path.dirname(config.SQLIT E_PATH)) File "/home/malikarumi/Projects/faruha/lib/python3.6/site-package s/pgadmin4/pgadmin/setup/data_ directory.py", line 15, in _create_directory_if_not_exist s os.mkdir(_path)PermissionError: [Errno 13] Permission denied: '/var/lib/pgadmin'(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ “None of you has faith until he loves for his brother or his neighbor what he loves for himself.”On Tue, Dec 12, 2017 at 9:42 PM, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote: Is there any specific reason for using sudo?(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ sudo python python3.6/site-packages/pgadmi n4/pgAdmin4.py Could you try & check,malikarumi@Tetuoan2:~/Projects/faruha/lib$python python3.6/site-packages/pgadmi n4/pgAdmin4.py On Wed, Dec 13, 2017 at 11:00 AM, Malik Rumi <malik.a.rumi@gmail.com> wrote:...and if that doesn't work?(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ sudo python python3.6/site-packages/pgadmi n4/pgAdmin4.py [sudo] password for malikarumi:Traceback (most recent call last):File "python3.6/site-packages/pgadmin4/pgAdmin4.py", line 34, in <module> import configFile "/home/malikarumi/Projects/faruha/lib/python3.6/site-package s/pgadmin4/config.py", line 30, in <module> from pgadmin.utils import env, IS_PY2, IS_WIN, fs_short_pathFile "/home/malikarumi/Projects/faruha/lib/python3.6/site-package s/pgadmin4/pgadmin/__init__.py ", line 17, in <module> from flask import Flask, abort, request, current_app, session, url_forImportError: No module named flask(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ cd python3.6 (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6$ ls site-packages(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6$ cd site-packages (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site-pac kages$ ls ...flaskFlask-0.11.1.dist-infoflask_babelFlask_Babel-0.11.1-py3.6.egg-info flask_babelexFlask_BabelEx-0.9.3-py3.6.egg-info flask_gravatarFlask_Gravatar-0.4.2.dist-infoFlask_HTMLmin-1.2-py3.6.egg-info flask_htmlmin.pyFlask_Login-0.3.2-py3.6.egg-info flask_login.pyFlask_Mail-0.9.1-py3.6.egg-info flask_mail.pyflask_migrateFlask_Migrate-2.0.3-py3.6.egg-info flask_paranoidFlask_Paranoid-0.1.0-py3.6.egg-info flask_principal.pyflask_scriptFlask_Script-2.0.6-py3.6.egg-info flask_securityFlask_Security-1.7.5-py3.6.egg-info flask_sqlalchemyFlask_SQLAlchemy-2.1-py3.6.egg-info flask_wtfFlask_WTF-0.12-py3.6.egg-info...pgadmin4pgadmin4-2.0.dist-info...(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site-pac kages$ (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site-pac kages$ flask Usage: flask [OPTIONS] COMMAND [ARGS]...This shell command acts as general utility script for Flask applications.(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site-pac kages$ export FLASK_APP=hello.py (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site-pac kages$ flask run * Serving Flask app "hello"* Running on http://127.0.0.1:5000/“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”On Fri, Nov 17, 2017 at 8:12 PM, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote: Make sure that you have activated correct virtual environment in which you have installed all your python dependencies before running python pgAdmin4.py-- MurtuzaOn Sat, Nov 18, 2017 at 8:36 AM, Malik Rumi <malik.a.rumi@gmail.com> wrote:For reasons unrelated to pga4, I had to reinstall it in a new venv. I am now on Python 3.6.3 and Ubuntu 16.04, and I am working with pga4.2.0, which is a newer version than I had before, and which worked with Python 3.5. I am getting the import error related to flask that I have seen many other posts about, but none of the solutions work for me.Flask and PGA4 are side by side in the same site-packages. They were all installed at the same time, as was libpq-dev and python-dev https://stackoverflow.com/questions/41260004/error-trying-t o-run-pgadmin4 They are in the same venv: http://www.postgresql-archive.org/pgadmin4-1-6-python- wheel-doesn-t-work-under-Ubunt u-Server-16-04-LTS-td5971865.h tml I have seen no errors related to "yarn" or "qt": http://www.postgresql-archive.org/v2-0-rc1-not-startin g-runtime-not-building-td59827 24.html What is my solution? Thank you.“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”
That did it! Both lib/ and log/ were missing, but now I am in!
Thx wa shokran.
“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”
On Tue, Dec 12, 2017 at 10:15 PM, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote:
No need to run it as sudo just provide the permission to user for that path,chown -R malikarumi:root /var/lib/pgadminAnd if the folder does not exists then,sudo mkdir "/var/log/pgadmin"sudo chmod a+wrx "/var/log/pgadmin"sudo mkdir "/var/lib/pgadmin"sudo chmod a+wrx "/var/lib/pgadmin"On Wed, Dec 13, 2017 at 11:31 AM, Malik Rumi <malik.a.rumi@gmail.com> wrote:sorry, not sure why the support group got dropped from reply,,,“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”On Tue, Dec 12, 2017 at 10:00 PM, Malik Rumi <malik.a.rumi@gmail.com> wrote:>> Is there any specific reason for using sudo?Yes: PermissionError: [Errno 13] Permission denied: '/var/lib/pgadmin'<<>>>> Could you try & check,>> malikarumi@Tetuoan2:~/Projects/faruha/lib$python python3.6/site-packages/pgadmi n4/pgAdmin4.py (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ python python3.6/site-packages/pgadmi n4/pgAdmin4.py Traceback (most recent call last):File "python3.6/site-packages/pgadmin4/pgAdmin4.py", line 55, in <module> exec(open(file_quote(setupfile), 'r').read()) File "<string>", line 46, in <module>File "/home/malikarumi/Projects/faruha/lib/python3.6/site-package s/pgadmin4/pgadmin/setup/data_ directory.py", line 23, in create_app_data_directory _create_directory_if_not_exists(os.path.dirname(config.SQLIT E_PATH)) File "/home/malikarumi/Projects/faruha/lib/python3.6/site-package s/pgadmin4/pgadmin/setup/data_ directory.py", line 15, in _create_directory_if_not_exist s os.mkdir(_path)PermissionError: [Errno 13] Permission denied: '/var/lib/pgadmin'(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ “None of you has faith until he loves for his brother or his neighbor what he loves for himself.”On Tue, Dec 12, 2017 at 9:42 PM, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote: Is there any specific reason for using sudo?(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ sudo python python3.6/site-packages/pgadmi n4/pgAdmin4.py Could you try & check,malikarumi@Tetuoan2:~/Projects/faruha/lib$python python3.6/site-packages/pgadmi n4/pgAdmin4.py On Wed, Dec 13, 2017 at 11:00 AM, Malik Rumi <malik.a.rumi@gmail.com> wrote:...and if that doesn't work?(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ sudo python python3.6/site-packages/pgadmi n4/pgAdmin4.py [sudo] password for malikarumi:Traceback (most recent call last):File "python3.6/site-packages/pgadmin4/pgAdmin4.py", line 34, in <module> import configFile "/home/malikarumi/Projects/faruha/lib/python3.6/site-package s/pgadmin4/config.py", line 30, in <module> from pgadmin.utils import env, IS_PY2, IS_WIN, fs_short_pathFile "/home/malikarumi/Projects/faruha/lib/python3.6/site-package s/pgadmin4/pgadmin/__init__.py ", line 17, in <module> from flask import Flask, abort, request, current_app, session, url_forImportError: No module named flask(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ cd python3.6 (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6$ ls site-packages(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6$ cd site-packages (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site-pac kages$ ls ...flaskFlask-0.11.1.dist-infoflask_babelFlask_Babel-0.11.1-py3.6.egg-info flask_babelexFlask_BabelEx-0.9.3-py3.6.egg-info flask_gravatarFlask_Gravatar-0.4.2.dist-infoFlask_HTMLmin-1.2-py3.6.egg-info flask_htmlmin.pyFlask_Login-0.3.2-py3.6.egg-info flask_login.pyFlask_Mail-0.9.1-py3.6.egg-info flask_mail.pyflask_migrateFlask_Migrate-2.0.3-py3.6.egg-info flask_paranoidFlask_Paranoid-0.1.0-py3.6.egg-info flask_principal.pyflask_scriptFlask_Script-2.0.6-py3.6.egg-info flask_securityFlask_Security-1.7.5-py3.6.egg-info flask_sqlalchemyFlask_SQLAlchemy-2.1-py3.6.egg-info flask_wtfFlask_WTF-0.12-py3.6.egg-info...pgadmin4pgadmin4-2.0.dist-info...(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site-pac kages$ (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site-pac kages$ flask Usage: flask [OPTIONS] COMMAND [ARGS]...This shell command acts as general utility script for Flask applications.(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site-pac kages$ export FLASK_APP=hello.py (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site-pac kages$ flask run * Serving Flask app "hello"* Running on http://127.0.0.1:5000/“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”On Fri, Nov 17, 2017 at 8:12 PM, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote: Make sure that you have activated correct virtual environment in which you have installed all your python dependencies before running python pgAdmin4.py-- MurtuzaOn Sat, Nov 18, 2017 at 8:36 AM, Malik Rumi <malik.a.rumi@gmail.com> wrote:For reasons unrelated to pga4, I had to reinstall it in a new venv. I am now on Python 3.6.3 and Ubuntu 16.04, and I am working with pga4.2.0, which is a newer version than I had before, and which worked with Python 3.5. I am getting the import error related to flask that I have seen many other posts about, but none of the solutions work for me.Flask and PGA4 are side by side in the same site-packages. They were all installed at the same time, as was libpq-dev and python-dev https://stackoverflow.com/questions/41260004/error-trying-t o-run-pgadmin4 They are in the same venv: http://www.postgresql-archive.org/pgadmin4-1-6-python- wheel-doesn-t-work-under-Ubunt u-Server-16-04-LTS-td5971865.h tml I have seen no errors related to "yarn" or "qt": http://www.postgresql-archive.org/v2-0-rc1-not-startin g-runtime-not-building-td59827 24.html What is my solution? Thank you.“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”
Hi,
Considering python dependencies, paths, and related etc are the bane of installing pgadmin4, I would suggest the developers start looking at how certbot from the letsencrypt project handles it., it just seems to 'always work'.
On 12/13/2017 01:26 AM, Malik Rumi wrote:
Considering python dependencies, paths, and related etc are the bane of installing pgadmin4, I would suggest the developers start looking at how certbot from the letsencrypt project handles it., it just seems to 'always work'.
On 12/13/2017 01:26 AM, Malik Rumi wrote:
That did it! Both lib/ and log/ were missing, but now I am in!Thx wa shokran.“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”On Tue, Dec 12, 2017 at 10:15 PM, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote:No need to run it as sudo just provide the permission to user for that path,chown -R malikarumi:root /var/lib/pgadminAnd if the folder does not exists then,sudo mkdir "/var/log/pgadmin"sudo chmod a+wrx "/var/log/pgadmin"sudo mkdir "/var/lib/pgadmin"sudo chmod a+wrx "/var/lib/pgadmin"On Wed, Dec 13, 2017 at 11:31 AM, Malik Rumi <malik.a.rumi@gmail.com> wrote:sorry, not sure why the support group got dropped from reply,,,“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”On Tue, Dec 12, 2017 at 10:00 PM, Malik Rumi <malik.a.rumi@gmail.com> wrote:>> Is there any specific reason for using sudo?Yes: PermissionError: [Errno 13] Permission denied: '/var/lib/pgadmin'<<>>>> Could you try & check,>> malikarumi@Tetuoan2:~/Projects/faruha/lib$python python3.6/site-packages/pgadmi n4/pgAdmin4.py (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ python python3.6/site-packages/pgadmi n4/pgAdmin4.py Traceback (most recent call last):File "python3.6/site-packages/pgadmin4/pgAdmin4.py", line 55, in <module> exec(open(file_quote(setupfile), 'r').read()) File "<string>", line 46, in <module>File "/home/malikarumi/Projects/faruha/lib/python3.6/site-package s/pgadmin4/pgadmin/setup/data_ directory.py", line 23, in create_app_data_directory _create_directory_if_not_exists(os.path.dirname(config.SQLIT E_PATH)) File "/home/malikarumi/Projects/faruha/lib/python3.6/site-package s/pgadmin4/pgadmin/setup/data_ directory.py", line 15, in _create_directory_if_not_exist s os.mkdir(_path)PermissionError: [Errno 13] Permission denied: '/var/lib/pgadmin'(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ “None of you has faith until he loves for his brother or his neighbor what he loves for himself.”On Tue, Dec 12, 2017 at 9:42 PM, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote: Is there any specific reason for using sudo?(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ sudo python python3.6/site-packages/pgadmi n4/pgAdmin4.py Could you try & check,malikarumi@Tetuoan2:~/Projects/faruha/lib$python python3.6/site-packages/pgadmi n4/pgAdmin4.py On Wed, Dec 13, 2017 at 11:00 AM, Malik Rumi <malik.a.rumi@gmail.com> wrote:...and if that doesn't work?(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ sudo python python3.6/site-packages/pgadmi n4/pgAdmin4.py [sudo] password for malikarumi:Traceback (most recent call last):File "python3.6/site-packages/pgadmin4/pgAdmin4.py", line 34, in <module> import configFile "/home/malikarumi/Projects/faruha/lib/python3.6/site-package s/pgadmin4/config.py", line 30, in <module> from pgadmin.utils import env, IS_PY2, IS_WIN, fs_short_pathFile "/home/malikarumi/Projects/faruha/lib/python3.6/site-package s/pgadmin4/pgadmin/__init__.py ", line 17, in <module> from flask import Flask, abort, request, current_app, session, url_forImportError: No module named flask(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ cd python3.6 (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6$ ls site-packages(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6$ cd site-packages (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site-pac kages$ ls ...flaskFlask-0.11.1.dist-infoflask_babelFlask_Babel-0.11.1-py3.6.egg-info flask_babelexFlask_BabelEx-0.9.3-py3.6.egg-info flask_gravatarFlask_Gravatar-0.4.2.dist-infoFlask_HTMLmin-1.2-py3.6.egg-info flask_htmlmin.pyFlask_Login-0.3.2-py3.6.egg-info flask_login.pyFlask_Mail-0.9.1-py3.6.egg-info flask_mail.pyflask_migrateFlask_Migrate-2.0.3-py3.6.egg-info flask_paranoidFlask_Paranoid-0.1.0-py3.6.egg-info flask_principal.pyflask_scriptFlask_Script-2.0.6-py3.6.egg-info flask_securityFlask_Security-1.7.5-py3.6.egg-info flask_sqlalchemyFlask_SQLAlchemy-2.1-py3.6.egg-info flask_wtfFlask_WTF-0.12-py3.6.egg-info...pgadmin4pgadmin4-2.0.dist-info...(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site-pac kages$ (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site-pac kages$ flask Usage: flask [OPTIONS] COMMAND [ARGS]...This shell command acts as general utility script for Flask applications.(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site-pac kages$ export FLASK_APP=hello.py (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site-pac kages$ flask run * Serving Flask app "hello"* Running on http://127.0.0.1:5000/“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”On Fri, Nov 17, 2017 at 8:12 PM, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote: Make sure that you have activated correct virtual environment in which you have installed all your python dependencies before running python pgAdmin4.py-- MurtuzaOn Sat, Nov 18, 2017 at 8:36 AM, Malik Rumi <malik.a.rumi@gmail.com> wrote:For reasons unrelated to pga4, I had to reinstall it in a new venv. I am now on Python 3.6.3 and Ubuntu 16.04, and I am working with pga4.2.0, which is a newer version than I had before, and which worked with Python 3.5. I am getting the import error related to flask that I have seen many other posts about, but none of the solutions work for me.Flask and PGA4 are side by side in the same site-packages. They were all installed at the same time, as was libpq-dev and python-dev https://stackoverflow.com/questions/41260004/error-trying-t o-run-pgadmin4 They are in the same venv: http://www.postgresql-archive.org/pgadmin4-1-6-python- wheel-doesn-t-work-under-Ubunt u-Server-16-04-LTS-td5971865.h tml I have seen no errors related to "yarn" or "qt": http://www.postgresql-archive.org/v2-0-rc1-not-startin g-runtime-not-building-td59827 24.html What is my solution? Thank you.“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”
Has anyone considered making a snappy package for pgadmin4 so that casual users can use it?
https://en.wikipedia.org/wiki/Snappy_(package_manager)
Considering that even a fairly new distro like debian jessie doesn't have pgadmin4, it would definitely help speed up adoption.
https://en.wikipedia.org/wiki/Snappy_(package_manager)
Considering that even a fairly new distro like debian jessie doesn't have pgadmin4, it would definitely help speed up adoption.
On 12/16/17 1:30 PM, Mark Murawski wrote:
Hi,
Considering python dependencies, paths, and related etc are the bane of installing pgadmin4, I would suggest the developers start looking at how certbot from the letsencrypt project handles it., it just seems to 'always work'.
On 12/13/2017 01:26 AM, Malik Rumi wrote:That did it! Both lib/ and log/ were missing, but now I am in!Thx wa shokran.“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”On Tue, Dec 12, 2017 at 10:15 PM, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote:No need to run it as sudo just provide the permission to user for that path,chown -R malikarumi:root /var/lib/pgadminAnd if the folder does not exists then,sudo mkdir "/var/log/pgadmin"sudo chmod a+wrx "/var/log/pgadmin"sudo mkdir "/var/lib/pgadmin"sudo chmod a+wrx "/var/lib/pgadmin"On Wed, Dec 13, 2017 at 11:31 AM, Malik Rumi <malik.a.rumi@gmail.com> wrote:sorry, not sure why the support group got dropped from reply,,,“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”On Tue, Dec 12, 2017 at 10:00 PM, Malik Rumi <malik.a.rumi@gmail.com> wrote:>> Is there any specific reason for using sudo?Yes: PermissionError: [Errno 13] Permission denied: '/var/lib/pgadmin'<<>>>> Could you try & check,>> malikarumi@Tetuoan2:~/Projects/faruha/lib$python python3.6/site-packages/pgadmi n4/pgAdmin4.py (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ python python3.6/site-packages/pgadmi n4/pgAdmin4.py Traceback (most recent call last):File "python3.6/site-packages/pgadmin4/pgAdmin4.py", line 55, in <module> exec(open(file_quote(setupfile), 'r').read()) File "<string>", line 46, in <module>File "/home/malikarumi/Projects/faruha/lib/python3.6/site-package s/pgadmin4/pgadmin/setup/data_ directory.py", line 23, in create_app_data_directory _create_directory_if_not_exists(os.path.dirname(config.SQLIT E_PATH)) File "/home/malikarumi/Projects/faruha/lib/python3.6/site-package s/pgadmin4/pgadmin/setup/data_ directory.py", line 15, in _create_directory_if_not_exist s os.mkdir(_path)PermissionError: [Errno 13] Permission denied: '/var/lib/pgadmin'(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ “None of you has faith until he loves for his brother or his neighbor what he loves for himself.”On Tue, Dec 12, 2017 at 9:42 PM, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote: Is there any specific reason for using sudo?(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ sudo python python3.6/site-packages/pgadmi n4/pgAdmin4.py Could you try & check,malikarumi@Tetuoan2:~/Projects/faruha/lib$python python3.6/site-packages/pgadmi n4/pgAdmin4.py On Wed, Dec 13, 2017 at 11:00 AM, Malik Rumi <malik.a.rumi@gmail.com> wrote:...and if that doesn't work?(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ sudo python python3.6/site-packages/pgadmi n4/pgAdmin4.py [sudo] password for malikarumi:Traceback (most recent call last):File "python3.6/site-packages/pgadmin4/pgAdmin4.py", line 34, in <module> import configFile "/home/malikarumi/Projects/faruha/lib/python3.6/site-package s/pgadmin4/config.py", line 30, in <module> from pgadmin.utils import env, IS_PY2, IS_WIN, fs_short_pathFile "/home/malikarumi/Projects/faruha/lib/python3.6/site-package s/pgadmin4/pgadmin/__init__.py ", line 17, in <module> from flask import Flask, abort, request, current_app, session, url_forImportError: No module named flask(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$ cd python3.6 (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6$ ls site-packages(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6$ cd site-packages (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site-pac kages$ ls ...flaskFlask-0.11.1.dist-infoflask_babelFlask_Babel-0.11.1-py3.6.egg-info flask_babelexFlask_BabelEx-0.9.3-py3.6.egg-info flask_gravatarFlask_Gravatar-0.4.2.dist-infoFlask_HTMLmin-1.2-py3.6.egg-info flask_htmlmin.pyFlask_Login-0.3.2-py3.6.egg-info flask_login.pyFlask_Mail-0.9.1-py3.6.egg-info flask_mail.pyflask_migrateFlask_Migrate-2.0.3-py3.6.egg-info flask_paranoidFlask_Paranoid-0.1.0-py3.6.egg-info flask_principal.pyflask_scriptFlask_Script-2.0.6-py3.6.egg-info flask_securityFlask_Security-1.7.5-py3.6.egg-info flask_sqlalchemyFlask_SQLAlchemy-2.1-py3.6.egg-info flask_wtfFlask_WTF-0.12-py3.6.egg-info...pgadmin4pgadmin4-2.0.dist-info...(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site-pac kages$ (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site-pac kages$ flask Usage: flask [OPTIONS] COMMAND [ARGS]...This shell command acts as general utility script for Flask applications.(faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site-pac kages$ export FLASK_APP=hello.py (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib/python3.6/site-pac kages$ flask run * Serving Flask app "hello"* Running on http://127.0.0.1:5000/“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”On Fri, Nov 17, 2017 at 8:12 PM, Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com> wrote: Make sure that you have activated correct virtual environment in which you have installed all your python dependencies before running python pgAdmin4.py-- MurtuzaOn Sat, Nov 18, 2017 at 8:36 AM, Malik Rumi <malik.a.rumi@gmail.com> wrote:For reasons unrelated to pga4, I had to reinstall it in a new venv. I am now on Python 3.6.3 and Ubuntu 16.04, and I am working with pga4.2.0, which is a newer version than I had before, and which worked with Python 3.5. I am getting the import error related to flask that I have seen many other posts about, but none of the solutions work for me.Flask and PGA4 are side by side in the same site-packages. They were all installed at the same time, as was libpq-dev and python-dev https://stackoverflow.com/questions/41260004/error-trying-t o-run-pgadmin4 They are in the same venv: http://www.postgresql-archive.org/pgadmin4-1-6-python- wheel-doesn-t-work-under-Ubunt u-Server-16-04-LTS-td5971865.h tml I have seen no errors related to "yarn" or "qt": http://www.postgresql-archive.org/v2-0-rc1-not-startin g-runtime-not-building-td59827 24.html What is my solution? Thank you.“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”