From owner-freebsd-python@freebsd.org Wed Mar 1 11:08:07 2017 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9F610CF3C91 for ; Wed, 1 Mar 2017 11:08:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6F15C8A7 for ; Wed, 1 Mar 2017 11:08:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v21B87a0017919 for ; Wed, 1 Mar 2017 11:08:07 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-python@FreeBSD.org Subject: [Bug 217447] textproc/py-sphinx: Fails with python:3.3+ Date: Wed, 01 Mar 2017 11:08:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dbaio@bsd.com.br X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kmoore@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? exp-run? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Mar 2017 11:08:07 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217447 Bug ID: 217447 Summary: textproc/py-sphinx: Fails with python:3.3+ Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: kmoore@FreeBSD.org Reporter: dbaio@bsd.com.br CC: freebsd-python@FreeBSD.org Flags: maintainer-feedback?(kmoore@FreeBSD.org), exp-run? Assignee: kmoore@FreeBSD.org Created attachment 180389 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D180389&action= =3Dedit py-sphinx-python3-error.patch To reproduce it just set python 3.5 as default and execute a poudriere testport. DEFAULT_VERSIONS+=3D python=3D3.5 $ poudriere testport ... -o textproc/py-sphinx >cd /wrkdirs/usr/ports/textproc/py3-sphinx/work/Sphinx-1.4.8/build/lib && >/usr/bin/env PYTHONPATH=3D/wrkdirs/usr/ports/textproc/py3-sphinx/work/Sphi= nx-1.4.8/build/lib:/usr/local/lib/python3.5/site-packages >/usr/local/bin/python3.5 -m sphinx.pycode.pgen2.driver -c 'import load_gra= mmar' >/usr/local/lib/python3.5/runpy.py:125: RuntimeWarning: 'sphinx.pycode.pgen= 2.driver' found in >sys.modules after import of package 'sphinx.pycode.pgen2', but prior to ex= ecution of >'sphinx.pycode.pgen2.driver'; this may result in unpredictable behaviour > warn(RuntimeWarning(msg)) Removing post-build block fixes this. This was introduced in ports r336515 version 1.2 and then on version 1.2.1 this caught my attention: * #1152: Fix pycode parsing errors of Python 3 code by including two grammar versions for Python 2 and 3, and loading the appropriate version for the running Python version. https://github.com/sphinx-doc/sphinx/blob/master/CHANGES#L1687-L1689 I did some tests with this attached patch and couldn't find any problem, but another eye on it will be great... and maybe an exprun... Regards. --=20 You are receiving this mail because: You are on the CC list for the bug.=