Chrome driver issue in KNIME business hub

I am trying to run a workflow in the KNIME business hub that needs the chromedriver for scraping some data from the internet. I use selenium in my python script to initialize the driver, and it works without errors locally. However, when executed in the hub, there is an error that the executable may have wrong permissions. How can I fix this?

This is the python script where driver is read:

"
import time
import pandas as pd
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import NoSuchElementException, TimeoutException
from selenium.webdriver.chrome.options import Options
from bs4 import BeautifulSoup
from fake_useragent import UserAgent
import chromedriver_autoinstaller

Initialize WebDriver

service = Service(executable_path="./data/chromedriver.exe")
driver = webdriver.Chrome(service=service, options=options)
driver.implicitly_wait(10)

"

Hello,

I think we’d need to know more about how the chromedriver.exe is inserted into the execution context, and what its permissions are. If you can look at the Dockerfile that builds the execution context, that may provide some insight.

Also, if chromedriver.exe is an executable for Windows, well, the KBH execution contexts are Linux-based, so even then it may not function correctly if you’re inserting a Windows executable into an environment where it cannot be executed. You’d need to check on that.

As you are a commercial product user, I recommend writing to support@knime.com for direct assistance, and you can share configuration details with us directly rather than on the forum. :slight_smile:

Regards,
Nickolaus

Hi @NDekay

Thank you for your suggestion. Indeed, it seems the better is to contact KNIME support for direct assistance. We will do that.