Open markp2 opened 2 years ago
Found the assert line - it originates in file python3.10/site-packages/pip/_internal/build_env.py
I then modified this file to show the assertion:
assert not path in sys.path, (path, sys.path)
.
Running now shows this error:
AssertionError: ('/usr/local/lib/python3.10/site-packages', ['/private/var/folders/3d/5td6p6fj7p3gk7nvkgltv29c0000gp/T/pip-build-env-muoavmtc/site', '/usr/local/Cellar/python@3.10/3.10.6_1/Frameworks/Python.framework/Versions/3.10/lib/python310.zip', '/usr/local/Cellar/python@3.10/3.10.6_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10', '/usr/local/Cellar/python@3.10/3.10.6_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/lib-dynload', '/usr/local/Cellar/python@3.10/3.10.6_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages', '/usr/local/Cellar/python@3.10/3.10.6_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/multicorn-2.3-py3.10-macosx-10.15-x86_64.egg', '/usr/local/lib/python3.10/site-packages', '/usr/local/lib/python3.10/site-packages/multicorn-2.3-py3.10-macosx-10.15-x86_64.egg'] )
Is this a pip or xmlsec install issue - asserting that '/usr/local/lib/python3.10/site-packages' should not be in sys.path? For example does xmlsec override PYTHONPATH?
The assertion error is negligible since it doesn't abort the installation. For now it looks like an issue with setuptools-scm
to me. What is the output of pip install 'setuptools-scm<7' && pip install xmlsec --no-build-isolation
?
Unfortunately I have this issue after upgrading pip and setup tools in my non venv environment (brew). Using the -v flag I can see there is an Error in sitecustomize; If I set PYTHONVERBOSE for traceback I see the 2 python Tracebacks in addition to the pip ERROR: No matching distribution found for xmlsec==1.3.12
Is there a way for me [or you] to modify the assert line to show the paths:
assert not path in sys.path, (path, sys.path)