-
Notifications
You must be signed in to change notification settings - Fork 61
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
unsupported operand type(s) for |: '_GenericAlias' and 'NoneType' #85
Comments
Hi. Can you give more information about the error. And what is the python version, please update it to 3.10 or higher. |
I am using python 3.8.5 to juggle a different dependency -- perhaps that is the issue. I think this is the full error message: Traceback (most recent call last): Cannot import /home/users/u6933473/chatGPT_analysis/comfyui/ComfyUI/custom_nodes/ComfyUI_Custom_Nodes_AlekPet module for custom nodes: unsupported operand type(s) for |: '_GenericAlias' and 'NoneType'Node -> PainterNode: PainterNode [Loading] [END] ComfyUI AlekPet Nodes |
Hi. I looked at the logs, the whole point is that python 3.8 does not support union type "|" (
parts: List[TranslatedPart] | None to this from typing import List, Union
parts: Union[List[TranslatedPart], None] = None
PS: It is best to update the python version, because the problem is not in my nodes, but in the version googletrans library, which does not support versions below 3.10. |
Thanks for the great custom nodes! I am getting this error after installing and import is failing:
comfyui/ComfyUI/custom_nodes/ComfyUI_Custom_Nodes_AlekPet module for custom nodes: unsupported operand type(s) for |: '_GenericAlias' and 'NoneType'
The text was updated successfully, but these errors were encountered: