From: | stancs3 <scruise56(at)gmail(dot)com> |
---|---|
To: | Dave Page <dpage(at)pgadmin(dot)org> |
Cc: | pgAdmin Support <pgadmin-support(at)postgresql(dot)org>, Devrim GÜNDÜZ <devrim(at)gunduz(dot)org> |
Subject: | Re: 4th Try: pgadmin4 install, launch fail |
Date: | 2017-01-30 22:34:59 |
Message-ID: | 1485815699.30211.175.camel@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-support |
Many thanks for the reply Dave! I feel a bit like that message that
Firefox diplays after crashing, the embarrassment one.
Anyway here is what I did:
xxxxxxxxxx pgadmin4-web]$ python3 setup.py
pgAdmin 4 - Application Initialisation
======================================
The configuration database - '/home/xxxxxx/.pgadmin/pgadmin4.db' does
not exist.
Entering initial setup mode...
NOTE: Configuring authentication for DESKTOP mode.
The configuration database has been created at
/home/xxxxxx/.pgadmin/pgadmin4.db
xxxxxxxxx pgadmin4-web]$ python3 ./pgAdmin4.py
Starting pgAdmin 4. Please navigate to http://localhost:5050 in your
browser.
>> And it works nicely in the web browser <<
Maybe I should just be happy, but I was trying to get it working as a
desktop app.
I tried changing the exec in the desktop app launcher to be prefixed
with python3 but that did not help. The error is:
"An error occurred initialising the application server:
Failed to locate pgAdmin5.py, terminating server thread."
I feel I am so close .... is there some further advice on this last
part.
Thanks again,
Stan
On Mon, 2017-01-30 at 10:10 +0000, Dave Page wrote:
> Hi
>
> On Mon, Jan 30, 2017 at 1:23 AM, stancs3 <scruise56(at)gmail(dot)com> wrote:
> >
> > Please don't take my note as complaint; you guys are a tremendous
> > asset
> > to the pg world. pgadmin3 has been brilliant for me.
> >
> >
> > This is my 4th attempt to install and launch pgadmin4.
> >
> > I started with a clean VM Fedora 25.
> >
> > I installed the pgdg yum repo.
> >
> > I installed pgadmin4-v1. No issues.
> >
> > I followed the notes on pgadmin 4.1.1 Documentation Getting
> > Started,
> > created config_local.py.
> >
> > The stuff below is what happened.
> Note that the RPMs are still a WIP at this point, but...
>
> >
> > ran python setup.py - fail. (note, the clean install put it in
> > python3.5 - why are we seeing 2.7 below?)
> >
> > python setup.py
> > Traceback (most recent call last):
> > File "setup.py", line 21, in <module>
> > from flask import Flask
> > File "/usr/lib/python2.7/site-packages/flask/__init__.py", line
> > 17,
> > in <module>
> > from werkzeug.exceptions import abort
> > ImportError: No module named werkzeug.exceptions
> Presumably "python" on your system points to a 2.7 interpreter. You
> should try "python3 setup.py" or whatever is appropriate.
>
> >
> > >
> > > >
> > > > I had manually installed Flash due to a previous error, but the
> > above then occurred.
> >
> >
> > ran pgAdmin4.py - fail.
> >
> > [xxxxxxxx pgadmin4-web]$ ./pgAdmin4.py
> > ./pgAdmin4.py: line 12: $'This is the main application entry point
> > for pgAdmin 4. If running on\na webserver, this will provide the
> > WSGI interface, otherwise, we\'re going\nto start a web server.':
> > command not found
> > ./pgAdmin4.py: line 14: import: command not found
> > ./pgAdmin4.py: line 15: import: command not found
> > ./pgAdmin4.py: line 19: syntax error near unexpected token `('
> > ./pgAdmin4.py: line 19: `root =
> > os.path.dirname(os.path.realpath(__file__))'
> You need to run "python3 pgAdmin4.py" as there's no hashbang line in
> the script (which was intentional, but I don't suppose it would hurt
> to add one).
>
> >
> > I tried simply launching the executable in the run dir, but it
> > could not find pgAdmin4.py. I altered the .ini file to point
> > exactly to the dir where pgAgmin4.py is, but same error.
> The .ini file is for configuring the desktop runtime. It won't have
> any effect on the Python code.
>
From | Date | Subject | |
---|---|---|---|
Next Message | Devrim Gündüz | 2017-01-30 22:47:47 | Re: 4th Try: pgadmin4 install, launch fail |
Previous Message | Yang, Ruo | 2017-01-30 17:13:00 | New pgAdmin User |