-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
ImportError: cannot import name 'SourceDistribution' from 'pip._internal.distributions.source' #7217
Comments
The update to pip 19.3 broke the build, see pypa/pip#7217
It would be really helpful to know what in the CircleCI (or conda?) setup is using those internal APIs - the reorganisation shouldn't have affected any external code. The main issue we know of so far is the reorganisation of main, which impacts wrapper scripts, but this one looks a bit different. Any insight you can give would be very useful, thanks. |
Confirmed that removing peterjc/thapbi-pict@4060404 i.e. Something broke in how I updated from pip 19.2.3 to 19.3 I am not intentionally using the CircleCI provided Python, rather the Conda provided Python - is there value in switching from |
Working on a branch now, added a little more logging and reverted back to the broken version: https://circleci.com/gh/peterjc/thapbi-pict/1076 This confirms the traceback is trigged by |
OK, using https://circleci.com/gh/peterjc/thapbi-pict/1077 |
For what it's worth, I've just confirmed that |
CircleCI has the capability to re-run a job with SSH access to the VM (not that I've ever used it), so in theory this could be used for debugging, but I don't really know where to start. I have a work around for now, and at some point conda-forge will have pip 19.3 packaged too, so unless other people see the same exception, it seems a low priority? |
OK, cool. If you have a workaround then I'm fine leaving it there for now. If others add comments reporting it's happening elsewhere, we can do some more digging then - maybe they will have extra information that will help. |
I am facing a similar issue on macOS, python: 3.6.9. pip command on my terminal doesn't work anymore. Any suggestions? |
This comment has been minimized.
This comment has been minimized.
I have same problem on CircleCI since 1 hours ago.
|
Are any of you guys using caching? I think it's possible some pip internals changed and when you restore the cache of the old python version pip breaks. Suggest you invalidate your circle CI caches by changing the |
As suggested by @bgkelly clearing the cache also worked for me! |
Yep - same for me - changing the cache key has solved this for our team's projects on circleci. Thanks @bgkelly |
Changing the cache key did not solve it for me. |
Alright, so this seems like a caching issue for CircleCI. Could someone please reach out to CircleCI folks (via their support channels)? It'd be great if they could look into this and possibly chime in here. |
See here: pypa/pip#7217 (comment) Basically, an internal change was made to Pip, but because the dependencies are cached, we're using a new verison of Pip with old dependencies which causes issues.
The current cache approach seems to have broken after some update from CircleCI side and we're getting an exception (see pypa/pip#7217) - for now, I'll just remove caching.
Hey people, I really don't know if this helps you in any way, but I got the same Error Message on my MSYS setup trying to install WeasyPrint. After uninstalling python3-pip and python3-setuptools i deleted all pip folders in /usr/lib/python3.7/site-packages/ and reinstalled both.. solved that specific error.
To be fair, I now ran into compiler issues... but maybe i could help.... |
Just in case this may help, I have encountered the error in a different context: when copying a virtual environment from one docker image to another, in a multistage setup. The source image contains a less recent version of I did not spend time troubleshooting the issue as I am somewhat skeptical of this approach involving copying the virtual environment into an environment where there are already packages installed. In any case, it appears to be a package collision problem. Hope this helps! 😄 |
Hi
If I clear the build cache via the ReadTheDocs GUI interface, the build is successful - but only until next time a build is started. Here is the full log:
|
Hi, I've encountered the problem too. OS: Debian GNU/Linux 10 (Linux 4.19.0-6-amd64) $ pip |
Agreed, fantastic turnaround on the fix here! |
Thanks @pradyunsg |
Same error as above. Works after moving to PIP 19.3.1 |
Works great now, thanks. |
Considering the nature of this bug, can you please remove 20.0 release from PYPA? https://pypi.org/project/pip/#history Another question would what we could do to avoid a similar regression in the future. |
Sorry everyone for the breakage, and thanks for working with us here to fix this breakage! @xavfernandez figured out why this happened and we'll be making changes to our release process to prevent similar failures in the future: #7624 |
great work, thanks for the lightning fast turnaround! |
Hello, I'm stuck in 20.0
I tired to uninstall too :
Anyone have another solution to uninstall pip? Ubuntu 18.04.3 LTS |
Hi @CharrierCoop! You should be able to download get-pip.py and install pip 20.0.1 using that. |
Perfect !! |
No. We're not going to be deleting it. We have a standard-backed feature for "yanking" broken releases. Once PyPI adds support for that, we'll yank this release (if anyone cares by then). See https://www.python.org/dev/peps/pep-0592/#motivation for more details. |
This comment has been minimized.
This comment has been minimized.
* There is a problem with latest pip version (20.0), more [here](pypa/pip#7217).
thank you very much |
No need this issue was fixed by @pradyunsg |
* There is a problem with latest pip version (20.0), more [here](pypa/pip#7217).
* There is a problem with latest pip version (20.0), more [here](pypa/pip#7217).
I tried doing the same on Raspberry Pi 4( Python 3.7.3, pip version - 20.0 and OS - Raspbian Buster Lite), but it wasn't successful. Any solution? |
@Gilf641 Please file a new issue -- it'll be easier to manage for the maintainers. |
I'm gonna go ahead and close this issue now, since it seems like things are working for most users. If you're still facing issues, please look for duplicates filed in earlier (since Jan 21, for pip 20.0) and if there are none, file a new issue. |
* There is a problem with latest pip version (20.0), more [here](pypa/pip#7217).
* There is a problem with latest pip version (20.0), more [here](pypa/pip#7217).
* Improve inter-cluster isolation `az aks create` creates a service principal when invoked the first time, and re-uses that service principal for all clusters it creates. This leads to all clusters being able to access each other's Azure resources, such as disks and load-balancers. This is undesirable since it means that a compromised cluster would allow an attacked to steal data from another cluster. This patch disabled service principal re-usage to ensure better isolation between clusters. * Update HISTORY.rst * Address comment from @Juliehzl * Also improve inter-cluster isolation via _ensure_aks_service_principal * Fix CI error * Re-trigger pipeline See pypa/pip#7217
Environment
CircleCI using Conda, eg https://circleci.com/gh/peterjc/thapbi-pict/1073
pip install --upgrade pip setuptools
)I have made only minor changes to my code, but today the CircleCI builds broke during the build/install stage of my Python tool - multiple branches affected. The timing fits the release of pip 19.3 on PyPI.
Description
It appears a recent release of pip moved some internal files about, my guess is #6830.
Expected behavior
How to Reproduce
Full output on https://circleci.com/gh/peterjc/thapbi-pict/1073 which is running https://github.com/peterjc/thapbi-pict/blob/9fcec2da60e6e6ae5cf7ee6ad4b53dcc3a40cfe7/.circleci/config.yml#L56
Output
The text was updated successfully, but these errors were encountered: