I have been running some python scripts on a Ubuntu VM for a while now and they have worked correctly. Now that I have had to upgrade to Chrome 138 when the python script calls the Uivision script with the url, it just hangs and Uivision script is never started. The Uivision extension is installed and the Uivision html script has been generated. Allow browser to run urls has also been enabled. I have Googled and AI’ed all I can and am coming up empty handed. If I paste the url to run the macro in Chrome manually it works correctly.
Can you please post the Python code (only the part with the command line), then I can test it here.
What version of Ubuntu are you using?
Hi Matt,
Below is simplified version for testing purposes.
import subprocess
import time
import webbrowser
chrome_path = "/usr/bin/google-chrome"
user_data_dir = "/home/neoedbot/.config/google-chrome"
profile_name = "Profile 1"
# Launch Chrome with the correct profile
subprocess.Popen([
chrome_path,
f"--user-data-dir={user_data_dir}",
f"--profile-directory={profile_name}",
"--disable-dev-shm-usage",
"--disable-gpu",
"--window-size=1920,1080"
])
# Give Chrome a moment to launch
time.sleep(3)
# Open the macro URL in a new tab
macro_url = "file:///home/neoedbot/uivision/ui.vision.html?macro=test&direct=0&closeBrowser=0"
webbrowser.open_new_tab(macro_url)
This will load the browser with the correct profile and put the url in the browser but it hangs. If I hit the enter key while it is just spinning it works correctly. What am I missing?