From nobody Sat May 06 18:09:03 2023 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QDFtR4dBHz49v1Q for ; Sat, 6 May 2023 18:09:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QDFtR29y5z3Nxk for ; Sat, 6 May 2023 18:09:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683396543; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Yqpg9HxrZreAw83z1AQtRqgJfeu67kMWL4MfHuHELk8=; b=cGqoylKd20ZAPHc2WRIm2rSg4fCCcy4nFgKLx/a8JbQXYPivcjvEYyIqYB0x5/bn9SzSk7 p01MsrmJ6wHC5lFSAhL6cplDnAR841+p+eJbQXcCh6oXQESHVyBPXFUQ0ljacLSJKIRgXX xFhx0ffldMvSAA7gocb7xQQrcWlertsVBoaeICTpdOM1vXimV1JJK6qZHkesqtwmASrPRM sBbWwiiltSPSFvlTYTf6Lie5Id1YwnE62yeHad9FmLcb00iDxbujScd/0QLrW4vM5b1fRT vUGf+oCqtydUG1UURtjiIu5KBrCc3gaBF5xJgA+uh+KCvIPJADdQf0I2KoWCJg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683396543; a=rsa-sha256; cv=none; b=Xaerb7kSKXqA0pOIeUzkYf/Ml5OGsbB8wjxYaBf5x3CD5qlz0nJeEv+YFhIMgWh4D2/FNf YIEFW5HLpLcLqYJqG9sAMavN9BgcQkyIBPOgUqAQNkQSRt/Z22EeLvio6c09ZoCvULNpOy LDQHgf7kpR8f/chJngxj+EdX+YC7qwYwemMiZGGmS5ZA7Q068Huk2tUbzv7FHvlrtT98lz sW5L44NiHYA8nsTxRYLP7JqaW7GU8LhB4ylMTzyRWAhJBsrK4nDOto/+ASMBtyYR0LB0Nn a5oYZY95eYuZWPRNDC0/mLTfiP1SAXjMSD6kzxcumURSxoQErIaHjYWKVzTeDQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QDFtR1Ff1zm7y for ; Sat, 6 May 2023 18:09:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 346I93LA048178 for ; Sat, 6 May 2023 18:09:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 346I93YR048177 for ports-bugs@FreeBSD.org; Sat, 6 May 2023 18:09:03 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 271285] devel/py-virtualenv: 'make stage' fails with AttributeError Date: Sat, 06 May 2023 18:09:03 +0000 X-Bugzilla-Reason: AssignedTo 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: jcfyecrayz@liamekaens.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: nivit@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name 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 List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271285 Bug ID: 271285 Summary: devel/py-virtualenv: 'make stage' fails with AttributeError Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: nivit@FreeBSD.org Reporter: jcfyecrayz@liamekaens.com Assignee: nivit@FreeBSD.org Flags: maintainer-feedback?(nivit@FreeBSD.org) 'make -C devel/py-virtualenv stage' fails with 'AttributeError'... =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D . . =3D=3D=3D> Staging for py39-virtualenv-20.23.0 =3D=3D=3D> py39-virtualenv-20.23.0 depends on package: py39-distlib>=3D0.= 3.6 - found =3D=3D=3D> py39-virtualenv-20.23.0 depends on package: py39-filelock>=3D3= .4.1 - found =3D=3D=3D> py39-virtualenv-20.23.0 depends on package: py39-platformdirs>= =3D2.4 - found =3D=3D=3D> py39-virtualenv-20.23.0 depends on file: /usr/local/bin/python= 3.9 - found =3D=3D=3D> Generating temporary packing list /usr/local/bin/sphinx-build-3.9 -d /z1/local/poudriere/ports/clean-git/devel/py-virtualenv/work-py39 -b html -n /z1/local/poudriere/ports/clean-git/devel/py-virtualenv/work-py39/virtualen= v-20.23.0/docs /z1/local/poudriere/ports/clean-git/devel/py-virtualenv/work-py39/stage/usr= /local/share/doc/py39-virtualenv Running Sphinx v5.3.0 making output directory... done Exception occurred: File "/usr/local/lib/python3.9/site-packages/setuptools/_vendor/importlib_metada= ta/__init__.py", line 196, in load return functools.reduce(getattr, attrs, module) AttributeError: module 'virtualenv.create.via_global_ref.builtin.cpython.mac_os' has no attribute 'CPython2macOsArmFramework' The full traceback has been saved in /tmp/sphinx-err-f4yefhrs.log, if you w= ant to report the issue to the developers. Please also report this if it was a user error, so that a better error mess= age can be provided next time. A bug report can be filed in the tracker at . Thanks! *** Error code 2 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This happens if py39-virtualenv-20.21.1 is currently installed. I renamed /usr/local/lib/python3.8/site-packages/virtualenv-20.21.1.dist-info/entry_p= oints.txt to /usr/local/lib/python3.8/site-packages/virtualenv-20.21.1.dist-info/entry_p= oints.txt.mv, and then it had no problem. Presumably deleting py39-virtualenv-20.21.1 wo= uld work as well. The following also worked for me (without renaming entry_points.txt or remo= ving the 20.21.1 package): env PYTHONPATH=3D/usr/ports/devel/py-virtualenv/work-py39/stage/usr/local/lib/p= ython3.9/site-packages stage That seems like a good thing - to have a port look in $WRKSRC first for mod= ules in its own build tree before looking in $LOCALBASE and using elements from a previous install of the package. I wish more software builds were designed= to look in the source tree first before looking outside it. It's more correct. I understand the urge to close this with WONTFIX, however, and instead just tell people to build in a "clean" environment. --=20 You are receiving this mail because: You are the assignee for the bug.=