Enable Python 3.14 in build matrix#2429
Merged
Merged
Conversation
|
邮件已收到,谢谢您!
|
Owner
Author
|
The build appears to be failing, spaCy 3.8.9 added Python 3.14 wheels but they appear to have a runtime issue related to Pydantic v1 as described in explosion/spaCy#13885 |
caad386 to
4eae68a
Compare
Owner
Author
|
It looks like a few sub-dependencies include I believe we are still waiting on these projects to finish upgrading to pydantic V2, or for pydantic 2.13 to be released: |
gunthercox
commented
Mar 23, 2026
| ) | ||
| sys.version_info >= (3, 14), | ||
| 'redisvl depends on pydantic v1 which is incompatible with Python 3.14+' | ||
| ) # TODO: Remove this skip when redisvl supports pydantic v2 and Python 3.14+ |
Owner
Author
There was a problem hiding this comment.
I'm marking these as skipped for now since the redis storage adapter is new/still experimental. Before skipping, the error I'm seeing is:
======================================================================
ERROR: setUpClass (storage.test_redis_adapter.StorageAdapterUpdateTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/runner/work/ChatterBot/ChatterBot/tests/storage/test_redis_adapter.py", line 24, in setUpClass
cls.adapter = RedisVectorStorageAdapter(
~~~~~~~~~~~~~~~~~~~~~~~~~^
database_uri='redis://localhost:6379/0'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/home/runner/work/ChatterBot/ChatterBot/chatterbot/storage/redis.py", line 103, in __init__
from chatterbot.vectorstores import RedisVectorStore
File "/home/runner/work/ChatterBot/ChatterBot/chatterbot/vectorstores.py", line 9, in <module>
from redisvl.redis.utils import convert_bytes
File "/opt/hostedtoolcache/Python/3.14.3/x64/lib/python3.14/site-packages/redisvl/redis/utils.py", line 7, in <module>
from redisvl.schema.fields import VectorDataType
File "/opt/hostedtoolcache/Python/3.14.3/x64/lib/python3.14/site-packages/redisvl/schema/__init__.py", line 1, in <module>
from redisvl.schema.schema import IndexInfo, IndexSchema, StorageType
File "/opt/hostedtoolcache/Python/3.14.3/x64/lib/python3.14/site-packages/redisvl/schema/schema.py", line 10, in <module>
from redisvl.schema.fields import BaseField, FieldFactory
File "/opt/hostedtoolcache/Python/3.14.3/x64/lib/python3.14/site-packages/redisvl/schema/fields.py", line 50, in <module>
class TextFieldAttributes(BaseFieldAttributes):
...<9 lines>...
"""Used to perform phonetic matching during search"""
File "/opt/hostedtoolcache/Python/3.14.3/x64/lib/python3.14/site-packages/pydantic/v1/main.py", line 221, in __new__
inferred = ModelField.infer(
name=var_name,
...<3 lines>...
config=config,
)
File "/opt/hostedtoolcache/Python/3.14.3/x64/lib/python3.14/site-packages/pydantic/v1/fields.py", line 504, in infer
return cls(
name=name,
...<7 lines>...
field_info=field_info,
)
File "/opt/hostedtoolcache/Python/3.14.3/x64/lib/python3.14/site-packages/pydantic/v1/fields.py", line 434, in __init__
self.prepare()
~~~~~~~~~~~~^^
File "/opt/hostedtoolcache/Python/3.14.3/x64/lib/python3.14/site-packages/pydantic/v1/fields.py", line 544, in prepare
self._set_default_and_type()
~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/opt/hostedtoolcache/Python/3.14.3/x64/lib/python3.14/site-packages/pydantic/v1/fields.py", line 576, in _set_default_and_type
raise errors_.ConfigError(f'unable to infer type for attribute "{self.name}"')
pydantic.v1.errors.ConfigError: unable to infer type for attribute "phonetic_matcher"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.