ofek / pypinfo

Easily view PyPI download statistics via Google's BigQuery.
MIT License
417 stars 33 forks source link

Extra package (requests[security]) won't worked. #82

Closed minhoryang closed 4 years ago

minhoryang commented 5 years ago
$ pypinfo --days 2 "requests[security]" pyversion
Served from cache: False
Data processed: 9.43 GiB
Data billed: 9.43 GiB
Estimated cost: $0.05

Traceback (most recent call last):
  File "/Users/minhoryang/.anyenv/envs/pyenv/versions/3.7.4-konlpy/bin/pypinfo", line 10, in <module>
    sys.exit(pypinfo())
  File "/Users/minhoryang/.anyenv/envs/pyenv/versions/3.7.4/envs/3.7.4-konlpy/lib/python3.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/Users/minhoryang/.anyenv/envs/pyenv/versions/3.7.4/envs/3.7.4-konlpy/lib/python3.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/Users/minhoryang/.anyenv/envs/pyenv/versions/3.7.4/envs/3.7.4-konlpy/lib/python3.7/site-packages/click/core.py", line 1114, in invoke
    return Command.invoke(self, ctx)
  File "/Users/minhoryang/.anyenv/envs/pyenv/versions/3.7.4/envs/3.7.4-konlpy/lib/python3.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/minhoryang/.anyenv/envs/pyenv/versions/3.7.4/envs/3.7.4-konlpy/lib/python3.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/Users/minhoryang/.anyenv/envs/pyenv/versions/3.7.4/envs/3.7.4-konlpy/lib/python3.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/minhoryang/.anyenv/envs/pyenv/versions/3.7.4/envs/3.7.4-konlpy/lib/python3.7/site-packages/pypinfo/cli.py", line 195, in pypinfo
    click.echo(tabulate(rows, markdown))
  File "/Users/minhoryang/.anyenv/envs/pyenv/versions/3.7.4/envs/3.7.4-konlpy/lib/python3.7/site-packages/pypinfo/core.py", line 238, in tabulate
    for i in range(len(rows[0])):
IndexError: list index out of range
minhoryang commented 5 years ago
$ pypinfo --days 1 --json "requests[security]" pyversion
{"last_update":"2019-11-08 12:12:54","query":{"bytes_billed":0,"bytes_processed":0,"cached":true,"estimated_cost":"0.00"},"rows":[]}
hugovk commented 4 years ago

Put requests without the [security] extra:

pypinfo --days 2 requests pyversion
pypinfo --days 1 --json requests pyversion