Re: [pgadmin-hackers] [pgadmin-support] How to clean off all python stuff - Mailing list pgadmin-hackers

From Neel Patel
Subject Re: [pgadmin-hackers] [pgadmin-support] How to clean off all python stuff
Date
Msg-id CACCA4P2v2S3Xdbc2=kmnSgoH6_a-kfGJwBN6JL-yFOYfUEM=Yg@mail.gmail.com
Whole thread Raw
In response to Re: [pgadmin-hackers] [pgadmin-support] How to clean off all python stuff  (Neel Patel <neel.patel@enterprisedb.com>)
List pgadmin-hackers
looping pgadmin-hackers...

As you are running desktop application but it's not finding python path and required modules.
You need to export PYTHONPATH to where it installed all the required packages needed by application.

Thanks,
Neel Patel

On Mon, Mar 6, 2017 at 5:30 PM, marcelo <marcelo.nicolet@gmail.com> wrote:
Hi Neel

Error messages follow

marcelo@lubuntu-15-04:~/postgres-extensions/pgadmin4-1.2/runtime$ ./pgAdmin4
/usr/share/themes/Lubuntu-default/gtk-2.0/apps/thunar.rc:55: error: invalid string constant "thunar-statusbar", expected valid string constant
Python path:  ""
Python Home:  "/home/marcelo/postgres-extensions/pgadmin4-1.2/venv"
Webapp path:  "/home/marcelo/postgres-extensions/pgadmin4-1.2/web/pgAdmin4.py"
Traceback (most recent call last):
  File "/home/marcelo/postgres-extensions/pgadmin4-1.2/web/pgAdmin4.py", line 14, in <module>
    import os
ImportError: No module named os
"Failed to launch the application server, server thread exiting."

Simultaneously, a little window inform me more or less the same thing.
After that window acknowledged, another one titled Configuration asked for the python path (/usr/bin in my installation) and the app path (/home/marcelo/postgres-extensions/pgadmin4-1.2/runtime); the same repeat again and again.




On 06/03/17 08:42, Neel Patel wrote:
Hi,

Always loop pgadmin-hackers while replying email thread.

Can you please share the errors while running application ?

Thanks,
Neel Patel

On Mon, Mar 6, 2017 at 2:06 PM, marcelo <marcelo.nicolet@gmail.com> wrote:
Hi

Of course I read the README, and followed it until these indications  (pint 6)

(pgadmin4) $ python $PGADMIN4_SRC/web/setup.py

   or by starting pgAdmin 4:

    (pgadmin4) $ python $PGADMIN4_SRC/web/pgAdmin4.py

at line ~ 150 of the file.

And was there where the build/setup process crushed, because some obscure errors on Flask installation.

Could I edit some cpp modules and cut off all the python crap?

TIA

On 06/03/17 00:34, Neel Patel wrote:
Hi Marcelo,

To run the pgAdmin4 as desktop application, you need to build 'runtime' located at PGADMIN_SOURCE/runtime.
How to build the runtime - Please refer 'Building the Runtime' section in 'README file under PGADMIN_SOURCE.

Let us know if you are finding difficulties in building runtime.

Thanks,
Neel Patel

On Mon, Mar 6, 2017 at 4:00 AM, marcelo <marcelo.nicolet@gmail.com> wrote:
Hi
Nice effort done on pgAdmin4.
I can compile it from source (for Lubuntu 15.04), but cannot execute it because of flask and some other python hell. (I don't like nor use python, except when it's embedded in some app I need).
Cannot install flask because some error on pip.
I don't need a web version; some polite desktop is enough for me.
Could someone give me some guidelines regarding which modules to edit to compile it exclusively as desktop for Linux?
TIA
Marcelo


--
Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-support





pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: Re: [pgadmin-hackers] [Design Update][History]
Next
From: Dave Page
Date:
Subject: [pgadmin-hackers] pgAdmin 4 commit: Bump version prior to release.