Skip to content

Could not initialize selenium #2632

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tamireiny opened this issue Mar 22, 2024 · 1 comment
Closed

Could not initialize selenium #2632

tamireiny opened this issue Mar 22, 2024 · 1 comment
Labels
duplicate The answer/solution already exists somewhere UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode

Comments

@tamireiny
Copy link

Hello,

I have tried initialize multiple selenium drivers each time with other parameters (this code is not seen here),
but closed them using driver.quit(), Then when reaching the following code:

num_drivers = 6
for d in range(num_drivers):
headless_drivers.append(Driver(uc=True, headless=True, block_images=True, disable_js=True))

I get the following error:

Traceback (most recent call last):
File "G:\stock_miner\venv\lib\site-packages\seleniumbase\core\browser_launcher.py", line 3329, in get_local_driver
shutil.copyfile(
File "F:\Python\Python38\lib\shutil.py", line 259, in copyfile
with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: 'G:\venv\Lib\site-packages\seleniumbase\drivers/uc_driver.exe'

I am using version 4.24.10, the issue happened also at 4.24.12.

Any idea what should I do?

Thanks,
Tamir

@mdmintz mdmintz added duplicate The answer/solution already exists somewhere UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode labels Mar 22, 2024
@mdmintz
Copy link
Member

mdmintz commented Mar 22, 2024

Multithreaded UC Mode is a duplicate of #2006 (comment)

@mdmintz mdmintz closed this as completed Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate The answer/solution already exists somewhere UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode
Projects
None yet
Development

No branches or pull requests

2 participants