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
When using milvus-lite I get an ugly SyntaxWarning on Python 3.12.4:
.venv/lib/python3.12/site-packages/milvus_lite/server.py:51: SyntaxWarning: invalid escape sequence '\-'
raise RuntimeError(f"Unsupport db name {self._db_file.name}, the name must match ^[a-zA-Z0-9.\-_]+$")
Because your server implementation does not use a raw-string Python will throw this warning since Python 3.12+.
Versions < Python 3.12 resulted in a DeprecationWarning (see here), which probably were filtered by your pytest.ini
A fix would be to either use a raw-string in combination with your f-string, like
raiseRuntimeError(rf"Unsupport db name {self._db_file.name}, the name must match ^[a-zA-Z0-9.\-_]+$")
or escape the backslash, like
raiseRuntimeError(rf"Unsupport db name {self._db_file.name}, the name must match ^[a-zA-Z0-9.\\-_]+$")
When using
milvus-lite
I get an ugly SyntaxWarning on Python 3.12.4:Because your server implementation does not use a raw-string Python will throw this warning since Python 3.12+.
Versions < Python 3.12 resulted in a DeprecationWarning (see here), which probably were filtered by your pytest.ini
A fix would be to either use a raw-string in combination with your f-string, like
or escape the backslash, like
Enviornment Details
The text was updated successfully, but these errors were encountered: