Skip to main content

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

Popular posts from this blog

I finished Google Cybersecurity Certificate in 5 Days. What did I learn?

As of May and June 2023, there were a lot of buzz about the Google Cybersecurity professional certificate issued in conjunction with Coursera.  So I took the 8 course certificate program, and I was able to finish it in 5 days (May 31st to June 4th), which is so fast, it was within the 7 day trial period, so I did not pay anything (normally $49.00 USD).  I did go in with a couple unfair advantages: * I already know SQL * I already know Python * I was an IT professional  * I have taken a cybersecurity intro course before * I was also between jobs so I have a LOT of time to dedicate to studying * I have taken many Coursera courses before (back in early 2020) So is the course any good? I think it is a good course for people who have no idea what to expect, and this will give them a taste on what a job in cybersecurity will involve. The video lectures are relatively short, and there were a LOT of emphasis on the non-traditional non-technical background of many of the Google em...

6 tips to finish a Coursera Certificate Fast! (from the guy who did it in 5 days)

Hi, I am Captain Chang, an IT professional, and veteran of multiple Coursera certificates, most of them finished in 10 days or less. Recently, I finished the Google Cybersecurity Certificate in 5 days. A link to that video is in the description.  To me, Coursera education is a cheap introduction to a career you are considering, from data science and information technology to cybersecurity and user interface design, and a lot more for less than $50 a month. However, to get the most out of Coursera, there are some strategies you should follow.  While the strategies I talk about after this mainly applies to the the cybersecurity certificate, most of the tips should work in general toward other technical Coursera professional certificate programs as well. 1. Understanding how Coursera payment works Coursera is usually organized around "certificate programs", which has several courses. For example, the cybersecurity certificate course from Google / Coursera has 8 courses. [insert ...

So I bought a 6-key macro keyboard with a twist knob... how to program it?

One day, I was browsing Temu, when I came across this 6-key macro keyboard with a twist knob, and it's for a ridiculous price of like... $13.93 with free shipping.  So I ordered one.  It's here, and it's exactly as advertised... Except for one thing: there is no manual, and no driver. There is NO paper in the box either. And the listing has no instructions.  However, it is basically this item on Amazon:  https://www.amazon.com/Programming-Keyboard-Mechanical-Photoshop-Software/dp/B0B7B4MP29/ At least the Amazon seller put up a link to their copy of the driver: https://drive.google.com/file/d/1MvJGXrs-HVSmthIK4Z8NJZKMB8Ha4ZSr/view Which I have scanned and tested. And it works for the Temu one too. It's the same board.  The program needs to be unzipped and copied to a directory on your HD. It has no "installer".  The EXE is called "MINI Keyboard V02.1.1" The interface is also pretty crap, But basically, it goes like this.  The "keys" are mapp...