-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
undetected_chromedriver unable to init #381
Comments
Can you give some system details? |
This is a very strange error because def __init__(
self,
options=None,
user_data_dir=None,
driver_executable_path=None,
browser_executable_path=None,
port=0,
enable_cdp_events=False,
service_args=None,
service_creationflags=None,
desired_capabilities=None,
advanced_elements=False,
service_log_path=None,
keep_alive=True,
log_level=0,
headless=False,
version_main=None,
patcher_force_close=False,
suppress_welcome=True,
use_subprocess=True,
debug=False,
no_sandbox=True,
**kw,
): |
Python 3.6 is not supported. We only support Python 3.10 and above |
I have same question. Linux(Centos 7.4) python 3.10.8 |
You might be using an old version of selenium. Do |
Try https://github.com/acheong08/ChatGPT/releases/tag/0.0.48.2 which enforces the dependency versions |
I'm also experiencing this issue. It works on Arch for me, running Python 3.10.9. However, on Ubuntu using the same version of python, I get the |
All of my dependencies are upgraded & the latest version of the package is installed on both Arch and Ubuntu. |
Looks like some of my packages weren't upgraded on the Ubuntu system. It's now giving this warning: What are the supported versions of these packages? All of the dependencies directly required by this library meet the required versions |
Full stacktrace:
|
I haven't tested it yet, but I submitted a PR for a potential fix for this |
------------ run error ------- python3 main.py Traceback (most recent call last): |
Try the following:
|
The following error still occurs in ChatGPT-0.0.47.2 ChatGPT-0.0.47.2/src/revChatGPT# python3 main.py |
I said update selenium, not revChatGPT: |
And again. Please update Python |
python3 main.py Type '!help' to show commands Logging in... During handling of the above exception, another exception occurred: Traceback (most recent call last): |
Name: selenium |
That is very strange. How about
|
Running into this same issue. I am using Python 3.9.0 though. The other package versions are correct. |
Fixed after |
That is strange. Why 6.0 specifically? |
python3 main.py
Type '!help' to show commands Logging in... During handling of the above exception, another exception occurred: Traceback (most recent call last): |
when websockets version is 10.4:
the error is :
when websockets version is 6.0:
the error is:
|
What is your undetected_chromedriver version? |
Did you install chrome? |
It is an issue with undetected_chromedriver |
thanks. After I installed the chrome, I solved this problem. |
For anyone that gets a chromedriver bug, install Chrome and update |
I tried everything but still nothing. Even |
I had a similar issue but I suspect the cause is not having a chromedriver installed. |
Check out acheong08/ChatGPT-lite. It solves all the annoying browser problems at the cost of your privacy |
Spawning browser... During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): |
I will leave it here in case it may be helpful for someone. I've been having a similar issue as mentioned above, while running app in a docker container, however, my error stated that The error was a result of me starting Instead, start For example, my entrypoint in
And my
This has resolved the issue for me. Hope this helps someone :) |
I have the same problem with you, and everthing is updated including chrome, selenium, python3 the error is :
|
Spawning browser...
Traceback (most recent call last):
File "/data/chatgpt/bin/revChatGPT/ChatGPT.py", line 404, in get_cf_cookies
browser_executable_path=self.config.get("browser_exec_path")
File "/usr/local/lib/python3.6/site-packages/undetected_chromedriver/init.py", line 51, in new
instance.init(*args, **kwargs)
TypeError: init() got an unexpected keyword argument 'enable_cdp_events'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/chatgpt/bin/chatgpt_app.py", line 10, in
chatbot = Chatbot(config, conversation_id=None)
File "/data/chatgpt/bin/revChatGPT/ChatGPT.py", line 77, in init
self.get_cf_cookies()
File "/data/chatgpt/bin/revChatGPT/ChatGPT.py", line 416, in get_cf_cookies
driver.quit()
UnboundLocalError: local variable 'driver' referenced before assignment
Spawning browser...
Traceback (most recent call last):
File "/data/chatgpt/bin/revChatGPT/ChatGPT.py", line 404, in get_cf_cookies
browser_executable_path=self.config.get("browser_exec_path")
File "/usr/local/lib/python3.6/site-packages/undetected_chromedriver/init.py", line 51, in new
instance.init(*args, **kwargs)
TypeError: init() got an unexpected keyword argument 'enable_cdp_events'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/chatgpt/bin/chatgpt_app.py", line 10, in
chatbot = Chatbot(config, conversation_id=None)
File "/data/chatgpt/bin/revChatGPT/ChatGPT.py", line 77, in init
self.get_cf_cookies()
File "/data/chatgpt/bin/revChatGPT/ChatGPT.py", line 416, in get_cf_cookies
driver.quit()
UnboundLocalError: local variable 'driver' referenced before assignment
What is the reason for the above error when executing?
The text was updated successfully, but these errors were encountered: