Trying to run the example I get
dk253 opened this issue · 3 comments
Hello,
Thanks for your library! I am running into trouble though. I have a brand new ubuntu install. I installed python 3.6 and your library as well as asyncio and aiohttp.
This is the error I'm getting:
python3 example.py
Traceback (most recent call last):
File "tile.py", line 27, in
asyncio.get_event_loop().run_until_complete(main())
File "/usr/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete
return future.result()
File "tile.py", line 16, in main
await client.async_init()
File "/usr/local/lib/python3.6/dist-packages/pytile/client.py", line 52, in async_init
"locale": self._locale,
File "/usr/local/lib/python3.6/dist-packages/pytile/client.py", line 97, in request
data=data,
File "/usr/local/lib/python3.6/dist-packages/aiohttp/client.py", line 1012, in aenter
self._resp = await self._coro
File "/usr/local/lib/python3.6/dist-packages/aiohttp/client.py", line 502, in _request
resp = await req.send(conn)
File "/usr/local/lib/python3.6/dist-packages/aiohttp/client_reqrep.py", line 629, in send
await writer.write_headers(status_line, self.headers)
File "/usr/local/lib/python3.6/dist-packages/aiohttp/http_writer.py", line 111, in write_headers
buf = _serialize_headers(status_line, headers)
File "aiohttp/_http_writer.pyx", line 138, in aiohttp._http_writer._serialize_headers
File "aiohttp/_http_writer.pyx", line 110, in aiohttp._http_writer.to_str
TypeError: Cannot serialize non-str key UUID('f006245f-b9df-45f7-8e63-')
I am pretty new to python so it may be something I am missing.
Thanks!
works great! Thanks!!