alpertunga-bile / prompt-generator-comfyui

Custom AI prompt generator node for the ComfyUI
MIT License
72 stars 8 forks source link

[BUG]Need what special dependence or specific version, always error, can not start normally #14

Open alenhrp opened 3 months ago

alenhrp commented 3 months ago

image Need what special dependence or specific version, always error, can not start normally?

alpertunga-bile commented 3 months ago

Hello, thanks for reporting. I did a clean setup and it seems the node is working. Here are the steps that I did:

  1. Download and extract the latest portable version of the ComfyUI which is ComfyUI_windows_portable_nvidia_cu121_or_cpu.7z.
  2. Go to the ComfyUI_windows_portable folder and run the run_nvidia_gpu.bat file to check if everything is working.
  3. Add a Stable Diffusion model under the models/checkpoints folder.
  4. Download the female_positive_generator_v2 prompt generator model from this link to the models/prompt_generators folder and extract it there.
  5. Go to the custom_nodes folder and clone the repository with the git clone https://github.com/alpertunga-bile/prompt-generator-comfyui.git command.
  6. Go to the ComfyUI_windows_portable folder again and run the run_nvidia_gpu.bat file to check if everything is working.

The code is checking if the python_embeded folder is present or not so executing the run_nvidia_gpu.bat file in the ComfyUI_windows_portable folder is essential.

I hope these steps are solved your issue if it is not please let me know.

alenhrp commented 3 months ago

Hello, thanks for reporting. I did a clean setup and it seems the node is working. Here are the steps that I did:

  1. Download and extract the latest portable version of the ComfyUI which is ComfyUI_windows_portable_nvidia_cu121_or_cpu.7z.
  2. Go to the ComfyUI_windows_portable folder and run the run_nvidia_gpu.bat file to check if everything is working.
  3. Add a Stable Diffusion model under the models/checkpoints folder.
  4. Download the female_positive_generator_v2 prompt generator model from this link to the models/prompt_generators folder and extract it there.
  5. Go to the custom_nodes folder and clone the repository with the git clone https://github.com/alpertunga-bile/prompt-generator-comfyui.git command.
  6. Go to the ComfyUI_windows_portable folder again and run the run_nvidia_gpu.bat file to check if everything is working.

The code is checking if the python_embeded folder is present or not so executing the run_nvidia_gpu.bat file in the ComfyUI_windows_portable folder is essential.

I hope these steps are solved your issue if it is not please let me know.

Yes, I did what you said, but the problem remained. image

image

alenhrp commented 3 months ago

Hello, thanks for reporting. I did a clean setup and it seems the node is working. Here are the steps that I did:

  1. Download and extract the latest portable version of the ComfyUI which is ComfyUI_windows_portable_nvidia_cu121_or_cpu.7z.
  2. Go to the ComfyUI_windows_portable folder and run the run_nvidia_gpu.bat file to check if everything is working.
  3. Add a Stable Diffusion model under the models/checkpoints folder.
  4. Download the female_positive_generator_v2 prompt generator model from this link to the models/prompt_generators folder and extract it there.
  5. Go to the custom_nodes folder and clone the repository with the git clone https://github.com/alpertunga-bile/prompt-generator-comfyui.git command.
  6. Go to the ComfyUI_windows_portable folder again and run the run_nvidia_gpu.bat file to check if everything is working.

The code is checking if the python_embeded folder is present or not so executing the run_nvidia_gpu.bat file in the ComfyUI_windows_portable folder is essential. I hope these steps are solved your issue if it is not please let me know.

Yes, I did what you said, but the problem remained. image

image

I have now switched to female_positive_generator_v2 again, but still IMPORT FAILED on startup, please check and verify, thanks!

alpertunga-bile commented 3 months ago

Hello, @alenhrp. After searching, I found the answer. I am assuming that you are using this ZHO-ComfyUI repository and you are facing this error:

error

You are facing this error not because of the node but because of the ZHO-ComfyUI repository. The repository is not up-to-date with the ComfyUI repository so it misses some parts of the updates and it causes the error.

So how can you overcome this issue? You can download the ComfyUI repository and copy the:

Or you can use the ComfyUI repository and download and replace with the folders from the ZHO-ComfyUI's download section.

I tried with the first option and it seems working.

alenhrp commented 3 months ago

Thank you very much for your detailed identification and analysis! Although my directory name is "Zho_Chinese_ComfyUl_windows_portable", my local code is already in the (https://github.com/comfyanonymous/ComfyUI) library and updated daily with the latest changes.