Open overklassniy opened 7 months ago
File "src\\gevent\\greenlet.py", line 908, in gevent._gevent_cgreenlet.Greenlet.run
File "C:\Users\overklassniy\Desktop\venv\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-02-08T12:47:58Z <Greenlet at 0x22178eabf60: async_fetch_manifest(570, 373301, {'download': '3384473472', 'gid': '688587217582548, False, 373301, branch_name='public', branch_pass=None)> failed with TypeError
The error arises because the script tries to compute:
int(manifest_gid)
but manifest_gid
is a at best dictionary, or at worst some weird construct with a missing }
:
{'download': '80', 'gid': '3442758096700779883', ', False, 401531
You probably want to extract the value linked to gid
(here 3442758096700779883
) and pass it as the manifest_gid
argument.
I just encountered the same error and it turns out it's a bug in https://github.com/ValvePython/steam
Here is the corresponding pull request that fixes it with a detailed explanation in the attached issue: https://github.com/ValvePython/steam/pull/437
Steps to Reproduce the behavior Run:
steamctl depot list -a 570
Logs
steamctl -l debug
``` [DEBUG] steamctl: Parsed args: {'versions_report': None, 'log_level': 'debug', 'anonymous': False, 'user': None, 'password': None, 'command': 'depot', '_cmd_func': 'steamctl.commands.depot.gcmds:cmd_depot_list', 'subcommand': 'list', 'cell_id': None, 'os': 'any', 'file': None, 'app': 570, 'depot': None, 'manifest': None, 'branch': 'public', 'skip_depot': None, 'skip_login': False, 'skip_licenses': False, 'long': False, 'vpk': False, 'name': None, 'regex': None} [DEBUG] steamctl.utils.storage: Opening file (r): C:\Users\overklassniy\AppData\Local\steamctl\steamctl\cs_servers.json [DEBUG] CachingCDNClient: No steam licenses found on SteamClient instance [DEBUG] steamctl.utils.storage: Opening file (r): C:\Users\overklassniy\AppData\Local\steamctl\steamctl\client\lastuser [INFO] SteamClient: Reusing previous username: [INFO] SteamClient: Hint: use 'steamctl --userVersions Report
steamctl --versions-report
```yaml steamctl: 0.9.5 Dependencies: steam: 1.4.4 appdirs: 1.4.4 argcomplete: 3.2.2 tqdm: 4.66.1 arrow: 1.3.0 pyqrcode: 1.2.1 beautifulsoup4: 4.12.3 vpk: 1.4.0 vdf: 3.4 gevent-eventemitter: 2.1 gevent: 23.9.1 greenlet: 3.0.3 pyyaml: Not Installed pycryptodomex: 3.20.0 protobuf: 3.20.3 Python runtime: executable: C:\Users\overklassniy\Desktop\venv\Scripts\python.exe version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] platform: win32 System info: system: Windows machine: AMD64 release: 10 version: 10.0.19045 ```