Eel icon indicating copy to clipboard operation
Eel copied to clipboard

OSError: Can't find Google Chrome/Chromium installation

Open abyordon opened this issue 3 years ago • 3 comments

hello, pls i need ur help concernin d python eel package developed by chris knot. i hv termux on my android 10 phone. on it i installed python 3 & d eel package. i try to run ds lines of code from d termux terminal:

import eel eel.init('web') eel.start('index.html')

immediately after d last line, ds error was thrown:

raise EnvironmentError("Can't find %s installation" % browser_module.name) OSError: Can't find Google Chrome/Chromium installation

ds indicated dt python eel could not get d location of chrome browser on my phone. i searchd evrywea for d chrome executable / binary, but i could not find it. if i hv d location, i could hv use ds code

import eel.browsers eel.browsers.set_path('chrome', '/path/to/chrome/on/my/phone')

from my online search, i got ds command for startin chrome from d terminal:

am start --user 0 -n com.android.chrome/com.google.android.apps.chrome.Main

i tried to use it inside:

eel.start('index.html', cmdline_args=['... d command ...'])

still, it couldn't launch d chrome app. on a windows operatin system, its easy to get d path of chrome.exe. i just want to find out d chrome path on my android phone. pls help!

chrome browser is right dea on my android phone but i dont know how to access it from python eel

alabi abiodun [email protected]

abyordon avatar May 10 '22 10:05 abyordon

Same here. I have chrome. but it is the portable version. how do I link it?

Advik-B avatar Jun 22 '22 11:06 Advik-B

@abyordon when you said you tried the command, did you use mode=custom? like eel.start('index.html', mode=custom, cmdline_args[command])?

even if that works the command you got will mostly just open chrome where you left it. try using pyjnius as Vito Gentile suggested in https://stackoverflow.com/questions/27812852/webbrowser-open-doesnt-work-on-android

bitmvk avatar Jun 26 '22 16:06 bitmvk