Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYVjv-0001tF-H0 for pgadmin-hackers@arkaria.postgresql.org; Tue, 31 Jan 2017 10:32:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cYVjv-00016R-3x for pgadmin-hackers@arkaria.postgresql.org; Tue, 31 Jan 2017 10:32:43 +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 1cYVjt-00013u-Tu for pgadmin-hackers@postgresql.org; Tue, 31 Jan 2017 10:32:42 +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 1cYVjq-0007FE-J0 for pgadmin-hackers@postgresql.org; Tue, 31 Jan 2017 10:32:40 +0000 Received: by mail-it0-x234.google.com with SMTP id c7so121914991itd.1 for ; Tue, 31 Jan 2017 02:32:38 -0800 (PST) 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=8bCxeUb6Dg0n2Lh0QrZlXsnvttDUAkB0bDBfvC0Fdok=; b=CETL9RpkgZLYRISL9AfBm8svtI1XMoNQODC+UGv8Mw9BJSGeR2jF3s0JemxlYlqTcW 9azkN+rCfQpIy2t0K0TxdHs8T/ysZQE7LiA9ULyntJebH28iAUIAeDcqOEpQXc04VNRx 1nXa9K9ZrDTfDRzEHi9CIZA+LKsabzTB7GcLtjTrOVvo4Ta43pLt478ZJRaz+eOCMtN7 4pvC+NMP2vZalB7sA+ilUA5NPDGdUSjFOQKYCN6SKvpOtOXPlYRO6IdfiNEJutds+Ds8 wUnnyKuLGqlWiF3h9n7K/Vwhe9iaBB/ER+Eze0lJmLpqns53gKUVs29CvSFuX+5pbW3Y ZBuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=8bCxeUb6Dg0n2Lh0QrZlXsnvttDUAkB0bDBfvC0Fdok=; b=gLy/RdgvXO+wHnRogeZodq3qQUFmui2eUO7Dzh1R63s1kFP9+aQJeYaDgOpDYTgKJY zKjrAk0qI1QSogTlTj9iNo3ypHmde5e1tvKLvQCObxZHg9IgQWO4OvIqvzycj8Pity18 BeNLlpI5lAXuJ6SU1PQe8hXBPJxFGaCnmrH9Q0PG7MlThLXNtCT1nXSx9jdRwJdOXSgA UNC4u5fiW4sPeRfkN7W/BYexvFBzBcRTb6T9K1xL6Eb+BuhDOq2RdTMy2MmrWfBVYcOv vt/1lbt1tunmHQcQ2bLfI5ctfn7UwT6ym+pgW5iSiuZon6zWdXDSrGIniGkuFiLAceUT Qjqg== X-Gm-Message-State: AIkVDXIVGDZPt1vy87HgTx75j4ASeaQvn+kMKZee5RmTWr6Z54sIqG9ckpBeyiPtLkOQMngwxOVJHLWLDyp8huUf X-Received: by 10.36.225.13 with SMTP id n13mr20025695ith.57.1485858757762; Tue, 31 Jan 2017 02:32:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.9.196 with HTTP; Tue, 31 Jan 2017 02:32:17 -0800 (PST) In-Reply-To: References: From: Ashesh Vashi Date: Tue, 31 Jan 2017 16:02:17 +0530 Message-ID: Subject: Re: [pgAdmin4][Patch] Minor fix in test file for the Template loader To: Dave Page Cc: Murtuza Zabuawala , pgadmin-hackers Content-Type: multipart/alternative; boundary=94eb2c19d59c71840d0547617374 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 --94eb2c19d59c71840d0547617374 Content-Type: text/plain; charset=UTF-8 Murtuza, FYI - http://www.diveintopython3.net/porting-code-to-python-3-with-2to3.html#itertools -- Thanks & Regards, Ashesh Vashi EnterpriseDB INDIA: Enterprise PostgreSQL Company *http://www.linkedin.com/in/asheshvashi* On Tue, Jan 31, 2017 at 3:34 PM, Dave Page wrote: > Thanks Murtuza. When you get a minute, can you also look at the > following issue I get with the tests under Python 3.5? It doesn't seem > to stop them working. > > Traceback (most recent call last): > File "/Users/dpage/git/pgadmin4/web/pgadmin/utils/route.py", line > 75, in load_generators > import_module(module_name) > File "/Users/dpage/.virtualenvs/pgadmin4-py35/lib/python3.5/ > importlib/__init__.py", > line 126, in import_module > return _bootstrap._gcd_import(name[level:], package, level) > File "", line 986, in _gcd_import > File "", line 969, in _find_and_load > File "", line 958, in > _find_and_load_unlocked > File "", line 673, in _load_unlocked > File "", line 673, in exec_module > File "", line 222, in > _call_with_frames_removed > File "/Users/dpage/git/pgadmin4/web/pgadmin/utils/ > sqlautocomplete/counter.py", > line 6, in > from itertools import repeat, ifilter > ImportError: cannot import name 'ifilter' > > > On Tue, Jan 31, 2017 at 5:25 AM, Murtuza Zabuawala > wrote: > > Hi, > > > > PFA patch to fix the issue in test suite for template loader. > > > > Issue(Python3): > > murtuza@vm:~/pgadmin4/web/regression$ python3 runtests.py > > pgAdmin 4 - Application Initialisation > > ====================================== > > > > > > The configuration database - '/../.pgadmin/test_pgadmin4.db' does not > exist. > > Entering initial setup mode... > > NOTE: Configuring authentication for SERVER mode. > > > > > > The configuration database has been created at > /../.pgadmin/test_pgadmin4.db > > Traceback (most recent call last): > > File "runtests.py", line 250, in > > test_module_list = get_test_modules(args) > > File "runtests.py", line 138, in get_test_modules > > TestsGeneratorRegistry.load_generators('pgadmin') > > File "../../pgadmin4/web/pgadmin/utils/route.py", line 66, in > > load_generators > > import_module(module_name) > > File "/../../3.5/lib/python3.5/importlib/__init__.py", line 126, in > > import_module > > return _bootstrap._gcd_import(name[level:], package, level) > > File "", line 986, in _gcd_import > > File "", line 969, in _find_and_load > > File "", line 958, in > _find_and_load_unlocked > > File "", line 673, in _load_unlocked > > File "", line 658, in > exec_module > > File "", line 764, in get_code > > File "", line 724, in > source_to_code > > File "", line 222, in > > _call_with_frames_removed > > File > > "/../../pgadmin4/web/pgadmin/utils/tests/test_versioned_ > template_loader.py", > > line 50 > > except TemplateNotFound, e: > > ^ > > SyntaxError: invalid syntax > > > > -- > > Regards, > > Murtuza Zabuawala > > EnterpriseDB: 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 > > > > > > -- > 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 > --94eb2c19d59c71840d0547617374 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

--

Thanks &= amp; Regards,

Ashesh Vashi
EnterpriseDB IN= DIA: Enter= prise PostgreSQL Company

<= br>

<= a href=3D"http://www.linkedin.com/in/asheshvashi" target=3D"_blank">http= ://www.linkedin.com/in/asheshvashi


On Tue, Jan 31, 2017 at 3:34 PM, Dave Page <= span dir=3D"ltr"><dpage@pgadmin.org> wrote:
= Thanks Murtuza. When you get a minute, can you also look at the
following issue I get with the tests under Python 3.5? It doesn't seem<= br> to stop them working.

Traceback (most recent call last):
=C2=A0 File "/Users/dpage/git/pgadmin4/web/pgadmin/utils/r= oute.py", line
75, in load_generators
=C2=A0 =C2=A0 import_module(module_name)
=C2=A0 File "/Users/dpage/.virtualenvs/pgadmin4-py35/lib/python3.= 5/importlib/__init__.py",
line 126, in import_module
=C2=A0 =C2=A0 return _bootstrap._gcd_import(name[level:], package, lev= el)
=C2=A0 File "<frozen importlib._bootstrap>", line 986, in _= gcd_import
=C2=A0 File "<frozen importlib._bootstrap>", line 969, in _= find_and_load
=C2=A0 File "<frozen importlib._bootstrap>", line 958, in _= find_and_load_unlocked
=C2=A0 File "<frozen importlib._bootstrap>", line 673, in _= load_unlocked
=C2=A0 File "<frozen importlib._bootstrap_external>&= quot;, line 673, in exec_module
=C2=A0 File "<frozen importlib._bootstrap>"= ;, line 222, in _call_with_frames_removed
=C2=A0 File "/Users/dpage/git/pgadmin4/web/pgadmin/utils/<= wbr>sqlautocomplete/counter.py",
line 6, in <module>
=C2=A0 =C2=A0 from itertools import repeat, ifilter
ImportError: cannot import name 'ifilter'


On Tue, Jan 31, 2017 at 5:25 AM, Murtuza Zabuawala
<murtuza.zabuawala= @enterprisedb.com> wrote:
> Hi,
>
> PFA patch to fix the issue in test suite for template loader.
>
> Issue(Python3):
> murtuza@vm:~/pgadmin4/web/regression$ python3 runtests.py
> pgAdmin 4 - Application Initialisation
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
>
> The configuration database - '/../.pgadmin/test_pgadmin4.db&#= 39; does not exist.
> Entering initial setup mode...
> NOTE: Configuring authentication for SERVER mode.
>
>
> The configuration database has been created at /../.pgadmin/test_pgadm= in4.db
> Traceback (most recent call last):
>=C2=A0 =C2=A0File "runtests.py", line 250, in <module><= br> >=C2=A0 =C2=A0 =C2=A0test_module_list =3D get_test_modules(args)
>=C2=A0 =C2=A0File "runtests.py", line 138, in get_test_module= s
>=C2=A0 =C2=A0 =C2=A0TestsGeneratorRegistry.load_generators('pg= admin')
>=C2=A0 =C2=A0File "../../pgadmin4/web/pgadmin/utils/route.py&= quot;, line 66, in
> load_generators
>=C2=A0 =C2=A0 =C2=A0import_module(module_name)
>=C2=A0 =C2=A0File "/../../3.5/lib/python3.5/importlib/__init_= _.py", line 126, in
> import_module
>=C2=A0 =C2=A0 =C2=A0return _bootstrap._gcd_import(name[level:], pa= ckage, level)
>=C2=A0 =C2=A0File "<frozen importlib._bootstrap>", line= 986, in _gcd_import
>=C2=A0 =C2=A0File "<frozen importlib._bootstrap>", line= 969, in _find_and_load
>=C2=A0 =C2=A0File "<frozen importlib._bootstrap>", line= 958, in _find_and_load_unlocked
>=C2=A0 =C2=A0File "<frozen importlib._bootstrap>", line= 673, in _load_unlocked
>=C2=A0 =C2=A0File "<frozen importlib._bootstrap_external>", line 658, in exec_module
>=C2=A0 =C2=A0File "<frozen importlib._bootstrap_external>", line 764, in get_code
>=C2=A0 =C2=A0File "<frozen importlib._bootstrap_external>", line 724, in source_to_code
>=C2=A0 =C2=A0File "<frozen importlib._bootstrap>", line= 222, in
> _call_with_frames_removed
>=C2=A0 =C2=A0File
> "/../../pgadmin4/web/pgadmin/utils/tests/test_versioned_template_loader.py",
> line 50
>=C2=A0 =C2=A0 =C2=A0except TemplateNotFound, e:
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^
> SyntaxError: invalid syntax
>
> --
> Regards,
> Murtuza Zabuawala
> EnterpriseDB: 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/pgadm= in-hackers
>



--
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-ha= ckers

--94eb2c19d59c71840d0547617374--