-
Notifications
You must be signed in to change notification settings - Fork 264
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
pip install netCDF4 for 1.6.3+ fails with TomlDecodeError using distro-default pip version #1265
Comments
@mwtoews do you have any insight into what could be causing this? |
Google tells me that this error most frequently occurs when there is a typo in the pipfile. |
I have a few ideas to try, when I get a chance. Hopefully later today... |
Apologies for the issue @PhilMiller , I can replicate this issue on a local Ubuntu 20.04 Docker VM. I have a fix with #1266 that re-arranges pyproject.toml to be compatible with the older TOML parser that was available at the time. |
Thank you for the very quick investigation and fix! I'll look forward to a 1.6.5 release. |
It looks like the last couple patch releases after 1.6.2 created a dependency on newer versions of pip that weren't previously required up through 1.6.2. That seems surprising and maybe inappropriate. The upgrade itself isn't burdensome, but the error is wholly inscrutable and doesn't at all steer toward that as a solution. It took me over an hour to guess to try the upgrade based on pip appearing in the stack trace, and a few Google searches didn't surface anything that suggested it.
It seems to have been introduced with #1216. That states an increased dependency on
setuptools
61, but that seems not to be strictly necessary, nor make a difference.Details as follows:
This is all running in a VM/container of Ubuntu 20.04 setup under Rancher Desktop on an M1 Mac Mini.
Initial software versions/environment:
Expected behavior:
Observed behavior:
The exact same occurs for
pip install netCDF4==1.6.4
(exact same line numbers in the stack trace)If I upgrade pip, it succeeds:
The text was updated successfully, but these errors were encountered: