acheong08 / ChatGPT

Reverse engineered ChatGPT API
GNU General Public License v2.0
28k stars 4.48k forks source link

Updated V1.py #1447

Closed ItIsRain closed 1 year ago

ItIsRain commented 1 year ago

Is there an existing issue for this? No

What happened?

Setting PUID (You are a Plus user!): user-f97McucxdCHMxidtechbDJOA:1688149141-R26Nho2AX8MmKVpeKwbwtEcOG%2BrFIAA%2BPskPeOLiJHQ%3D
Saved captcha image to captcha\1688149130.9994226.jpeg
[WinError 2] The system cannot find the file specified
Traceback (most recent call last):
  File "C:\Users\Mohamed Al Mehairbi\Desktop\LaughExtracts\AutoBOT\test.py", line 64, in <module>
    for data in chatbot.ask("Hey there!"):
  File "C:\Users\Mohamed Al Mehairbi\Desktop\LaughExtracts\AutoBOT\revChatGPT\V1.py", line 721, in ask
    yield from self.post_messages(
  File "C:\Users\Mohamed Al Mehairbi\Desktop\LaughExtracts\AutoBOT\revChatGPT\V1.py", line 674, in post_messages
    yield from self.__send_request(
  File "C:\Users\Mohamed Al Mehairbi\Desktop\LaughExtracts\AutoBOT\revChatGPT\V1.py", line 496, in __send_request
    raise e
  File "C:\Users\Mohamed Al Mehairbi\Desktop\LaughExtracts\AutoBOT\revChatGPT\V1.py", line 490, in __send_request
    data["arkose_token"] = get_arkose_token(
  File "C:\Users\Mohamed Al Mehairbi\Desktop\LaughExtracts\AutoBOT\revChatGPT\V1.py", line 193, in get_arkose_token
    index = solver(images, challenge_details)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Mohamed Al Mehairbi\Desktop\LaughExtracts\AutoBOT\revChatGPT\V1.py", line 142, in captcha_solver
    subprocess.call(["start", filename])
  File "C:\Users\Mohamed Al Mehairbi\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 389, in call
    with Popen(*popenargs, **kwargs) as p:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Mohamed Al Mehairbi\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\Mohamed Al Mehairbi\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1509, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified

Steps to reproduce the problem from os import startfile

if sys.platform == "win32":
            startfile(filename)

What should have happened? Open the image and asks for a captcha input

Version where the problem happens V1 6.7.3 (Lastest Version)

What Python version are you running this with? Python 3.11

What is your operating system ? Windows 10