-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
easy_install doesn't handle sysconfig vars being integers. #3063
Comments
We are also seeing this issue where |
Ran into this issue trying to
I get the same error running Found a temporary solution for this while still on
seem to work |
@seanbreckenridge thank you so much for the workaround!!! I was going crazy for hours yesterday because of this bug. I was also able to now install two packages I needed. On Ubuntu 20.04, used
Tried with both pip 20.0.2 and 22.0.2. |
It has a bug (see github.com/pypa/setuptools/issues/3063).
Hi @domdfcoding, thank you very much for finding this out and for the extensive investigation! Any chance you can help us out with a PR? 😝 |
* ENH: General charge-constrained phases support, with tests. Draft implementation by @HUISUN24 * FIX: calculate: Enforce memory contiguity of phase composition array * ENH: calculate: sketch of hit-and-run sampler for linearly-constrained spaces * FIX: Check for infeasible phase and fixed degrees of freedom * TST: add tests for complex charged species * Use constructed pseudo-endmembers along with hit-and-run sampling * Fixes for the HR sampler getting stuck, and choose better initial point * FIX: Include mass residual in convergence criteria * DOC: ChargedPhases: add example * DOC/FIX: Fixup examples and confirm working * DOC: Rebuild RST from ipynb examples * MAINT: No need to calculate `total_site_ratios` for constraint * FIX/BLD: Temporary workaround for pypa/setuptools#3063 Co-authored-by: Brandon Bocklund <brandonbocklund@gmail.com>
pypa/setuptools#3070 is fixes the pypa/setuptools#3063 in setuptools 60.6.0 and 60.7.0 is available now.
pypa/setuptools#3070 is fixes the pypa/setuptools#3063 in setuptools 60.6.0 and 60.7.0 is available now.
setuptools>45 was added in 0e9befb. This constrint was never backported to 1.1. My backport honors that. > see there: pypa/setuptools#3063
In the
create_home_path
function ofsetuptools/command/easy_install.py
the code fails with an AttributeError ifpath
is not a string. Since #3027self.config_vars
has been created fromsysconfig.get_config_vars()
, where the values can be strings or integers, such as'WITH_PYMALLOC': 1
.setuptools/setuptools/command/easy_install.py
Line 241 in b2ba0e3
setuptools/setuptools/command/easy_install.py
Lines 1337 to 1338 in b2ba0e3
Because integers do not have a
startswith
method an AttributeError is raised. Checking whetherpath
is a string should fix this.I tried to reproduce this locally with
easy_install
, but couldn't. However, it can be observed in pip's testsuite: https://github.com/pypa/pip/runs/5002678226The text was updated successfully, but these errors were encountered: