Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

get_manifests() failed with TypeError #460

Answered by Gobot1234
mehlawlarz asked this question in Q&A
Discussion options

Kinda new to python trying to use this to get manifest info but I'm getting TypeError following the example script, executed straight from python console.

from steam.client import SteamClient
from steam.client.cdn import CDNClient
client = SteamClient()
client.cli_login()
<EResult.OK: 1>
mycdn = CDNClient(client)
mycdn.get_manifests(582660)
Traceback (most recent call last):
File "src\gevent\greenlet.py", line 908, in gevent._gevent_cgreenlet.Greenlet.run
File "C:\Users2円.0\AppData\Local\Programs\Python\Python310\lib\site-packages\steam\client\cdn.py", line 785, in async_fetch_manifest
app_id, depot_id, int(manifest_gid), branch_name, branch_pass
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'dict'
2024年03月28日T13:39:46Z <Greenlet at 0x27d4f0b5300: async_fetch_manifest(582660, 582667, {'gid': '4917028189945595676', 'size': '7052737981, True, 582667, branch_name='public', branch_pass=None)> failed with TypeError

Traceback (most recent call last):
File "", line 1, in
File "C:\Users2円.0\AppData\Local\Programs\Python\Python310\lib\site-packages\steam\client\cdn.py", line 857, in get_manifests
result = task.get()
File "src\gevent\greenlet.py", line 831, in gevent._gevent_cgreenlet.Greenlet.get
File "src\gevent\greenlet.py", line 373, in gevent._gevent_cgreenlet.Greenlet._raise_exception
File "C:\Users2円.0\AppData\Local\Programs\Python\Python310\lib\site-packages\gevent_compat.py", line 49, in reraise
raise value.with_traceback(tb)
File "src\gevent\greenlet.py", line 908, in gevent._gevent_cgreenlet.Greenlet.run
File "C:\Users2円.0\AppData\Local\Programs\Python\Python310\lib\site-packages\steam\client\cdn.py", line 785, in async_fetch_manifest
app_id, depot_id, int(manifest_gid), branch_name, branch_pass
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'dict'

You must be logged in to vote

See #437. Honestly though I doubt it'll get fixed this library seems kinda dead, maybe look for a fork or different library.

Replies: 1 comment 1 reply

Comment options

See #437. Honestly though I doubt it'll get fixed this library seems kinda dead, maybe look for a fork or different library.

You must be logged in to vote
1 reply
Comment options

tyvm adding that code fixed it

Answer selected by mehlawlarz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /