Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bfpFz-0008Dy-6v for pgadmin-hackers@arkaria.postgresql.org; Fri, 02 Sep 2016 14:15:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bfpFy-00028l-Kh for pgadmin-hackers@arkaria.postgresql.org; Fri, 02 Sep 2016 14:15:46 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bfpFl-0001uW-Em for pgadmin-hackers@postgresql.org; Fri, 02 Sep 2016 14:15:33 +0000 Received: from mail-it0-x234.google.com ([2607:f8b0:4001:c0b::234]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bfpFi-0000MZ-7O for pgadmin-hackers@postgresql.org; Fri, 02 Sep 2016 14:15:32 +0000 Received: by mail-it0-x234.google.com with SMTP id i184so38757145itf.1 for ; Fri, 02 Sep 2016 07:15:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=F8Eb6QjLDJ1+ksLrpr8GHWVoFhe1b2pzPeu4z0Ygz/g=; b=V3iTklUklmm6lxyce1Y7fqC5vZV6wXVzCkLQKRt+E+852F9noq/CTHs/M5r3VZmRoq 57ni86cZcKmjgJ7A9k8pRTzSdhiQJHtbP331fRxVRtXzwFNmr85JIFICfqmarSc5u4pj z8aJrfp0LACVBUbYq3jh8SvtKtKrkR1ZUTC4MbPLriH/orAqHjmeRBR1OlXoaxoJZGql h77hbR7ljPKp5MiRPER+TIotA5J6N4a01TtkZTm4cYjxIwcLugZviLMT1vy7WixJvW/L AMytZZt5yPM17bXKF7qsmz5wRq8kgb1BIuQgh7erybuooo+3b4Ph43ZWNYwMuESf21OG zowg== 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=F8Eb6QjLDJ1+ksLrpr8GHWVoFhe1b2pzPeu4z0Ygz/g=; b=JL597XDm4X9hcrhWBkq4+mjjXhNw4//yttdgliRZS1VgxJ4N+6Q2RWKvEDguZveG+W 6XOp49OnSD5Ln+rqmTNV0ihOKUYpqu83orPbQnfXimKLsy+EOGwvnkDtPfoKTqnXR2J+ AaNmlsd+POaNKjilBIeSkvK/KazZv1SwVSPSNkTweBqTWyVWlWV8xeehMHM9LGm6pp1a id8RiNmf+zKRdVjm5YaccJyalOcFdTXTzStNSXMX2kmpeEfl1dwAXQ7XSWu/OmvsI6ZR InvcwzXAw60ai3NKurBEDPhQKRF+4wYWVwpQjHeD6QHqvyLJE1frI2BCPYI6UBTZMBDl sRMQ== X-Gm-Message-State: AE9vXwNnW/LqeCULHQxRsc5XQVf/O4/98uTp8mRzKXaBh1r4+6ngS/DyUEyZ53iHNK/Stqq+Hd0y9JnMTj1Lbg== X-Received: by 10.36.238.132 with SMTP id b126mr5639329iti.37.1472825728748; Fri, 02 Sep 2016 07:15:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.1.203 with HTTP; Fri, 2 Sep 2016 07:15:27 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Fri, 2 Sep 2016 15:15:27 +0100 Message-ID: Subject: Re: pgAdmin 4 as Web application To: Albe Laurenz Cc: "Ashesh Vashi *EXTERN*" , "pgadmin-hackers@postgresql.org" Content-Type: text/plain; charset=UTF-8 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 On Fri, Sep 2, 2016 at 1:45 PM, Albe Laurenz wrote: > Ashesh Vashi wrote: >>> Now I'm getting to the same error as with the standalone version, see >>> https://www.postgresql.org/message- > >> Looks like the Python 2.6 compatibility has been broken. >> >> For now - can you use Python 2.7/3? > > I tried again on a RHEL 7 machine with Python 2.7.5 and the > latest development version of pgAdmin4. > > Now I get the following error: > > 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? FYI, I'm running a test server on CentOS 7 - my Apache config looks like this: WSGIDaemonProcess pgadmin processes=1 threads=25 WSGIScriptAlias /pgadmin4 /opt/pgAdmin4/web/pgAdmin4.wsgi WSGIProcessGroup pgadmin WSGIApplicationGroup %{GLOBAL} Require all granted That's working with the pgAdmin4.wsgi file unmodified from git. -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers