This is a voice assistant, I'm trying to apply google maps although. An error appeared -
"The system cannot find the path specified."... I think the problem is the application location. How can I fix this?
Here is my code:
if "where is" in data: listening = True data = data.split(" ") location_url = "https://www.google.com/maps/place/" + str(data[2]) respond("Hold on Sienan, I will show you where " + data[2] + " is.") maps_arg = '/usr/bin/open -a "C:/Program Files/Google/Chrome/Application/Google Chrome.app"' + location_url os.system(maps_arg) maps_arg = '/usr/bin/open -a "C:/Program Files/Google/Chrome/Application/Google Chrome.app"' + location_url
'"... Chrome.app"'andlocation_urlso it could create one long string and system may treat it as single value withpath. You have to add space after closing"in"...Chrome.app" '