ChatGPT icon indicating copy to clipboard operation
ChatGPT copied to clipboard

[BUG] I can't import tls-client

Open avostryakov opened this issue 2 years ago • 3 comments
trafficstars

Description
I tried to start revChatGPT from a command line or from python. In both cases I got the following error:

... File "/Users/vostryakov/projects/env3.7/ds-vqCpqeZ3-py3.8/lib/python3.8/site-packages/revChatGPT/main.py", line 5, in from revChatGPT.ChatGPT import Chatbot File "/Users/vostryakov/projects/env3.7/ds-vqCpqeZ3-py3.8/lib/python3.8/site-packages/revChatGPT/ChatGPT.py", line 1, in import uuid, re, json, tls_client, logging File "/Users/vostryakov/projects/env3.7/ds-vqCpqeZ3-py3.8/lib/python3.8/site-packages/tls_client/init.py", line 15, in from .sessions import Session File "/Users/vostryakov/projects/env3.7/ds-vqCpqeZ3-py3.8/lib/python3.8/site-packages/tls_client/sessions.py", line 1, in from .cffi import request File "/Users/vostryakov/projects/env3.7/ds-vqCpqeZ3-py3.8/lib/python3.8/site-packages/tls_client/cffi.py", line 20, in library = ctypes.cdll.LoadLibrary(f'{root_dir}/dependencies/tls-client{file_ext}') File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ctypes/init.py", line 451, in LoadLibrary return self._dlltype(name) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ctypes/init.py", line 373, in init self._handle = _dlopen(self._name, mode) OSError: dlopen(/Users/vostryakov/projects/env3.7/ds-vqCpqeZ3-py3.8/lib/python3.8/site-packages/tls_client/dependencies/tls-client-x86.dylib, 6): no suitable image found. Did find: /Users/vostryakov/projects/env3.7/ds-vqCpqeZ3-py3.8/lib/python3.8/site-packages/tls_client/dependencies/tls-client-x86.dylib: cannot load 'tls-client-x86.dylib' (load command 0x80000034 is unknown) /Users/vostryakov/projects/env3.7/ds-vqCpqeZ3-py3.8/lib/python3.8/site-packages/tls_client/dependencies/tls-client-x86.dylib: cannot load 'tls-client-x86.dylib' (load command 0x80000034 is unknown)

I think that I have binary package of tls-client-x86.dylib for different CPU architecture or MacOS versions. Can you say what versions of macOS are supported? Or what is wrong in my case?

Steps to Reproduce
Executing the following code: from revChatGPT.ChatGPT import Chatbot

Expected behavior
the code working properly without errors

Environment

  • OS: MacOS 10.14.6
  • Python version: 3.8.9
  • ChatGPT Version: 0.2.1

avostryakov avatar Jan 20 '23 12:01 avostryakov

Apple Silicon not supported. MacOS below Catalina also not supported

acheong08 avatar Jan 20 '23 13:01 acheong08

Apple Silicon not supported.

Works on my M1. OS Ventura

hassant4 avatar Jan 20 '23 14:01 hassant4

Maybe with Rossetta or something. I don't see an ARM dylib

acheong08 avatar Jan 21 '23 01:01 acheong08

oh thankyou

niuggg avatar Feb 02 '23 06:02 niuggg

Thank you. I close the issue

avostryakov avatar Feb 02 '23 17:02 avostryakov