Closed lscalize closed 2 months ago
I encountered this issue and what I did is simply deactivated the virtual environment and restarted my pc, it still kept happening, I repeated this process 3 times and on the third try, it just worked!
I've been trying for a while, but it's still not working.
@aimaanmansuri21 I'm trying to run it on Google Colab. Do you think that I need to try somewhere else?
I've tried to solve it using chatgpt, but it did not work.
I've followed these steps below.
Could someone help me pls?
!apt-get update
!apt-get install -y chromium-chromedriver !apt-get install -y chromium
from selenium import webdriver from selenium.webdriver.chrome.service import Service from selenium.webdriver.chrome.options import Options
chrome_options = Options() chrome_options.add_argument("--headless") # Modo headless chrome_options.add_argument("--no-sandbox") chrome_options.add_argument("--disable-dev-shm-usage") chrome_options.add_argument("--disable-gpu") chrome_options.add_argument("--remote-debugging-port=9222")
chrome_options.binary_location = '/usr/bin/chromium-browser' service = Service('/usr/lib/chromium-browser/chromedriver')
@lscalize i think you can use on Google collab, because colab don't have chrome
@feder-cr so, what do you suggest? So I need to use the Jupyter notebook instead? Another tool?
@feder-cr or is it possible to run it directly through github?
Same problem here i'm currently on Ubuntu 24
and im using my own Resume
Runtime error: Error running the bot: Failed to initialize browser: Message: unknown error: cannot find Chrome binary
Stacktrace:
#0 0x562187fd84e3 <unknown>
#1 0x562187d07c76 <unknown>
#2 0x562187d2e757 <unknown>
#3 0x562187d2d029 <unknown>
#4 0x562187d6bccc <unknown>
#5 0x562187d6b47f <unknown>
#6 0x562187d62de3 <unknown>
#7 0x562187d382dd <unknown>
#8 0x562187d3934e <unknown>
#9 0x562187f983e4 <unknown>
#10 0x562187f9c3d7 <unknown>
#11 0x562187fa6b20 <unknown>
#12 0x562187f9d023 <unknown>
#13 0x562187f6b1aa <unknown>
#14 0x562187fc16b8 <unknown>
#15 0x562187fc1847 <unknown>
#16 0x562187fd1243 <unknown>
#17 0x718e6ea9ca94 <unknown>
#18 0x718e6eb29c3c <unknown>
Refer to the configuration and troubleshooting guide: https://github.com/feder-cr/LinkedIn_AIHawk_automatic_job_application/blob/main/readme.md#configuration
I am facing the same issue. I am running this on my local machine (macos monterey, 12.7.6). Pretty much the same error as well. This seems to be a deeper issue, I have been trying to troubleshoot for the last 3-4 hours.
Okay. This is the solution that worked for me.
pip install webdriver-manager
Updated Code
from selenium import webdriver
from selenium.webdriver.chrome.service import Service as ChromeService
from webdriver_manager.chrome import ChromeDriverManager
def create_driver_selenium():
options = get_chrome_browser_options() # Use the method to get Chrome options
# Use webdriver_manager to install and specify the path to ChromeDriver
service = ChromeService(executable_path=ChromeDriverManager().install())
return webdriver.Chrome(service=service, options=options)
The app ran like butter after this.
@talvinder tks for the help.
I've followed your instructions and faced the same problem.
I think Google Colab is the issue. Which other tool do you suggest?
@lscalize @talvinder I find the solution to this problem if you are on linux
First of all you need to remove purge uninstall your google chrome installation Second install back chrome as a package with
dpkg i chrome-stable.deb
i explore the code and if you still have problems you can hard-code the chrome installation path as viewed on the screenshot
@Lumexio I'm not on linux, but I'm going to try it. Why not? Tks a lot.
@talvinder tks for the help.
I've followed your instructions and faced the same problem.
I think Google Colab is the issue. Which other tool do you suggest?
I don't think this will work on google colab or GitHub codespaces, since it needs a chrome driver (basically a working chrome instance).
@talvinder Tks. So, what would you suggest instead?
I've tried many times and it did not work.
Could someone help me pls?
I've tried many times and it did not work.
Could someone help me pls?
I ran this on my local machine (MacBook Pro) and with some tinkering it worked fine. The main issue on my local machine was path to chrome driver, once that was sorted, it worked.
To fix the path, I had to make some tweaks in the python package of LinkedInAI. I am forgetting what exactly it was. I will come back with the exact instructions that worked for me once I am in front of my machine.
@talvinder thanks a lot for your support.
Once you remember I'd appreciate if you could share the solution here.
Hi, could anyone help me with this issue?