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

title: str | None error in CharShort #101

Open
GDjkhp opened this issue Apr 13, 2024 · 1 comment
Open

title: str | None error in CharShort #101

GDjkhp opened this issue Apr 13, 2024 · 1 comment

Comments

@GDjkhp
Copy link

GDjkhp commented Apr 13, 2024

Traceback (most recent call last):
File "C:\Users\ACER\Desktop\discord-bots\level-up-loser-python-branch\test2.py", line 60, in
from characterai import aiocai
File "C:\Users\ACER\AppData\Local\Programs\Python\Python39\lib\site-packages\characterai_init_.py", line 8, in
from .aiocai.client import aiocai
File "C:\Users\ACER\AppData\Local\Programs\Python\Python39\lib\site-packages\characterai\aiocai_init_.py", line 8, in
from .client import aiocai
File "C:\Users\ACER\AppData\Local\Programs\Python\Python39\lib\site-packages\characterai\aiocai\client.py", line 4, in
from .methods import Methods
File "C:\Users\ACER\AppData\Local\Programs\Python\Python39\lib\site-packages\characterai\aiocai\methods_init_.py", line 1, in
from .users import Users
File "C:\Users\ACER\AppData\Local\Programs\Python\Python39\lib\site-packages\characterai\aiocai\methods\users.py", line 2, in
from ...types import user
File "C:\Users\ACER\AppData\Local\Programs\Python\Python39\lib\site-packages\characterai\types\user.py", line 5, in
from .character import CharShort
File "C:\Users\ACER\AppData\Local\Programs\Python\Python39\lib\site-packages\characterai\types\character.py", line 10, in
class Character(BaseModel, Avatar):
File "C:\Users\ACER\AppData\Local\Programs\Python\Python39\lib\site-packages\characterai\types\character.py", line 93, in Character
title: str | None
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

@Karvp
Copy link

Karvp commented Apr 20, 2024

You should update your Python to at least 3.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants