Giter VIP home page Giter VIP logo

Comments (5)

ugorsahin avatar ugorsahin commented on June 3, 2024 1

Cool, it is great to hear that! Thank you for the letting me know about the bug.

from talkingheads.

ugorsahin avatar ugorsahin commented on June 3, 2024

I couldn't reproduce the error unfortunately, everything works as expected on my end. However, with commit 4fadd67 I add an extra step in case of failure on tag search. Please pull and install the latest version and let me know if the problem persists.

from talkingheads.

arthurlacoste avatar arthurlacoste commented on June 3, 2024

Thank you for your fast reply !

This is not working; I am still encountering this error.

art@afk chatgpt % python3 main.py
2023/07/10 19:15:18 INFO Verbose mode active
2023/07/10 19:15:18 INFO Loading undetected Chrome
2023/07/10 19:15:19 INFO patching driver executable /Users/art/Library/Application Support/undetected_chromedriver/undetected_chromedriver
2023/07/10 19:15:20 INFO Loaded Undetected chrome
2023/07/10 19:15:20 INFO Opening chatgpt
2023/07/10 19:15:21 INFO Element //button[//div[text()="Log in"]] has found
2023/07/10 19:15:21 INFO Clicked login button
2023/07/10 19:15:23 INFO Element username has found
2023/07/10 19:15:23 INFO Filled email box
2023/07/10 19:15:23 INFO Element //button[text()="Continue"] has found
2023/07/10 19:15:25 INFO Clicked continue button
2023/07/10 19:15:25 INFO Element password has found
2023/07/10 19:15:25 INFO Filled password box
2023/07/10 19:15:26 INFO Logged in
2023/07/10 19:15:32 INFO Info screen skipped
2023/07/10 19:15:32 INFO ChatGPT is ready to interact
2023/07/10 19:15:32 INFO Unable to locate text area tag. Switching to ID search
Traceback (most recent call last):
  File "/Users/art/Dropbox/dev/chatgpt/main.py", line 7, in <module>
    answer = chatgpt.interact("Hello, how are you today")
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/chatgpt_automation/chatgpt_client.py", line 262, in interact
    raise RuntimeError('Unable to find the text prompt area. Please raise an issue with verbose=True')
RuntimeError: Unable to find the text prompt area. Please raise an issue with verbose=True

from talkingheads.

ugorsahin avatar ugorsahin commented on June 3, 2024

That seems strange because I have the tags and everything the same in my end.

I can help you further but I need more information. Please follow the steps below:

  1. If you running it from a script, try to run it from jupyter notebook or an interactive environment to keep chrome open.
  2. Pass headless=False to the constructor and reproduce the error.
  3. When you hit the error once more please right click the Text prompt area and click inspect. (see image below)
    sam_1
  4. Developer tools will show up on the screen. Please select the highligthed area and add here. (see image below)
    sam_2

Hopefully, I can address the issue after that.

from talkingheads.

arthurlacoste avatar arthurlacoste commented on June 3, 2024

Ok, after setting headless=False, I realized that there was a mistake in my credentials, now it's working great!

from talkingheads.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.