Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bgvPH-0008BE-TP for pgadmin-hackers@arkaria.postgresql.org; Mon, 05 Sep 2016 15:01:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bgvPH-0004IZ-CJ for pgadmin-hackers@arkaria.postgresql.org; Mon, 05 Sep 2016 15:01:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bgvPG-0004IR-Vl for pgadmin-hackers@postgresql.org; Mon, 05 Sep 2016 15:01:55 +0000 Received: from mail-it0-x232.google.com ([2607:f8b0:4001:c0b::232]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bgvPC-0005mF-Qr for pgadmin-hackers@postgresql.org; Mon, 05 Sep 2016 15:01:54 +0000 Received: by mail-it0-x232.google.com with SMTP id c198so150849565ith.1 for ; Mon, 05 Sep 2016 08:01:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=UWegCbqeGcAGTx/4XYmQVqHNnI15T9E6+4B/ue2Krnw=; b=MFd8jiMfjZrvqC6SVjEu2mzKIOmSG85vUXG8SEyNILP8EbEo2IzY8N/ZPBc2o7FU9g m2lKnxXdDH3d3Jez2MAO52kvgn+W5l12D7M0zhqUCNcKO+vZjpxEnsfxZH7R5rndymYw K1JHevshPSY+ep5iJjOK8CNNDf7NOca/oZIMqEodQEmfCzoLBs+bQoFJNaAKG5T6aRlB 82X1eV5p42tVJuXX1Nl6RxInAINRlAmfHRdiOXNP9HCkyq6OCNaaXBxcYzLvYZgd0g6c Di+xqTyJNubqYQDSRB2y2YWRFAAImjVHqxQ1UvvL2FKy/UwnOwkrCfP8UAI9EwpqKqw1 dXIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=UWegCbqeGcAGTx/4XYmQVqHNnI15T9E6+4B/ue2Krnw=; b=UwzL5TzzLhhIMJ+nZt8t78zm4zVWGb/9fI440PKIPkUDlSctIWnh6PlGcVd019PG+3 uu6hlxII/m96ZKJHPOqoiqIbiX2xQ2+mp6xdif96iF4H2TPkdEK2dEWoeYZ2UIwOPZhV 8fztD7Wcy5hkjRr59nkW+V2895h+aafYiBpUf80f8oNaeazuoTnDyZ7jmf2kEptyT9zg kr0IS+LFV1D6vFiQUQMHLWmjWG8ip6zMvJp5cNfLYszplVN2qyTaudGRQ6KIpDNo7omJ mlyuOSB1Mv9ykBzrXizLQ6LRHqsb7E3rdiblKuYYyWM9EmEPZXp2tUXFwU3VoO54jMma eOXQ== X-Gm-Message-State: AE9vXwOpQUQ9tJ4+gcBTkE56xa5wrrouEcDShqLiEnfxDQZX+aADab/C9NINykpXbRcdiJ3lcQLyqwOfhQjnFjwp X-Received: by 10.36.189.77 with SMTP id x74mr628499ite.18.1473087708529; Mon, 05 Sep 2016 08:01:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.50.212 with HTTP; Mon, 5 Sep 2016 08:01:28 -0700 (PDT) In-Reply-To: References: From: Ashesh Vashi Date: Mon, 5 Sep 2016 20:31:28 +0530 Message-ID: Subject: Re: pgAdmin 4 as Web application To: Albe Laurenz Cc: "Dave Page *EXTERN*" , "pgadmin-hackers@postgresql.org" Content-Type: multipart/alternative; boundary=94eb2c19df24971a0c053bc3f5bb X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org --94eb2c19df24971a0c053bc3f5bb Content-Type: text/plain; charset=UTF-8 On Mon, Sep 5, 2016 at 8:15 PM, Albe Laurenz wrote: > Dave Page wrote: > >>>> mod_wsgi (pid=20880): Target WSGI script > '/opt/pgadmin4/pgAdmin4.wsgi' cannot be loaded as Python module. > >>>> mod_wsgi (pid=20880): Exception occurred processing WSGI script > '/opt/pgadmin4/pgAdmin4.wsgi'. > >>>> Traceback (most recent call last): > >>>> File "/opt/pgadmin4/pgAdmin4.wsgi", line 8, in > >>>> from pgAdmin4 import app as application > >>>> File "/opt/pgadmin4/pgAdmin4.py", line 58, in > >>>> app = create_app() > >>>> File "/opt/pgadmin4/pgadmin/__init__.py", line 204, in create_app > >>>> import pgadmin.utils.paths as paths > >>>> AttributeError: 'module' object has no attribute 'paths' > >>>> > >>>> Indeed there is no pgadmin/utils/paths directory with a __init__.py > in it. > >>> > >>> No, but there should be a pgadmin/utils/paths.py file. Is that there? > >> > >> Yes, there is, and it is readable to everyone. > >> > >> I don't know much about Python - could it be that version 2.7 handles > this > >> line differently from 3? > > > > No - I do all my development on 2.7 and it works fine (as do most of > > the other devs I believe). 3.x is definitely less well tested, and 2.6 > > is behind that. > > > > Ashesh, any ideas what could be causing this? > I can think of existing .pyc files, which can cause this kind of problems. -- Thanks & Regards, Ashesh Vashi EnterpriseDB INDIA: Enterprise PostgreSQL Company *http://www.linkedin.com/in/asheshvashi* > > Must have been something weird; a web server restart fixed the problem. > > Thanks for the help; it is working now. > > I'm kind of surprised that pgAdmin4 is already a release candidate, I still > find lots of bugs just randomly clicking around. > I'll report them of course. > > Yours, > Laurenz Albe > --94eb2c19df24971a0c053bc3f5bb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Mon, Sep 5, 2016 at 8:15 PM, Albe Laurenz <laurenz.albe@wien= .gv.at> wrote:

Dave Page wrote:
>>>> mod_wsgi (pid=3D20880): Target WSGI script '/opt/pgadm= in4/pgAdmin4.wsgi' cannot be loaded as Python module.
>>>> mod_wsgi (pid=3D20880): Exception occurred processing WSGI= script '/opt/pgadmin4/pgAdmin4.wsgi'.
>>>> Traceback (most recent call last):
>>>>=C2=A0 =C2=A0File "/opt/pgadmin4/pgAdmin4.wsgi", = line 8, in <module>
>>>>=C2=A0 =C2=A0 =C2=A0from pgAdmin4 import app as application=
>>>>=C2=A0 =C2=A0File "/opt/pgadmin4/pgAdmin4.py", li= ne 58, in <module>
>>>>=C2=A0 =C2=A0 =C2=A0app =3D create_app()
>>>>=C2=A0 =C2=A0File "/opt/pgadmin4/pgadmin/__init__= .py", line 204, in create_app
>>>>=C2=A0 =C2=A0 =C2=A0import pgadmin.utils.paths as paths
>>>> AttributeError: 'module' object has no attribute &= #39;paths'
>>>>
>>>> Indeed there is no pgadmin/utils/paths directory with a __= init__.py in it.
>>>
>>> No, but there should be a pgadmin/utils/paths.py file. Is that= there?
>>
>> Yes, there is, and it is readable to everyone.
>>
>> I don't know much about Python - could it be that version 2.7 = handles this
>> line differently from 3?
>
> No - I do all my development on 2.7 and it works fine (as do most of > the other devs I believe). 3.x is definitely less well tested, and 2.6=
> is behind that.
>
> Ashesh, any ideas what could be causing this?
<= div>I can think of existing .pyc files, which can cause this kind of proble= ms.

-= -

Thanks &= ; Regards,

Ashesh Vashi
EnterpriseDB INDIA:=C2=A0= Enterpris= e PostgreSQL Company


http:/= /www.linkedin.com/in/asheshvashi


Must have been something weird; a web server restart fixed the probl= em.

Thanks for the help; it is working now.

I'm kind of surprised that pgAdmin4 is already a release candidate, I s= till
find lots of bugs just randomly clicking around.
I'll report them of course.

Yours,
Laurenz Albe

--94eb2c19df24971a0c053bc3f5bb--