Zai-Kun / reverse-engineered-chatgpt

Unofficial reverse-engineered ChatGPT API in Python
Apache License 2.0
240 stars 31 forks source link

dll is not valid #12

Closed D-Asce closed 8 months ago

D-Asce commented 8 months ago

ctypes.CDLL("D:/chatgpt/reverse-engineered-chatgpt-main/re_gpt/funcaptcha_bin/windows_arkose.dll") Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm 2023.2.1\plugins\python\helpers\pydev\pydevconsole.py", line 364, in runcode coro = func() ^^^^^^ File "", line 1, in File "C:\Program Files\Python311\Lib\ctypes__init.py", line 376, in init__ self._handle = _dlopen(self._name, mode) ^^^^^^^^^^^^^^^^^^^^^^^^^ OSError: [WinError 193] %1 不是有效的 Win32 应用程序。

Zai-Kun commented 8 months ago

Try downloading the funcaptcha binary manually.

Goto funcaptcha binary release and download the binary for Windows, and then replace the old binary in path/to/re_gpt/funcaptcha_bin with the newly downloaded one. In your case, the funcaptcha_bin folder is in D:/chatgpt/reverse-engineered-chatgpt-main/re_gpt/.

Zai-Kun commented 8 months ago

I'm going to assume the issue has been resolved. Open up the issue again if you are still facing it.