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

please log in to openai chat and accept the cookies box #9

Closed
lightningorb opened this issue Dec 6, 2022 · 8 comments
Closed

please log in to openai chat and accept the cookies box #9

lightningorb opened this issue Dec 6, 2022 · 8 comments

Comments

@lightningorb
Copy link

~/dev/chatgpt-wrapper (main) $ chatGPT testing testing 123
Starting ... Please log in to OpenAI Chat and accept the cookies box
Press enter when you're done

not sure where the cookies box is.. so when i hit enter

Done
Asking...
Traceback (most recent call last):
  File "/usr/local/bin/chatGPT", line 33, in <module>
    sys.exit(load_entry_point('chatGPT==0.1.0', 'console_scripts', 'chatgpt')())
  File "/Users/user/dev/chatgpt-wrapper/chatgpt_wrapper/chatgpt.py", line 119, in main
    print(Fore.GREEN + chatbot.ask(" ".join(sys.argv[1:])))
  File "/Users/user/dev/chatgpt-wrapper/chatgpt_wrapper/chatgpt.py", line 95, in ask
    self.__send_message(message)
  File "/Users/user/dev/chatgpt-wrapper/chatgpt_wrapper/chatgpt.py", line 67, in __send_message
    box.click()
AttributeError: 'NoneType' object has no attribute 'click'
@pjahoorkar
Copy link

You have to first initiate using chatgpt install from the command line before calling the chatGPT function. This opens up a browser (assuming playwright is installed correctly) which will ask you to login and click some cookie, disclosure info that OpenAI needs before you can start using the chat. Once you are done with the disclosure boxes, you go back to the command line and click 'Enter' to see a 'You: ' prompt.

@MalteHB
Copy link

MalteHB commented Dec 6, 2022

I experience the exact same issue.

@sander-wood
Copy link

Same here, I don't know where the cookies box is and have the same error "AttributeError: 'NoneType' object has no attribute 'click'". I have allowed all cookies, but didn't fix this issue.

@mmabrouk
Copy link
Collaborator

mmabrouk commented Dec 6, 2022

Please confirm whether you experience this issue also after running chatgpt install?

@shreyas301197
Copy link

shreyas301197 commented Dec 7, 2022

I followed the chaptgpt install steps from cmd line, it does solve this issue but I still get timeout after I type in the very first prompt.

@MalteHB
Copy link

MalteHB commented Dec 7, 2022

It works now - however, readline and rich needs to be manually installed. If on windows for readline use pyreadline3.

@mmabrouk
Copy link
Collaborator

mmabrouk commented Dec 7, 2022

Thanks @MalteHB . We are trying to solve the issue with readline, can you please help us with the PR (#14) as we don't have a windows machine to test.

@mmabrouk
Copy link
Collaborator

mmabrouk commented Dec 7, 2022

I am going to close this issue, since it seems the original issue can be solved by running install. I plan to add auto installation soon.

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

No branches or pull requests

6 participants