simbake / web_search

web search extension for text-generation-webui
GNU General Public License v3.0
94 stars 19 forks source link

When I try to run this, I get this error: #18

Open nasawyer7 opened 10 months ago

nasawyer7 commented 10 months ago

Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 /bin/sh: 1: google-chrome: not found /bin/sh: 1: google-chrome-stable: not found /bin/sh: 1: google-chrome-beta: not found /bin/sh: 1: google-chrome-dev: not found /bin/sh: 1: google-chrome: not found /bin/sh: 1: google-chrome-stable: not found /bin/sh: 1: google-chrome-beta: not found /bin/sh: 1: google-chrome-dev: not found 16:39:45-461903 ERROR Failed to load the extension "web_search".
Traceback (most recent call last): File "/home/lenovoubuntu/Downloads/text-generation-webui-main/modules/extensions.py", line 37, in load_extensions exec(f"import extensions.{name}.script") File "", line 1, in File "/home/lenovoubuntu/Downloads/text-generation-webui-main/extensions/web_search/script.py", line 19, in service = Service(ChromeDriverManager().install()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/lenovoubuntu/Downloads/text-generation-webui-main/installer_files/env/lib/python3.11/site-packages/webdriver_manager/chrome.py", line 40, in install driver_path = self._get_driver_binary_path(self.driver) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/lenovoubuntu/Downloads/text-generation-webui-main/installer_files/env/lib/python3.11/site-packages/webdriver_manager/core/manager.py", line 40, in _get_driver_binary_path file = self._download_manager.download_file(driver.get_driver_download_url(os_type)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/lenovoubuntu/Downloads/text-generation-webui-main/installer_files/env/lib/python3.11/site-packages/webdriver_manager/drivers/chrome.py", line 32, in get_driver_download_url driver_version_to_download = self.get_driver_version_to_download() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/lenovoubuntu/Downloads/text-generation-webui-main/installer_files/env/lib/python3.11/site-packages/webdriver_manager/core/driver.py", line 48, in get_driver_version_to_download return self.get_latest_release_version() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/lenovoubuntu/Downloads/text-generation-webui-main/installer_files/env/lib/python3.11/site-packages/webdriver_manager/drivers/chrome.py", line 64, in get_latest_release_version determined_browser_version = ".".join(determined_browser_version.split(".")[:3]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'split'

Any ideas? I just downloaded chrome from the new debian package. When i run google-chrome it launches chrome. I don't know why this does not work.