Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cooper-mbp:pypistats cooper$ /tmp/test_pypistats/bin/pypi_stats --debug
- [2018-08-06 12:56:24,783] INFO: Starting /tmp/test_pypistats/bin/pypi_stats (pypistats.py:99)
- [2018-08-06 12:56:24,783] DEBUG: Using selector: KqueueSelector (selector_events.py:65)
- Traceback (most recent call last):
- File "/tmp/test_pypistats/bin/pypi_stats", line 11, in <module>
- load_entry_point('pypistats', 'console_scripts', 'pypi_stats')()
- File "/private/tmp/test_pypistats/lib/python3.6/site-packages/click/core.py", line 722, in __call__
- return self.main(*args, **kwargs)
- File "/private/tmp/test_pypistats/lib/python3.6/site-packages/click/core.py", line 697, in main
- rv = self.invoke(ctx)
- File "/private/tmp/test_pypistats/lib/python3.6/site-packages/click/core.py", line 895, in invoke
- return ctx.invoke(self.callback, **ctx.params)
- File "/private/tmp/test_pypistats/lib/python3.6/site-packages/click/core.py", line 535, in invoke
- return callback(*args, **kwargs)
- File "/private/tmp/test_pypistats/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
- return f(get_current_context(), *args, **kwargs)
- File "/Users/cooper/repos/pypistats/pypistats.py", line 103, in main
- ret_val = loop.run_until_complete(async_main(**kwargs))
- File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/base_events.py", line 468, in run_until_complete
- return future.result()
- File "/Users/cooper/repos/pypistats/pypistats.py", line 69, in async_main
- stats_json = await get_stats()
- File "/Users/cooper/repos/pypistats/pypistats.py", line 38, in get_stats
- return await resp.json()
- File "/private/tmp/test_pypistats/lib/python3.6/site-packages/aiohttp/client_reqrep.py", line 927, in json
- headers=self.headers)
- aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement