@@ -97,7 +97,11 @@ def prepare_env():
9797
9898 if keep_updated .lower () != "n" :
9999 # Add the user to the mailing list
100- webbrowser .open ("https://forms.gle/UKQ9rumczFDvwVmg7" )
100+ try :
101+ webbrowser .open ("https://forms.gle/UKQ9rumczFDvwVmg7" )
102+ except Exception :
103+ print ("Failed to open browser. Please open the browser and navigate to the URL below." )
104+ print ("https://forms.gle/UKQ9rumczFDvwVmg7" )
101105
102106 with open (config_path , "w" ) as f :
103107 toml .dump (config , f )
@@ -172,7 +176,13 @@ def wait_for_server(llmstack_environment, timeout):
172176 time .sleep (2 + (random .randint (0 , 1000 ) / 1000 ))
173177 continue
174178
175- webbrowser .open (f'http://{ llmstack_environment ["LLMSTACK_HOST" ]} :{ llmstack_environment ["LLMSTACK_PORT" ]} ' )
179+ try :
180+ webbrowser .open (f'http://{ llmstack_environment ["LLMSTACK_HOST" ]} :{ llmstack_environment ["LLMSTACK_PORT" ]} ' )
181+ except Exception :
182+ print ("\n Failed to open browser. Please open the browser and navigate to the URL below." )
183+ print (
184+ f"LLMStack server is running at http://{ llmstack_environment ['LLMSTACK_HOST' ]} :{ llmstack_environment ['LLMSTACK_PORT' ]} "
185+ )
176186
177187
178188def print_compose_logs (follow = True , stream = True ):
@@ -302,7 +312,7 @@ def signal_handler(sig, frame):
302312 llmstack_environment ["TAG" ] = args .tag
303313
304314 # Load default store apps
305- llmstack_environment ["DJANGO_MANAGEPY_LOADSTOREAPPS" ] = "on"
315+ os . environ ["DJANGO_MANAGEPY_LOADSTOREAPPS" ] = "on"
306316
307317 start (llmstack_environment )
308318
0 commit comments