Re: Installing pgAdmin 4 in Runtime Mode (stand alone) in Linux

From: Victor Milewski <victormilewski(at)gmail(dot)com>
To: Richard Greenwood <richard(dot)greenwood(at)gmail(dot)com>
Cc: "F(dot)Sluiter" <fsluiter(at)gmail(dot)com>, pgadmin-support(at)lists(dot)postgresql(dot)org
Subject: Re: Installing pgAdmin 4 in Runtime Mode (stand alone) in Linux
Date: 2017-11-24 13:26:04
Message-ID: CAECd_WBcjw3bsYDCWOBVsocd2Xh181wAAYZjM4wA66_o0nzdvg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Hi Rich,

This was another error resulting as an after effect from the formatting
error on our blog. The python2 and python3 libraries got mixed up while
building pgAdmin 4. Can you try and redo the whole process again? First
make sure the virtual environment is not active and remove both the virtual
environment and the pgAdmin4 directories:

deactivate
sudo rm -rf ~/virtualenvs/
sudo rm -rf ~/pgadmin4-2.0/
sudo rm -rf ~/.config/pgadmin/
sudo rm -rf ~/.pgadmin/

now follow the steps at
https://humandata.associates/blog/data-engineering/installing-pgadmin-4-runtime-mode

I hope everything will work now, please let us know!
Best,
Victor

On Nov 24, 2017 02:01, "Richard Greenwood" <richard(dot)greenwood(at)gmail(dot)com>
> wrote:
>
> Thanks for the write up. I've been using "Local Mode" and look forward to
> trying the runtime. I ran into a couple problems following your
> instructions. They are probably quite minor, but I am not a Python guy so I
> have no clue as to how to fix the problems.
> virtualenv -p python3 gives error:
> Already using interpreter /usr/bin/python3
> You must provide a DEST_DIR
> So I tried virtualenv -p python3 ~/virtualenvs/ which at least doesn't
> throw an error but I have no idea if that's correct.
>
> And finally, the moment of truth:
> $~/pgadmin4-2.0/runtime/pgAdmin4
> Python path:
> "/home/rich/virtualenvs/pgadmin4/lib/python3.5/site-packages/"
> Python Home: ""
> Webapp path: "/home/rich/pgadmin4-2.0/web/pgAdmin4.py"
> Traceback (most recent call last):
> File "/home/rich/pgadmin4-2.0/web/pgAdmin4.py", line 34, in <module>
> import config
> File "/home/rich/pgadmin4-2.0/web/config.py", line 30, in <module>
> from pgadmin.utils import env, IS_PY2, IS_WIN, fs_short_path
> File "/home/rich/pgadmin4-2.0/web/pgadmin/__init__.py", line 17, in
> <module>
> from flask import Flask, abort, request, current_app, session, url_for
> ImportError: No module named flask
>
> Rich
>
>
>
>
>
>
>
>
>
>
>
> On Thu, Nov 23, 2017 at 5:46 AM, F.Sluiter <fsluiter(at)gmail(dot)com> wrote:
>
>> As it was not very clearly documented anywhere, we would like to share
>> how best to install PGadmin 4 on linux Mint and Ubuntu 16.04 in a virtual
>> environment as a stand alone desktop application (without the use of a
>> browser!).
>>
>> PgAdmin 4 can be run in three ways:
>>
>> - Server Mode in a web interface
>> - Local Mode in a web interface
>> - Local Mode in a standalone/runtime environment
>> The difference between the web interface and the runtime environment, is
>> that for the first you require to work from a browser. Whereas with the
>> runtime environments it runs as any other application on your desktop. This
>> is achieved by using Qt5, which creates a wrapper of the application. This
>> is a feature provided by the pgAdmin 4 team. However, on Ubuntu it wasn't
>> pre-build. Installing PgAdmin 4 for a runtime environment is a bit more
>> tricky than the other two, mostly because up until now it was not very well
>> documented. Especially it was unclear which dependencies it has on Ubuntu
>> and which options it needs at startup. After following this guide, you
>> will be able to run pgAdmin 4 in any of the three options on Ubuntu 16.04,
>> Linux Mint, or other Debian flavours.
>>
>> Please find the installation guide here:
>>
>> https://humandata.associates/blog/data-engineering/installing-pgadmin-4-runtime-mode
>>
>> Hopefully someone can add the information to the pgadmin documentation
>> and even better turn this into one (or 3) debian packages...
>>
>>
>
>
> --
> Richard W. Greenwood, PLS
> www.greenwoodmap.com
>
>
>

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Victor Milewski 2017-11-24 13:34:19 Re: Installing pgAdmin 4 in Runtime Mode (stand alone) in Linux
Previous Message Jason Wang 2017-11-23 22:35:20 Re: Installing pgAdmin 4 in Runtime Mode (stand alone) in Linux