shadowcz007 / comfyui-mixlab-nodes

Workflow-to-APP、ScreenShare&FloatingVideo、GPT & 3D、SpeechRecognition&TTS
https://mixlabnodes.com
MIT License
1.32k stars 83 forks source link

What's the correct version of pydantic? #219

Closed zhenyuanzhou closed 6 months ago

zhenyuanzhou commented 6 months ago

Traceback (most recent call last): File "F:\ComfyUI\ComfyUI\nodes.py", line 1876, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "F:\ComfyUI\ComfyUI\custom_nodes\comfyui-mixlab-nodes__init.py", line 17, in from .nodes.ChatGPT import get_llama_models,get_llama_model_path File "F:\ComfyUI\ComfyUI\custom_nodes\comfyui-mixlab-nodes\nodes\ChatGPT.py", line 1, in import openai File "F:\ComfyUI\python_embeded\Lib\site-packages\openai__init__.py", line 8, in from . import types File "F:\ComfyUI\python_embeded\Lib\site-packages\openai\types\init__.py", line 5, in from .image import Image as Image File "F:\ComfyUI\python_embeded\Lib\site-packages\openai\types\image.py", line 5, in from .._models import BaseModel File "F:\ComfyUI\python_embeded\Lib\site-packages\openai_models.py", line 21, in import pydantic.generics File "F:\ComfyUI\python_embeded\Lib\site-packages\pydantic\generics.py", line 2, in from ._migration import getattr_migration File "F:\ComfyUI\python_embeded\Lib\site-packages\pydantic_migration.py", line 4, in from .version import version_short ImportError: cannot import name 'version_short' from 'pydantic.version' (F:\ComfyUI\python_embeded\Lib\site-packages\pydantic\version.cp311-win_amd64.pyd)

Cannot import F:\ComfyUI\ComfyUI\custom_nodes\comfyui-mixlab-nodes module for custom nodes: cannot import name 'version_short' from 'pydantic.version' (F:\ComfyUI\python_embeded\Lib\site-packages\pydantic\version.cp311-win_amd64.pyd)

zhenyuanzhou commented 6 months ago

fixed with 1.10.15 version