#Cannot install, python script crashes with NotADirectory error

21 messages · Page 1 of 1 (latest)

spare wing
#

Specs:
Windows 10 x64
32 GB DDR4 RAM
AMD Ryzen 7 8-core 3.60 GHz
Free Space of 230 GB HDD on H: (C: being a 1 TB ssd, but H: is the target installation drive)
Nvidia RTX 3060Ti graphics card
Python version: 3.9.1

invokeAI config:
--outdir="H:/InvokeAI/outputs"
--embedding_path="H:/InvokeAI/embeddings"
--precision=float32
--max_loaded_models=10
--no-nsfw_checker
--xformers
--ckpt_convert
--free_gpu_mem

Added registry entry

error:
NotADirectoryError: [WinError 267] Invalid directory name:
'C:\Users\<my user name, without spaces or diacritics>\AppData\Local\Temp\invokeai-installer-tmp2ta6vxg5\Lib\site-packages\charset_normalizer\md.cp39-win_amd64.pyd

call stack

slate girder
#

how did you install invokeai?

spare wing
slate girder
#

so you ran install.bat?
is there error you got from running install.bat or from invoke.bat?

spare wing
#

Oh sorry, it was install.bat

#

Configuration option selection went well, model downloading too with a few 404s, then I was offered a choice between stable-diffusion-1.x.x, 2.x.x, a few options i don't remember (not home atm), and a "i don't know" option

#

I chose the don't know option, then the crash happened

slate girder
#

was it something like this?

#

or was it the invokeai-configure?

spare wing
#

Not this one, i picked the gpu (with cuda) option

#

I'll provide more info when I get back home

slate girder
#

there are 2 problems I can think of
Either there is a problem with your python 3.9. Python 3.10.9 is recomended. 3.11 will not work but I don't know about 3.9
One other thing is, if you don't have any model downloaded and configured, when running invokeai webui, it will crash. But I don't think this is what's happening.

spare wing
#

I'll retry the installation with 3.10 then, i'll let you know how it goes

#

Thanks

spare wing
#

@slate girder it's me again

#

i've tried installing with python 3.10, i'm getting a new "_curses" not found error when loading modules

#

do i need to use python 3.10.9 specifically?

slate girder
#

no, I think i'm using 3.10.6

#

can you maybe make a picture of the error message?

spare wing
#

i reinstalled it using python 3.9, and even though i got the same behavior as in the original post, i still could launch and use the invokeAI web UI

#

idk if there's some advantage to using 3.10 but i think that given my situation, i'll just stick to 3.9