Skip to content
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

The dependency cache is timing out #16

Open
ciarancourtney opened this issue Oct 5, 2019 · 6 comments
Open

The dependency cache is timing out #16

ciarancourtney opened this issue Oct 5, 2019 · 6 comments
Labels
bug Something isn't working

Comments

@ciarancourtney
Copy link

From #11

Installing a package which has an alias, like pyvbox/virtualbox, fails with:

Problem getting dependency data: DependencyError { details: "Network error" }
@ciarancourtney
Copy link
Author

Twisted is another example, I remember having issues installing it with pip years ago around v18 maybe

@David-OConnor David-OConnor added the bug Something isn't working label Oct 5, 2019
@David-OConnor
Copy link
Owner

I can reproduce this one.

@David-OConnor
Copy link
Owner

David-OConnor commented Oct 5, 2019

You actually identified the problem as well: The bug is in the pydeps repo. This repo downloads packages to find their dependencies, then caches them. If a wheel's avail, it downloads directly. If not, it installs using Pip-9, from the Heroku buildpack.

This bug occurs due to a combination of those packages having no Python3 wheels, and using a different package name from the folder it installs to. I need to figure out how to either update Pip on Heroku, parse the source dists' deps directly, or switch to a different host.

@ciarancourtney
Copy link
Author

Does that explain why it seems to work the 2nd time round? https://pastebin.com/raw/j851VMCH

@David-OConnor
Copy link
Owner

David-OConnor commented Oct 5, 2019

I think I misdiagnosed. I think this is due to a bug in the caching process rather than with Pip or aliases; ie it's failing before giving it a chance to parse the deps when looking at a package for the first time.

@David-OConnor
Copy link
Owner

Updated the error message to be more clear. I think the solution may be to move hosts for pydeps; Heroku's timing out the request before it finishes downloading/parsing.

@David-OConnor David-OConnor changed the title DependencyError { details: "Network error" } when installing packages with aliases The dependency cache is timing out Nov 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants