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

Missing packages #2087

Closed
FRidh opened this issue Jun 4, 2017 · 5 comments
Closed

Missing packages #2087

FRidh opened this issue Jun 4, 2017 · 5 comments

Comments

@FRidh
Copy link

FRidh commented Jun 4, 2017

The following can be used to obtain a list of all packages that are available via PyPI:

with ServerProxy(index) as client:
    packages = client.list_packages()

For some packages the site and the json is missing. Why is that so? Is that because packagers remove their package but it doesn't disappear entirely from the database?
Example xlrd3k

I was using the following index https://pypi.org/pypi

@dstufft
Copy link
Member

dstufft commented Jun 4, 2017

I think the JSON and page 404's when the package doesn't have any releases and is just registered.

@FRidh
Copy link
Author

FRidh commented Jun 5, 2017

That seems like a plausible reason. Do you know of a method/call to tell whether this is indeed the case?
I have a script that fetches the JSON of each package and stores it. When updating the database the script retries those packages that failed the previous time.

@pradyunsg
Copy link
Contributor

pradyunsg commented Jun 5, 2017

@dstufft

I would have thought there'd be empty mapping for json and some sort of placeholder page saying that this package is registered but does not have any releases?

Is there any specific reason it's not this way?

PS: Is this something I could try as a first-contribution to warehouse later this month?

@FRidh
Copy link
Author

FRidh commented Jun 5, 2017

Closing because this is likely then a duplicate of #1388.

@FRidh FRidh closed this as completed Jun 5, 2017
@pradyunsg
Copy link
Contributor

Indeed.

Is there any specific reason it's not this way?

It seems no one came about to doing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants