You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently, i got this issue with a fresh build from the repo:
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/gevent/greenlet.py", line 534, in run
result = self._run(*self.args, **self.kwargs)
File "/dazzar/bot/dota_bot.py", line 62, in start_dota
self.dota.launch()
File "/usr/local/lib/python3.4/dist-packages/dota2/client.py", line 245, in launch
self.steam.games_played(self.steam.current_games_played + [self.app_id])
File "/usr/local/lib/python3.4/dist-packages/steam/client/builtins/user.py", line 128, in games_played
'games_played': map(lambda app_id: {'game_id': app_id}, app_ids)
File "/usr/local/lib/python3.4/dist-packages/steam/client/__init__.py", line 257, in send
proto_fill_from_dict(message.body, body_params)
File "/usr/local/lib/python3.4/dist-packages/steam/util/__init__.py", line 99, in proto_fill_from_dict
repr(key), type(val)
TypeError: Expected 'games_played' to be of type list, got <class 'map'>
I'm doint a simple client.connect(...)client.login(...) and dota.launch(...), every of each when the previous part fire ready.
The text was updated successfully, but these errors were encountered:
This is kind of strange, sometimes I get it (in my huge project), sometimes I don't (in a fresh test). But If you find a bug with my report, it is good xD
It uses map which in python3 returns a iterable, and the proto message takes a list, Unless the message you are using has list, you won't encounter the bug. There might be other bugs like this lurking around, as most of the code was developed under python2.7
I will fix it and probably make a release later tonight.
Recently, i got this issue with a fresh build from the repo:
I'm doint a simple
client.connect(...)
client.login(...)
anddota.launch(...)
, every of each when the previous part fire ready.The text was updated successfully, but these errors were encountered: