python-eel/Eel

OSError: Can't find Google Chrome/Chromium installation

Open

#588 创建于 2022年5月10日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)Python (570 fork)batch import
help wanted

仓库指标

Star
 (5,980 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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 abyordon@gmail.com

贡献者指南