Skip to content

[BUG] SyntaxWarning when importing SteamID in python 3.14 #489

@dkuegler

Description

@dkuegler

Description
Syntax error on import pf SteamID:

...\.venv\Lib\site-packages\steam\steamid.py:504: SyntaxWarning: "\-" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\-"? A raw string is also an option.
...\.venv\Lib\site-packages\steam\steamid.py:577: SyntaxWarning: "\(" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\("? A raw string is also an option.
  data_match = re.search("OpenGroupChat\( *'(?P<steamid>\d+)'", text)

Steps to Reproduce the behavior

from steam.steamid import SteamID

Expected behavior
No errors.

Screenshots
If applicable, add screenshots to help explain your problem.

Versions Report

python -m steam.versions_report

Python version 3.14.2
Running on Windows, installed with uv most recent (uv 0.9.16 (a63e5b62e 2025-12-06))
Only other package installed (numpy 2.3.4, not tested without)

steam: 1.4.4

Dependencies:
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "...\.venv\Lib\site-packages\steam\versions_report\__main__.py", line 4, in <module>
    versions_report()
    ~~~~~~~~~~~~~~~^^
  File "...\.venv\Lib\site-packages\steam\versions_report\__init__.py", line 13, in versions_report
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions