@@ -149,9 +149,6 @@ def install(
149149 # install the launch/update scripts into the runtime directory
150150 self .instance .install_user_scripts ()
151151
152- # run through the configuration flow
153- self .instance .configure ()
154-
155152
156153class InvokeAiInstance :
157154 """
@@ -242,53 +239,6 @@ def install(self, extra_index_url=None, optional_modules=None, find_links=None):
242239 )
243240 sys .exit (1 )
244241
245- def configure (self ):
246- """
247- Configure the InvokeAI runtime directory
248- """
249-
250- auto_install = False
251- # set sys.argv to a consistent state
252- new_argv = [sys .argv [0 ]]
253- for i in range (1 , len (sys .argv )):
254- el = sys .argv [i ]
255- if el in ["-r" , "--root" ]:
256- new_argv .append (el )
257- new_argv .append (sys .argv [i + 1 ])
258- elif el in ["-y" , "--yes" , "--yes-to-all" ]:
259- auto_install = True
260- sys .argv = new_argv
261-
262- import messages
263- import requests # to catch download exceptions
264-
265- auto_install = auto_install or messages .user_wants_auto_configuration ()
266- if auto_install :
267- sys .argv .append ("--yes" )
268- else :
269- messages .introduction ()
270-
271- from invokeai .frontend .install .invokeai_configure import invokeai_configure
272-
273- # NOTE: currently the config script does its own arg parsing! this means the command-line switches
274- # from the installer will also automatically propagate down to the config script.
275- # this may change in the future with config refactoring!
276- succeeded = False
277- try :
278- invokeai_configure ()
279- succeeded = True
280- except requests .exceptions .ConnectionError as e :
281- print (f"\n A network error was encountered during configuration and download: { str (e )} " )
282- except OSError as e :
283- print (f"\n An OS error was encountered during configuration and download: { str (e )} " )
284- except Exception as e :
285- print (f"\n A problem was encountered during the configuration and download steps: { str (e )} " )
286- finally :
287- if not succeeded :
288- print ('To try again, find the "invokeai" directory, run the script "invoke.sh" or "invoke.bat"' )
289- print ("and choose option 7 to fix a broken install, optionally followed by option 5 to install models." )
290- print ("Alternatively you can relaunch the installer." )
291-
292242 def install_user_scripts (self ):
293243 """
294244 Copy the launch and update scripts to the runtime dir
0 commit comments