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
python-cachelib-0.13.0 fails to build with Python 3.13: pytest.PytestUnraisableExceptionWarning: Exception ignored in PyMapping_HasKeyString(); consider using PyMapping_HasKeyStringWithError(), PyMapping_GetOptionalItemString() or PyMapping_GetItemString(): None
#400
PyMapping_HasKeyString does not work on None
Accidentally, it used to return false result on silent errors.
Since Python 3.13, this is what happens instead:
>>> import pylibmc
>>> m = pylibmc.Client(["10.0.0.1"], binary=True)
Exception ignored in PyMapping_HasKeyString(); consider using PyMapping_HasKeyStringWithError(), PyMapping_GetOptionalItemString() or PyMapping_GetItemString():
Traceback (most recent call last):
File "/usr/lib64/python3.13/site-packages/pylibmc/client.py", line 142, in __init__
super().__init__(servers=translate_server_specs(servers),
TypeError: 'NoneType' object is not subscriptable
...
Exception ignored in PyMapping_HasKeyString(); consider using PyMapping_HasKeyStringWithError(), PyMapping_GetOptionalItemString() or PyMapping_GetItemString():
Traceback (most recent call last):
File "/usr/lib64/python3.13/site-packages/pylibmc/client.py", line 142, in __init__
super().__init__(servers=translate_server_specs(servers),
TypeError: 'NoneType' object is not subscriptable
When this is run via pytest, it leads to:
pytest.PytestUnraisableExceptionWarning: Exception ignored in PyMapping_HasKeyString(); consider using PyMapping_HasKeyStringWithError(), PyMapping_GetOptionalItemString() or PyMapping_GetItemString(): None
Fixespallets-eco/cachelib#400
Some pytest output
detailed build log: https://copr-be.cloud.fedoraproject.org/results/%40python/python3.13/fedora-rawhide-x86_64/07545359-python-cachelib/builder-live.log.gz
https://bugzilla.redhat.com/show_bug.cgi?id=2251780
Environment:
The text was updated successfully, but these errors were encountered: