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...

I Got Both Google Cybersecurity and and ISC2 Certified in Cybersecurity. Should You?

The Google Cybersecurity Certificate and the ISC2 Certified in Cybersecurity are two of the most popular cybersecurity certifications available. Both certifications cover a wide range of topics, including network security, application security, and security operations. However, there are some key differences between the two certifications. Both Google Cybersecurity Certificate and the ISC2 Certified in Cybersecurity are considered entry-level certifications The Google Cybersecurity Certificate is very friendly for people who did not come from a computer background, but if you already know IT, Linux, SQL, or Python, you will have an advantage here. You will also learn some practical cybersecurity tools, such as SIEM and Splunk log reading, and you will end up trying to write incident report logs, short analysis reports, and so on.   The ISC2 Certified in Cybersecurity is more focused on theoretical and base level knowledge, with a bit more discussion on the differences among in...

I finished "Certified in Cybersecurity" by ISC2 in (ahem!) 2.5 days, and passed the exam. What did I learn?

I decided to look into another introductory cybersecurity certification after finishing the Google Cybersecurity Professional Certificate back in June in 5 days. Took me a while due to other obligations, but I finally decided on "Certified in Cybersecurity" by ISC2, and I started last Thursday.  I finished all coursework by Saturday, and I was waiting for the peer-graded assignments to be graded. That was when I realized this is only half the battle (yes, I am quite bad at research sometimes). This is a prep course for the actual ISC2 CC certification exam, and that cost $199.  So I went on Google to look for a discount code, as there often are for these.  That is when I found that ISC2 is doing a "One Million CC" initiative... It will give away 1 million CC prep course and exams absolutely free to people around the world. It's even available in languages such a Spanish, German, Chinese, and Japanese, in addition to English! That's right... the self-paced C...