[Bug 271285] devel/py-virtualenv: 'make stage' fails with AttributeError
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 06 May 2023 18:09:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271285 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'... ============= . . ===> Staging for py39-virtualenv-20.23.0 ===> py39-virtualenv-20.23.0 depends on package: py39-distlib>=0.3.6 - found ===> py39-virtualenv-20.23.0 depends on package: py39-filelock>=3.4.1 - found ===> py39-virtualenv-20.23.0 depends on package: py39-platformdirs>=2.4 - found ===> py39-virtualenv-20.23.0 depends on file: /usr/local/bin/python3.9 - found ===> 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/virtualenv-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_metadata/__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 want to report the issue to the developers. Please also report this if it was a user error, so that a better error message can be provided next time. A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks! *** Error code 2 ============= 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_points.txt to /usr/local/lib/python3.8/site-packages/virtualenv-20.21.1.dist-info/entry_points.txt.mv, and then it had no problem. Presumably deleting py39-virtualenv-20.21.1 would work as well. The following also worked for me (without renaming entry_points.txt or removing the 20.21.1 package): env PYTHONPATH=/usr/ports/devel/py-virtualenv/work-py39/stage/usr/local/lib/python3.9/site-packages stage That seems like a good thing - to have a port look in $WRKSRC first for modules 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. -- You are receiving this mail because: You are the assignee for the bug.