kramcat/CharacterAI

Argument of type "str" cannot be assigned

Closed this issue · 7 comments

char = input("input char: ")
chat = client.chat.get_chat(char) #<< here the erorr

then how do I fix it, after I run it once it can't be run again

Can you provide more detail like the traceback, etc.

Can you provide more detail like the traceback, etc.
WhatsApp Image 2024-02-25 at 7 02 51 AM

like this?

What version of python are u using? Or did u enable type checking in vscode? disable it, in the init of PyCAI, chat has been overwritten with itself, vsc is wrong

@Karvp No, that not the problem
@FalcoTK hover over it of you have intellisense (vs code feature), here you have "char" so put in client.chat.get_chat(char=char), did notice that its because the class isn't initiated

@KubaPro010 I did mean the class wasn't initiated. Sorry for my messed-up words.

@Karvp No, that not the problem @FalcoTK hover over it of you have intellisense (vs code feature), here you have "char" so put in client.chat.get_chat(char=char), did notice that its because the class isn't initiated
arl bro, thank you :D

done