#ModuleNotFoundError No module named 'ldm.invoke'

63 messages ยท Page 1 of 1 (latest)

lone crater
#
Traceback (most recent call last):
  File "/home/ashtaka/AI/InvokeAI/scripts/invoke.py", line 15, in <module>
    from ldm.invoke.prompt_parser import PromptParser
ModuleNotFoundError: No module named 'ldm.invoke'```
#

I'm not too sure how to deal with this

#

I did everything the manual installation told me to

#

I did not find any error related to it on GitHub and Discord

#

I'm on Fedora 36 aka Linux

#

I will be back in 10+ hours sorry for that if anyone want to help

small merlin
#

Did you maybe not activate the environment? e.g. if you installed with conda, conda activate invokeai

lone crater
#

Okay I used a venv instead and it worked

raw pasture
small merlin
raw pasture
marsh temple
#

module isnt linking, I am activated and can see the file in the dir

#

ubuntu 22.10 4090

#

samething happens when I try to configure

#

python 3.10

opal sable
#

can you try pip install -r environments-and-requirements\requirements-base.txt and see if that fixes your issue

#

do it after it fails

#

coz you need to be in the invokeai env for that

marsh temple
opal sable
#

the file exists though?

#

the slash

#

change it the other way

#

pip install -r environments-and-requirements/requirements-base.txt

dire stratus
#

I am having the same issue on Mac after installing the one click install Option. I cant get it to run

dire stratus
#

@opal sable i hope it is okay for me to tag you - I installed on Mac 2.2.3 via the "one click" automated install. Everything went well up until this point, any idea what to do here?

Unfortunately I have only little understanding of CLIs so i wanted to use the GUI like a proper noob ;-;

opal sable
#

let it fail

#

then run the above command and tell me if that fixes for you

dire stratus
#

the ldm.invoke.CLI file also simply doesnt exist on my mac, idk what went wrong tbh

opal sable
#

let it fail

#

and run this

#

conda install -c conda-forge python

#

then run that above command again

dire stratus
#

okay

opal sable
#

your pip is broken. This should hopefully fix it. I fixed this issue for another user yesterday with the same steps

#

if everything succeeds, you'll be good to go

dire stratus
#

I just reinstalled pip because it didnt work at all before

#

will try ty

opal sable
#

ye do a full python install without the above command

#

then do pip install -e .

#

basically these two

#

conda install -c conda-forge python
pip install -e .

dire stratus
#

i dont have conda command evidently...hate terminal

opal sable
#

you need to let it fail

#

that'll activate the env for you

#

you'll see (invokeai) next to the terminal start

#

when conda is active

#

worst case scenario, you download conda but lets hope it doesnt come to that

dire stratus
#

@opal sable bro...i gotta apologize lmao...i have been running the invoke.py file the whole time โ€” not the invoke.sh file. I just started up the sh file and everything works flawlessly now ๐Ÿ’€ proper stupid haha

opal sable
#

enjoy the app

dire stratus
#

@opal sable right? ^

opal sable
#

but if they are, then your solution should fix it

lone crater
#

Right now I'm using a conda env on the main branch and it works fine

#

And I don't use the shell file

marsh temple