Open dancemanUK opened 2 weeks ago
use you new requirements.txt. ......\python_embeded\python.exe -s -m pip install -r requirements.txt
anthropic groq mistralai huggingface_hub pypdf2 pdf2image timm sentence-transformers byaldi opencv-python IPython python-dotenv nltk tiktoken matplotlib plotly kaleido networkx fastparquet pydantic rich supervision nano-graphrag qwen-vl-utils
ComfyUI-IF_AI_tools>......\python_embeded\python.exe -s -m pip install mistralai WARNING: Ignoring invalid distribution - (g:\comfyui+animatediff\python_embeded\lib\site-packages) Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple, https://pypi.ngc.nvidia.com Requirement already satisfied: mistralai in g:\comfyui+animatediff\python_embeded\lib\site-packages (0.1.8) Requirement already satisfied: httpx<0.26.0,>=0.25.2 in g:\comfyui+animatediff\python_embeded\lib\site-packages (from mistralai) (0.25.2) Requirement already satisfied: orjson<4.0.0,>=3.9.10 in g:\comfyui+animatediff\python_embeded\lib\site-packages (from mistralai) (3.9.15) Requirement already satisfied: pydantic<3.0.0,>=2.5.2 in g:\comfyui+animatediff\python_embeded\lib\site-packages (from mistralai) (2.8.2) Requirement already satisfied: anyio in g:\comfyui+animatediff\python_embeded\lib\site-packages (from httpx<0.26.0,>=0.25.2->mistralai) (3.7.1) Requirement already satisfied: certifi in g:\comfyui+animatediff\python_embeded\lib\site-packages (from httpx<0.26.0,>=0.25.2->mistralai) (2023.7.22) Requirement already satisfied: httpcore==1. in g:\comfyui+animatediff\python_embeded\lib\site-packages (from httpx<0.26.0,>=0.25.2->mistralai) (1.0.1) Requirement already satisfied: idna in g:\comfyui+animatediff\python_embeded\lib\site-packages (from httpx<0.26.0,>=0.25.2->mistralai) (2.10) Requirement already satisfied: sniffio in g:\comfyui+animatediff\python_embeded\lib\site-packages (from httpx<0.26.0,>=0.25.2->mistralai) (1.3.0) Requirement already satisfied: h11<0.15,>=0.13 in g:\comfyui+animatediff\python_embeded\lib\site-packages (from httpcore==1.->httpx<0.26.0,>=0.25.2->mistralai) (0.14.0) Requirement already satisfied: annotated-types>=0.4.0 in g:\comfyui+animatediff\python_embeded\lib\site-packages (from pydantic<3.0.0,>=2.5.2->mistralai) (0.5.0) Requirement already satisfied: pydantic-core==2.20.1 in g:\comfyui+animatediff\python_embeded\lib\site-packages (from pydantic<3.0.0,>=2.5.2->mistralai) (2.20.1) Requirement already satisfied: typing-extensions>=4.6.1 in g:\comfyui+animatediff\python_embeded\lib\site-packages (from pydantic<3.0.0,>=2.5.2->mistralai) (4.12.2) Requirement already satisfied: exceptiongroup in g:\comfyui+animatediff\python_embeded\lib\site-packages (from anyio->httpx<0.26.0,>=0.25.2->mistralai) (1.1.3) WARNING: Ignoring invalid distribution - (g:\comfyui+animatediff\python_embeded\lib\site-packages) WARNING: Ignoring invalid distribution - (g:\comfyui+animatediff\python_embeded\lib\site-packages)
try:
pip cache purge
to purge the packages temps
then upgrade pip:
python -m pip install --upgrade pip
pip uninstall mistralai
then install mistral again
pip install mistralai
if you are in portable move to the ......\python_embeded\python.exe -s -m pip
add the previous pip comands to that
File "G:\comfyUI+AnimateDiff\ComfyUI\custom_nodes\ComfyUI-IF_AI_tools__init__.py", line 13, in
from .IFChatPromptNode import IFChatPrompt
File "G:\comfyUI+AnimateDiff\ComfyUI\custom_nodes\ComfyUI-IF_AI_tools\IFChatPromptNode.py", line 19, in
from .send_request import send_request
File "G:\comfyUI+AnimateDiff\ComfyUI\custom_nodes\ComfyUI-IF_AI_tools\send_request.py", line 19, in
from .mistral_api import send_mistral_request
File "G:\comfyUI+AnimateDiff\ComfyUI\custom_nodes\ComfyUI-IF_AI_tools\mistral_api.py", line 8, in
from mistralai import Mistral
ImportError: cannot import name 'Mistral' from 'mistralai' (G:\comfyUI+AnimateDiff\python_embeded\lib\site-packages\mistralai__init__.py)
Cannot import G:\comfyUI+AnimateDiff\ComfyUI\custom_nodes\ComfyUI-IF_AI_tools module for custom nodes: cannot import name 'Mistral' from 'mistralai' (G:\comfyUI+AnimateDiff\python_embeded\lib\site-packages\mistralai__init__.py)