simbake / web_search

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

I tried everything this just won't work #19

Open TheRealMiRRoRMaN opened 10 months ago

TheRealMiRRoRMaN commented 10 months ago

Won't work at all, tons of errors.

tons.

TheRealMiRRoRMaN commented 8 months ago

It works but it seems to be missing some steps for install If you've already followed the steps listed >>> Go into your text gen folder > launch Cmd_Windows.bat do a simple pip install selenium go back into extensions\web_search Re-do the pip install -r requirements.txt step

"now" you should be good. Not sure if installing chrome was actually required before installing selenium but I did it anyway

Gives:

14:52:27-815670 ERROR Failed to load the extension "web_search". Traceback (most recent call last): File "D:\text-generation-webui\modules\extensions.py", line 36, in load_extensions exec(f"import extensions.{name}.script") File "<string>", line 1, in <module> File "D:\text-generation-webui\extensions\web_search\script.py", line 19, in <module> service = Service(ChromeDriverManager().install()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\anaconda3\envs\textgen\Lib\site-packages\webdriver_manager\chrome.py", line 40, in install driver_path = self._get_driver_binary_path(self.driver) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\anaconda3\envs\textgen\Lib\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 "C:\ProgramData\anaconda3\envs\textgen\Lib\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 "C:\ProgramData\anaconda3\envs\textgen\Lib\site-packages\webdriver_manager\core\driver.py", line 48, in get_driver_version_to_download return self.get_latest_release_version() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\anaconda3\envs\textgen\Lib\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'

Brand-spanking-new version of Oobabooga too btw, updated just yesterday.

TheRealMiRRoRMaN commented 8 months ago

oh and I tried the threadpoolctl thing too. didn't work. at all.

i'm open for suggestions.

TheRealMiRRoRMaN commented 8 months ago

Gives:

14:52:27-815670 ERROR Failed to load the extension "web_search". Traceback (most recent call last): File "D:\text-generation-webui\modules\extensions.py", line 36, in load_extensions exec(f"import extensions.{name}.script") File "", line 1, in File "D:\text-generation-webui\extensions\web_search\script.py", line 19, in

service = Service(ChromeDriverManager().install()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\anaconda3\envs\textgen\Lib\site-packages\webdriver_manager\chrome.py", line 40, in install driver_path = self._get_driver_binary_path(self.driver) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\anaconda3\envs\textgen\Lib\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 "C:\ProgramData\anaconda3\envs\textgen\Lib\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 "C:\ProgramData\anaconda3\envs\textgen\Lib\site-packages\webdriver_manager\core\driver.py", line 48, in get_driver_version_to_download return self.get_latest_release_version() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ProgramData\anaconda3\envs\textgen\Lib\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' Brand-spanking-new version of Oobabooga too btw, updated just yesterday. oh and I tried the threadpoolctl thing too. didn't work. at all. i'm open for suggestions. On Sun, Feb 11, 2024 at 7:18 AM LaernuTairos ***@***.***> wrote: > It works but it seems to be missing some steps for install > If you've already followed the steps listed >>> > > Go into your text gen folder > launch Cmd_Windows.bat > do a simple pip install selenium > go back into extensions\web_search > Re-do the pip install -r requirements.txt step > > "now" you should be good. > > Not sure if installing chrome was actually required before installing > selenium but I did it anyway > > — > Reply to this email directly, view it on GitHub > , > or unsubscribe > > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
BioTox1n commented 7 months ago

You need to install google chrome. It gives that error because it is searching for the chrome browser version but gets a NoneType since you don't have it installed.

TheRealMiRRoRMaN commented 7 months ago

well naturally, i did that too. but it doesn't work.