Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmXnA-00058c-4E for pgadmin-hackers@arkaria.postgresql.org; Thu, 24 Jan 2019 05:43:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gmXn8-0003RV-S8 for pgadmin-hackers@arkaria.postgresql.org; Thu, 24 Jan 2019 05:43:06 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmXn8-0003RO-MP for pgadmin-hackers@lists.postgresql.org; Thu, 24 Jan 2019 05:43:06 +0000 Received: from mail-ot1-x341.google.com ([2607:f8b0:4864:20::341]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmXn5-0003S0-Ni for pgadmin-hackers@lists.postgresql.org; Thu, 24 Jan 2019 05:43:06 +0000 Received: by mail-ot1-x341.google.com with SMTP id n8so4223277otl.6 for ; Wed, 23 Jan 2019 21:43:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XYX5H4GJkNj3w0NgGoxqoy+KHalN5PYtqkAGKsAYuKg=; b=BeNFRwLSTRwq9NixYqPY4l81//Qkiys4+wKyA0o81gCugJSupovnWraewVJHdY561Q KfBUPM5Ulx5usQQyV1teZxcDXEmQJxJPxoUmjH0bTuZ3TOOUKcTTDCUHSTK87J9gStsF EEsSn2G6BaNcHBHL9ek1NvL5Vx0r8hcScoewrjGninJ5Zd3/BEs3TF2jrEPpIc9O8TDT OCcvZ1V1PuRwlTqxjvEsWbikaUqDRtcPhEx9gelFRHkLMOADDqik0oDAmMpLyckZAjrq kRZPTyBWhiZJcigPJQybpVFqgM/ZZk0Bt5kpWH5z13hoZffa4lBnXkAmuVIosi3GWFsf k4WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XYX5H4GJkNj3w0NgGoxqoy+KHalN5PYtqkAGKsAYuKg=; b=DbcgdFw6aTj6X78BERfisxjC6ZpKLM8uZTyO8pMsrzDRcqrWErRhG909/hzLZXBFiX QlH/evCUcDwtP4kbnOf8JfydydKGtEPMX+ZYK8HNZdQKMToCI3g+gS0hN3s2wM670mUJ 32xK/PA9ooLq0+8aD6d08GpdwDX3AMo/2iQQjVIDH5fHGYzdgCqCZV5Ybei5lTEb7fgt BZ6QTK9CVH61Hq1ggqmj+nZhK3eTzS9MTWuvV2u4vwxkjD+3xWx7VmqGEnQMjOJaLEB1 wDaHsKCXUFozH3yCjMoTczaQVfp9Obc7xM2MvKwFWYuFSAcwPEa1bnA1xcVKubMYS/ev KMPg== X-Gm-Message-State: AJcUukeEIO+YitMpC4XKXqGP8WB4XzDl5cU3JnrjS3Cnap+glFNFoc9m zwNyUdPuXF0WrrnYE3eZiZ9GuL3PlcdC0LoQCzdCLOth X-Google-Smtp-Source: ALg8bN7EDOmzME+89kzIrjg4qpxpTALqpiNGSlhguGE6Z3AKDRqbBzwo6h4G79MtutyoJntw2FWyCpgcEi3hA9VXRSk= X-Received: by 2002:a9d:aa9:: with SMTP id 38mr3632620otq.255.1548308581089; Wed, 23 Jan 2019 21:43:01 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Khushboo Vashi Date: Wed, 23 Jan 2019 21:42:50 -0800 Message-ID: Subject: Re: 4.1 bytecompile error on RHEL 7 To: =?UTF-8?B?RGV2cmltIEfDvG5kw7x6?= Cc: pgadmin-hackers Content-Type: multipart/alternative; boundary="000000000000fa9a0805802daeec" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000fa9a0805802daeec Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jan 23, 2019 at 8:54 PM Khushboo Vashi < khushboo.vashi@enterprisedb.com> wrote: > > > On Wed, Jan 23, 2019 at 10:38 PM Devrim G=C3=BCnd=C3=BCz wrote: > >> >> Hi, >> >> I'm seeing this at the end of the RPM build process on RHEL 7. Please >> note that >> 3.6 passes here: >> >> =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=3D=3D=3D=3D=3D=3D=3D=3D >> + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 >> Bytecompiling .py files below /var/lib/pgsql/rpm11/BUILDROOT/pgadmin4-4.= 1- >> 1.rhel7.x86_64/usr/lib/python2.7 using /usr/bin/python2.7 >> Compiling /var/lib/pgsql/rpm11/BUILDROOT/pgadmin4-4.1- >> 1.rhel7.x86_64/usr/lib/python2.7/site-packages/pgadmin4- >> web/pgadmin/feature_tests/xss_checks_panels_and_query_tool_test.py ... >> File "/usr/lib/python2.7/site-packages/pgadmin4- >> web/pgadmin/feature_tests/xss_checks_panels_and_query_tool_test.py", lin= e >> 79 >> file=3Dsys.stderr, end=3D"" >> ^ >> SyntaxError: invalid syntax >> >> =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=3D=3D=3D=3D=3D=3D=3D=3D >> > Any ideas? >> >> This is the issue only on Python 2.7. Let me fix it in pgAdmin 4. > The fix has been sent to the pgAdmin hackers. > Regards, >> >> -- >> Devrim G=C3=BCnd=C3=BCz >> EnterpriseDB: https://www.enterprisedb.com >> PostgreSQL Consultant, Red Hat Certified Engineer >> Twitter: @DevrimGunduz , @DevrimGunduzTR >> > --000000000000fa9a0805802daeec Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Wed, Jan 23, 2019 at 8:54 PM Khush= boo Vashi <khushboo.v= ashi@enterprisedb.com> wrote:


On Wed, Jan 23, 2019 at 10:38 PM Devrim G=C3=BCnd=C3=BCz <devrim@gunduz.org&= gt; wrote:

Hi,

I'm seeing this at the end of the RPM build process on RHEL 7. Please n= ote that
3.6 passes here:

=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=3D=3D=3D=3D=3D=3D=3D=3D
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
Bytecompiling .py files below /var/lib/pgsql/rpm11/BUILDROOT/pgadmin4-4.1-<= br> 1.rhel7.x86_64/usr/lib/python2.7 using /usr/bin/python2.7
Compiling /var/lib/pgsql/rpm11/BUILDROOT/pgadmin4-4.1-
1.rhel7.x86_64/usr/lib/python2.7/site-packages/pgadmin4-
web/pgadmin/feature_tests/xss_checks_panels_and_query_tool_test.py ...
=C2=A0 File "/usr/lib/python2.7/site-packages/pgadmin4-
web/pgadmin/feature_tests/xss_checks_panels_and_query_tool_test.py", l= ine 79
=C2=A0 =C2=A0 file=3Dsys.stderr, end=3D""
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ^
SyntaxError: invalid syntax

=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=3D=3D=3D=3D=3D=3D=3D=3D
Any ideas?

This is the issue only on Python 2.7. Let me fix it i= n pgAdmin 4.=C2=A0
The fix has been sent= to the pgAdmin hackers.
Regards,

--
Devrim G=C3=BCnd=C3=BCz
EnterpriseDB: https://www.enterprisedb.com
PostgreSQL Consultant, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR
--000000000000fa9a0805802daeec--