ParisNeo / lollms-webui

Lord of Large Language Models Web User Interface
https://parisneo.github.io/lollms-webui/
Apache License 2.0
4.07k stars 515 forks source link

Selenium>4.10.0 Fix ? #538

Closed jdemarq closed 1 month ago

jdemarq commented 1 month ago

Expected Behavior

In Discution mode, I want to use 'Add a weblink to the discution'.

Current Behavior

Selenium changed their way to be called, the attibute 'executable_path' can't be used. it is throwing and error related to this attibute.

Steps to Reproduce

Windows version of lollms installed via the .exe

  1. Go In Discution mode
  2. Select Add a weblink to the discution

Possible Solution

Here : https://stackoverflow.com/questions/76550506/typeerror-webdriver-init-got-an-unexpected-keyword-argument-executable-p

I don't know Python very well, I made it working with the current version of Selenium :

I installed actual version of selenium and set up his Chrome inside the conda venv, then in internet.py I replaced actual way to use Selenium by this one (in functions 'prepare_chrome_driver' and in 'scrape_and_save') :

    chrome_options = webdriver.ChromeOptions()
    chrome_options.add_argument("--disable-dev-shm-usage")
    chrome_options.add_argument("--headless")  # Run Chrome in headless mode
    chrome_options.add_argument("--enable-third-party-cookies")
    driver = webdriver.Chrome(options=chrome_options)

Thanks.

jdemarq commented 1 month ago

Did a clean install of lollms and didn't encountered the problem anymore. I'm closing the ticket. sorry for the mistake.