Skip to content
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

Error rasied when using headless mode #7

Open
oxyhexagen opened this issue Dec 26, 2022 · 3 comments
Open

Error rasied when using headless mode #7

oxyhexagen opened this issue Dec 26, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@oxyhexagen
Copy link

Hi, thanks for sharing this work.
The script runs perfectly well in gui mode, but i tried it in headless mode as i want to deploy it on a centos server, following error occured:

Browser successfully launched, logging in to account...
Updated session
Updated session
Updated session
Traceback (most recent call last):
  File "D:\tools\gpttools\chatgpt_tools.py", line 15, in <module>
    chat = ChatClient(OPENAI_EMAIL, OPENAI_PASSWORD, headless=True)
  File "D:\ProgramData\Anaconda3\envs\chatgpt\lib\site-packages\easychatgpt\chatgpt.py", line 85, in __init__
    self.__login(username, password)
  File "D:\ProgramData\Anaconda3\envs\chatgpt\lib\site-packages\easychatgpt\chatgpt.py", line 105, in __login
    login_button.click()
AttributeError: 'list' object has no attribute 'click'

Process finished with exit code 1
@3281448091
Copy link
Owner

headless does not work as it is detected by cloudflare

@3281448091 3281448091 added the enhancement New feature or request label Dec 26, 2022
@3281448091
Copy link
Owner

I am trying to make it work through virtual display.

@DiTo97
Copy link

DiTo97 commented Jan 4, 2023

I am trying to make it work through virtual display.

Hi @LanLan69, check out this piece of code I put together two years ago to run the undetected Chrome driver on a Google Colab notebook via a virtual display.

I hope it will be helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants