Skip to content

Android reports an error #4

@tang-butian

Description

@tang-butian

Windows is fine, but an error is reported on Android:

EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'selenium.common.exceptions.WebDriverException'>
Error Contents: Message: 'chromedriver' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home

                                               Traceback (most recent call last):
                                                 File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.selenium/lib/selenium/webdriver/common/service.py", line 73, in start
                                                   self.process = subprocess.Popen(cmd, env=self.env,
                                                 File "/data/user/0/org.xbmc.kodi/cache/apk/assets/python3.8/lib/python3.8/subprocess.py", line 854, in __init__
                                                   self._execute_child(args, executable, preexec_fn, close_fds,
                                                 File "/data/user/0/org.xbmc.kodi/cache/apk/assets/python3.8/lib/python3.8/subprocess.py", line 1702, in _execute_child
                                                   raise child_exception_type(errno_num, err_msg, err_filename)
                                               PermissionError: [Errno 13] Permission denied: '/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.selenium//bin/chromedriver/linux64/chromedriver'
                                               
                                               During handling of the above exception, another exception occurred:
                                               
                                               Traceback (most recent call last):
                                                 File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.cine/addon.py", line 2182, in <module>
                                                   plugin.run()
                                                 File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.xbmcswift2/lib/xbmcswift2/plugin.py", line 338, in run
                                                   items = self._dispatch(self.request.path)
                                                 File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.xbmcswift2/lib/xbmcswift2/plugin.py", line 312, in _dispatch
                                                   listitems = view_func(**items)
                                                 File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.cine/addon.py", line 1225, in index
                                                   storage['homesort'] = get_categories()
                                                 File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.cine/addon.py", line 299, in get_categories
                                                   log(openURLWebDriverContent('http://www.baidu.com'))
                                                 File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.cine/addon.py", line 829, in openURLWebDriverContent
                                                   driver = webdriver.Chrome(driverPath, chrome_options=options)
                                                 File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.selenium/lib/selenium/webdriver/chrome/webdriver.py", line 68, in __init__
                                                   self.service.start()
                                                 File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.selenium/lib/selenium/webdriver/common/service.py", line 94, in start
                                                   raise WebDriverException(
                                               selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home
                                               
                                               -->End of Python script error report<--

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions