I (Sorta) Fixed an Invoke.AI Installer Bug about "npyscreen module not found" in One Hour (NOT a joke)
Everybody is talking about AI. ChatGPT, Stable Diffusion, Midjourney...
(By the way, if you ran out of credits on Midjourney, Blue Willow will let you generate UNLIMITED amount of art. Maybe there will be more invites... )
And someone made something that can run on your home gaming PC... Provided you have a good (read: gaming) video card... Called Invoke.ai. It's so good, they're going commercial.
So why am I talking about this? Turns out, you *can* still download and install InvokeAI on your own PC. It just requires a little more work.
So I went ahead and downloaded the installer... run it, and promptly hit a bug...
![]() |
| invokeAI configuration error: npyscreen module not found |
Searching the net shows this problem is fairly well-know, but nobody had tracked down what caused this problem or have a fix for it. Someone claimed manually installing the stuff works, but it did not work for me.
I happen to know a little Python (both the programming and the environment) and I enjoy solving problems, so I dug into it.
Turns out the answer is quite simple: You need to make sure your invokeai python cache has npyscreen, which is probably somewhere already in your existing Python install.
If you understood that fine, great! If not,, let me explain.
InvokeAI keeps its own copies of Python modules in <invokeai>\.venv\Lib\site-packages\* because it has its own set of "dependencies" (i.e. it only wants certain versions of certain modules/libraries) and if you run into the error above, which says
ModuleNotFoundError: No module named 'npyscreen'
Check in your <invokeai>\.venv\Lib\site-packages\ (where <invokeai> is where you installed invokeAI) Note the "period" after the first slash.
You will probably find that you do NOT have such a module, but you do have one with the version number after it.
The solution is simple. MAKE A COPY of that directory with the version number. THEN RENAME IT by removing the version number. So you now have two: one with the version number, and one without. You can also copy the one from your regular Python install cache, but it's the same thing.
Now, go back to command prompt and type
invokeai-configure
It should now start normally.
Enjoy!


Comments
Post a Comment