if-ai / IF_prompt_MKR

An A1111 extension to let the AI make prompts for SD using Oobabooga
https://ko-fi.com/impactframes/shop
99 stars 9 forks source link

No module named 'OpenAI" - Cannot install extension #11

Closed revolvedai closed 3 months ago

revolvedai commented 4 months ago

Got this error trying to install: *** Error loading script: if_prompt_mkr.py Traceback (most recent call last): File "E:\SD\stable-diffusion-webui\modules\scripts.py", line 469, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "E:\SD\stable-diffusion-webui\modules\script_loading.py", line 10, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "E:\SD\stable-diffusion-webui\extensions\IF_prompt_MKR\scripts\if_prompt_mkr.py", line 19, in from openai import OpenAI ModuleNotFoundError: No module named 'openai'

I go the installation locally and while trying to install on RunDiffusion.

if-ai commented 4 months ago

it just needs to pip install openai on A1111 environment. I added a new file that should do it automatically when you start A1111 SDnext or Forge