Advertisement
cooperlees

Untitled

Aug 6th, 2018
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.91 KB | None | 0 0
  1. cooper-mbp:pypistats cooper$ /tmp/test_pypistats/bin/pypi_stats --debug
  2. [2018-08-06 12:56:24,783] INFO: Starting /tmp/test_pypistats/bin/pypi_stats (pypistats.py:99)
  3. [2018-08-06 12:56:24,783] DEBUG: Using selector: KqueueSelector (selector_events.py:65)
  4. Traceback (most recent call last):
  5.   File "/tmp/test_pypistats/bin/pypi_stats", line 11, in <module>
  6.     load_entry_point('pypistats', 'console_scripts', 'pypi_stats')()
  7.   File "/private/tmp/test_pypistats/lib/python3.6/site-packages/click/core.py", line 722, in __call__
  8.     return self.main(*args, **kwargs)
  9.   File "/private/tmp/test_pypistats/lib/python3.6/site-packages/click/core.py", line 697, in main
  10.     rv = self.invoke(ctx)
  11.   File "/private/tmp/test_pypistats/lib/python3.6/site-packages/click/core.py", line 895, in invoke
  12.     return ctx.invoke(self.callback, **ctx.params)
  13.   File "/private/tmp/test_pypistats/lib/python3.6/site-packages/click/core.py", line 535, in invoke
  14.     return callback(*args, **kwargs)
  15.   File "/private/tmp/test_pypistats/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
  16.     return f(get_current_context(), *args, **kwargs)
  17.   File "/Users/cooper/repos/pypistats/pypistats.py", line 103, in main
  18.     ret_val = loop.run_until_complete(async_main(**kwargs))
  19.   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
  20.     return future.result()
  21.   File "/Users/cooper/repos/pypistats/pypistats.py", line 69, in async_main
  22.     stats_json = await get_stats()
  23.   File "/Users/cooper/repos/pypistats/pypistats.py", line 38, in get_stats
  24.     return await resp.json()
  25.   File "/private/tmp/test_pypistats/lib/python3.6/site-packages/aiohttp/client_reqrep.py", line 927, in json
  26.     headers=self.headers)
  27. 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