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.




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.zabuaw...@enterprisedb.com <mailto:murtuza.zabuaw...@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/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.r...@gmail.com <mailto:malik.a.r...@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.r...@gmail.com <mailto:malik.a.r...@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/pgadmin4/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.zabuaw...@enterprisedb.com
            <mailto:murtuza.zabuaw...@enterprisedb.com>> wrote:

                Is there any specific reason for using sudo?
                (faruha) malikarumi@Tetuoan2:~/Projects/faruha/lib$
                *sudo* python
                python3.6/site-packages/pgadmin4/pgAdmin4.py

                Could you try & check,
                malikarumi@Tetuoan2:~/Projects/faruha/lib$python
                python3.6/site-packages/pgadmin4/pgAdmin4.py

                On Wed, Dec 13, 2017 at 11:00 AM, Malik Rumi
                <malik.a.r...@gmail.com
                <mailto:malik.a.r...@gmail.com>> wrote:

                    ...and if that doesn't work?


                    (faruha)
                    malikarumi@Tetuoan2:~/Projects/faruha/lib$ sudo
                    python python3.6/site-packages/pgadmin4/pgAdmin4.py
                    [sudo] password for malikarumi:
                    Traceback (most recent call last):
                      File
                    "python3.6/site-packages/pgadmin4/pgAdmin4.py",
                    line 34, in <module>
                    import config
                      File
                    
"/home/malikarumi/Projects/faruha/lib/python3.6/site-packages/pgadmin4/config.py",
                    line 30, in <module>
                        from pgadmin.utils import env, IS_PY2,
                    IS_WIN, fs_short_path
                      File
                    
"/home/malikarumi/Projects/faruha/lib/python3.6/site-packages/pgadmin4/pgadmin/__init__.py",
                    line 17, in <module>
                        from flask import Flask, abort, request,
                    current_app, session, url_for
                    ImportError: 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
                    ...
                    flask
                    Flask-0.11.1.dist-info
                    flask_babel
                    Flask_Babel-0.11.1-py3.6.egg-info
                    flask_babelex
                    Flask_BabelEx-0.9.3-py3.6.egg-info
                    flask_gravatar
                    Flask_Gravatar-0.4.2.dist-info
                    Flask_HTMLmin-1.2-py3.6.egg-info
                    flask_htmlmin.py
                    Flask_Login-0.3.2-py3.6.egg-info
                    flask_login.py
                    Flask_Mail-0.9.1-py3.6.egg-info
                    flask_mail.py
                    flask_migrate
                    Flask_Migrate-2.0.3-py3.6.egg-info
                    flask_paranoid
                    Flask_Paranoid-0.1.0-py3.6.egg-info
                    Flask_Principal-0.4.0-py3.6.eg
                    <http://Flask_Principal-0.4.0-py3.6.eg>g-info
                    flask_principal.py
                    flask_script
                    Flask_Script-2.0.6-py3.6.egg-info
                    flask_security
                    Flask_Security-1.7.5-py3.6.egg-info
                    flask_sqlalchemy
                    Flask_SQLAlchemy-2.1-py3.6.egg-info
                    flask_wtf
                    Flask_WTF-0.12-py3.6.egg-info

                    ...
                    pgadmin4
                    pgadmin4-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.zabuaw...@enterprisedb.com
                    <mailto:murtuza.zabuaw...@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

                        -- Murtuza

                        On Sat, Nov 18, 2017 at 8:36 AM, Malik Rumi
                        <malik.a.r...@gmail.com
                        <mailto:malik.a.r...@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
                            
<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
                            
<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
                            
<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.”/*










Reply via email to