Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

[BUG] cannot load 'tls-client-x86.dylib' #427

Closed
zhayujie opened this issue Jan 7, 2023 · 4 comments
Closed

[BUG] cannot load 'tls-client-x86.dylib' #427

zhayujie opened this issue Jan 7, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@zhayujie
Copy link

zhayujie commented Jan 7, 2023

Describe the bug

I get an os error when I run python3 -m revChatGPT in macOS, it shows cannot load 'tls-client-x86.dylib'.

To Reproduce

python3 -m revChatGPT (i tried python3.8, 3.9 and 3.10).

Expected behavior

Run successfully.

Output

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/revChatGPT/__main__.py", line 5, in <module>
    from revChatGPT.ChatGPT import Chatbot
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/revChatGPT/ChatGPT.py", line 4, in <module>
    import tls_client_for_chatGPT as tls_client
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/tls_client_for_chatGPT/__init__.py", line 15, in <module>
    from .sessions import Session
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/tls_client_for_chatGPT/sessions.py", line 1, in <module>
    from .cffi import request
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/tls_client_for_chatGPT/cffi.py", line 15, in <module>
    library = ctypes.cdll.LoadLibrary(f'{root_dir}/dependencies/tls-client{file_ext}')
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ctypes/__init__.py", line 452, in LoadLibrary
    return self._dlltype(name)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ctypes/__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/tls_client_for_chatGPT/dependencies/tls-client-x86.dylib, 6): no suitable image found.  Did find:
	/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/tls_client_for_chatGPT/dependencies/tls-client-x86.dylib: cannot load 'tls-client-x86.dylib' (load command 0x80000034 is unknown)
	/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/tls_client_for_chatGPT/dependencies/tls-client-x86.dylib: cannot load 'tls-client-x86.dylib' (load command 0x80000034 is unknown)

Environment (please complete the following information):

Please update your packages before reporting! pip3 install --upgrade revChatGPT

  • OS: MacOS, High Sierra (10.13.4)
  • Python version: 3.8.10, 3.9.5, 3.10.5
  • ChatGPT Version: 0.0.48.3

Additional context
Add any other context about the problem here.

@jackyzyaq

This comment was marked as off-topic.

@acheong08
Copy link
Owner

acheong08 commented Jan 7, 2023

OS: MacOS, High Sierra (10.13.4)

Only supports Big Sur and above. Catalina works sometimes as well

@acheong08
Copy link
Owner

@jackyzyaq Open another issue for that

@zhayujie
Copy link
Author

zhayujie commented Jan 7, 2023

OS: MacOS, High Sierra (10.13.4)

Only supports Big Sur and above. Catalina works sometimes as well

Ok, it seems to be my system version problem.

@zhayujie zhayujie closed this as completed Jan 7, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants