Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

name 'ArrayJsonSchemaProperty' is not defined for library > 1.12.1 #498

Open
Eichhof opened this issue Mar 11, 2025 · 1 comment
Open

name 'ArrayJsonSchemaProperty' is not defined for library > 1.12.1 #498

Eichhof opened this issue Mar 11, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@Eichhof
Copy link

Eichhof commented Mar 11, 2025

Description

The elevenlabs library version 1.12.1 works well. All newer library version are producing the following error when running import elevenlabs

Traceback (most recent call last):
File "", line 1, in
File "/local/home/username/anaconda3/envs/chatbot/lib/python3.9/site-packages/elevenlabs/init.py", line 3, in
from .types import (
File "/local/home/username/anaconda3/envs/chatbot/lib/python3.9/site-packages/elevenlabs/types/init.py", line 14, in
from .agent_config import AgentConfig
File "/local/home/username/anaconda3/envs/chatbot/lib/python3.9/site-packages/elevenlabs/types/agent_config.py", line 5, in
from .array_json_schema_property import ArrayJsonSchemaProperty
File "/local/home/username/anaconda3/envs/chatbot/lib/python3.9/site-packages/elevenlabs/types/array_json_schema_property.py", line 26, in
from .object_json_schema_property import ObjectJsonSchemaProperty # noqa: E402
File "/local/home/username/anaconda3/envs/chatbot/lib/python3.9/site-packages/elevenlabs/types/object_json_schema_property.py", line 29, in
update_forward_refs(ObjectJsonSchemaProperty)
File "/local/home/username/anaconda3/envs/chatbot/lib/python3.9/site-packages/elevenlabs/core/pydantic_utilities.py", line 244, in update_forward_refs
model.update_forward_refs(**localns)
File "pydantic/main.py", line 814, in pydantic.main.BaseModel.update_forward_refs
File "pydantic/typing.py", line 554, in pydantic.typing.update_model_forward_refs
File "pydantic/typing.py", line 520, in pydantic.typing.update_field_forward_refs
File "pydantic/typing.py", line 66, in pydantic.typing.evaluate_forwardref
File "/local/home/username/anaconda3/envs/chatbot/lib/python3.9/typing.py", line 497, in _evaluate
self.forward_value = _eval_type(
File "/local/home/username/anaconda3/envs/chatbot/lib/python3.9/typing.py", line 256, in _eval_type
ev_args = tuple(_eval_type(a, globalns, localns, recursive_guard) for a in t.args)
File "/local/home/username/anaconda3/envs/chatbot/lib/python3.9/typing.py", line 256, in
ev_args = tuple(_eval_type(a, globalns, localns, recursive_guard) for a in t.args)
File "/local/home/username/anaconda3/envs/chatbot/lib/python3.9/typing.py", line 256, in _eval_type
ev_args = tuple(_eval_type(a, globalns, localns, recursive_guard) for a in t.args)
File "/local/home/username/anaconda3/envs/chatbot/lib/python3.9/typing.py", line 256, in
ev_args = tuple(_eval_type(a, globalns, localns, recursive_guard) for a in t.args)
File "/local/home/username/anaconda3/envs/chatbot/lib/python3.9/typing.py", line 254, in _eval_type
return t._evaluate(globalns, localns, recursive_guard)
File "/local/home/username/anaconda3/envs/chatbot/lib/python3.9/typing.py", line 497, in _evaluate
self.forward_value = _eval_type(
File "/local/home/username/anaconda3/envs/chatbot/lib/python3.9/typing.py", line 256, in _eval_type
ev_args = tuple(_eval_type(a, globalns, localns, recursive_guard) for a in t.args)
File "/local/home/username/anaconda3/envs/chatbot/lib/python3.9/typing.py", line 256, in
ev_args = tuple(_eval_type(a, globalns, localns, recursive_guard) for a in t.args)
File "/local/home/username/anaconda3/envs/chatbot/lib/python3.9/typing.py", line 254, in _eval_type
return t._evaluate(globalns, localns, recursive_guard)
File "/local/home/username/anaconda3/envs/chatbot/lib/python3.9/typing.py", line 493, in _evaluate
eval(self.forward_code, globalns, localns),
File "", line 1, in
NameError: name 'ArrayJsonSchemaProperty' is not defined

Code example

Import elevenlabs

Additional context

No response

@Eichhof Eichhof added the bug Something isn't working label Mar 11, 2025
@PaulAsjes
Copy link
Collaborator

Thanks for the report, looking into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants