Giter Club home page Giter Club logo

Comments (25)

acheong08 avatar acheong08 commented on May 16, 2024

@TccccD It's an issue with your Python interpreter. Update to Python 3.10.6 for the most reliability

from chatgpt.

acheong08 avatar acheong08 commented on May 16, 2024

Also update the package pip3 install revChatGPT --upgrade

from chatgpt.

lafroujianas avatar lafroujianas commented on May 16, 2024

I have python 3.10.8, having the same issue : Segmentation fault: 11
OS : Macos catalina

from chatgpt.

acheong08 avatar acheong08 commented on May 16, 2024

Data streaming might not work with MacOS.

I just updated the code again. pip3 install revChatGPT --upgrade

It is probably an issue with data streams. Streaming is now optional with --stream

Running normally should work now

from chatgpt.

acheong08 avatar acheong08 commented on May 16, 2024

@TccccD @lafroujianas Could you test this?

from chatgpt.

lafroujianas avatar lafroujianas commented on May 16, 2024

Still getting "Segmentation fault: 11" on macos catalina

from chatgpt.

acheong08 avatar acheong08 commented on May 16, 2024

What python version?

from chatgpt.

acheong08 avatar acheong08 commented on May 16, 2024

I don't use MacOS so I can't really replicate. You can try using gbd to debug

from chatgpt.

lafroujianas avatar lafroujianas commented on May 16, 2024

Python 3.10.8

from chatgpt.

acheong08 avatar acheong08 commented on May 16, 2024

I have no idea why this is happening. Might need feedback from more MacOS users. I have not used any advanced Python, only basic requests, json, and bs4. Can you show the full output? Does it crash immediately or is there a certain point at which it crashes?

from chatgpt.

lafroujianas avatar lafroujianas commented on May 16, 2024

Screenshot 2022-12-05 at 17 37 47

from chatgpt.

lafroujianas avatar lafroujianas commented on May 16, 2024

I think the issue is from : in revChatGPT.py import tls_client

If I remove the line, the code is executed (with error), with with node Segmentation fault

from chatgpt.

rawandahmad698 avatar rawandahmad698 commented on May 16, 2024

I'm on MacOS, and I have Python 3.6 to 3.11, Code works ok. This is not an issue with tls_client, but a misconfiguration in your system which makes tls_client fail.

from chatgpt.

acheong08 avatar acheong08 commented on May 16, 2024

https://stackoverflow.com/questions/49414841/process-finished-with-exit-code-139-interrupted-by-signal-11-sigsegv

from chatgpt.

pedrorito avatar pedrorito commented on May 16, 2024

I think I'm having a similar problem. I'm using revChatGPT inside a docker container in a Raspberry Pi (arm64) and I get the following from the docker logs
Traceback (most recent call last): File "/app/app.py", line 6, in <module> from revChatGPT.revChatGPT import Chatbot File "/usr/local/lib/python3.9/site-packages/revChatGPT/revChatGPT.py", line 8, in <module> import tls_client File "/usr/local/lib/python3.9/site-packages/tls_client/__init__.py", line 15, in <module> from .sessions import Session File "/usr/local/lib/python3.9/site-packages/tls_client/sessions.py", line 1, in <module> from .cffi import request File "/usr/local/lib/python3.9/site-packages/tls_client/cffi.py", line 15, in <module> library = ctypes.cdll.LoadLibrary(f'{root_dir}/dependencies/tls-client{file_ext}') File "/usr/local/lib/python3.9/ctypes/__init__.py", line 452, in LoadLibrary return self._dlltype(name) File "/usr/local/lib/python3.9/ctypes/__init__.py", line 374, in __init__ self._handle = _dlopen(self._name, mode) OSError: /usr/local/lib/python3.9/site-packages/tls_client/dependencies/tls-client-amd64.so: cannot open shared object file: No such file or directory

Somehow I think it's trying to get amd64 instead of arm64. Do you know how to correct this?

from chatgpt.

acheong08 avatar acheong08 commented on May 16, 2024

Arm and 32bit are not supported yet. https://github.com/FlorianREGAZ/Python-Tls-Client/issues

You must use session tokens if you're on one of these platforms

from chatgpt.

acheong08 avatar acheong08 commented on May 16, 2024

@rawandahmad698
Any ideas on alternatives to TLS-Client?

from chatgpt.

Adrianczuk avatar Adrianczuk commented on May 16, 2024

I have python 3.10.8, having the same issue : Segmentation fault: 11 OS : Macos catalina

I was experiencing the same issue; updating from Catalina to Big Sur resolved it for me.

from chatgpt.

emileindik avatar emileindik commented on May 16, 2024

Upgrading from Mac OS Catalina solved it for me.

from chatgpt.

pen-ho avatar pen-ho commented on May 16, 2024

Upgrading from Mac OS Catalina solved it for me. +1

from chatgpt.

xs-fj avatar xs-fj commented on May 16, 2024

same error on my ubuntu 20; ...

from chatgpt.

acheong08 avatar acheong08 commented on May 16, 2024

@xs-fj You might be using 32bit Python

from chatgpt.

longnight avatar longnight commented on May 16, 2024
/site-packages/tls_client/dependencies/tls-client-amd64.so: cannot open shared object file: No such file or directory

Same errors; run in 64bit ubuntu 20 ...

from chatgpt.

papachef08 avatar papachef08 commented on May 16, 2024

tls-client uses closed soured libs from anywhere (tls-client-x86.dylib). As we don't know, where this lib comes from and what is does, this is a real security issue. Remember: you provide this source with username and password or even with access tokens. (Maybe the source sends it to somewhere ... ;-)

from chatgpt.

acheong08 avatar acheong08 commented on May 16, 2024

tls-client uses closed soured libs from anywhere (tls-client-x86.dylib). As we don't know, where this lib comes from and what is does, this is a real security issue. Remember: you provide this source with username and password or even with access tokens. (Maybe the source sends it to somewhere ... ;-)

We do know where it comes from. It is ripped directly from https://github.com/bogdanfinn/tls-client/tree/master/cffi_dist/dist

from chatgpt.

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.