Comments (25)
@TccccD It's an issue with your Python interpreter. Update to Python 3.10.6
for the most reliability
from chatgpt.
Also update the package pip3 install revChatGPT --upgrade
from chatgpt.
I have python 3.10.8, having the same issue : Segmentation fault: 11
OS : Macos catalina
from chatgpt.
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.
@TccccD @lafroujianas Could you test this?
from chatgpt.
Still getting "Segmentation fault: 11" on macos catalina
from chatgpt.
What python version?
from chatgpt.
I don't use MacOS so I can't really replicate. You can try using gbd to debug
from chatgpt.
Python 3.10.8
from chatgpt.
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.
from chatgpt.
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.
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.
from chatgpt.
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.
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.
@rawandahmad698
Any ideas on alternatives to TLS-Client?
from chatgpt.
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.
Upgrading from Mac OS Catalina solved it for me.
from chatgpt.
Upgrading from Mac OS Catalina solved it for me. +1
from chatgpt.
same error on my ubuntu 20; ...
from chatgpt.
@xs-fj You might be using 32bit Python
from chatgpt.
/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.
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.
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)
- The Functions HOT 1
- [Feature Request]: Additions to Awesome ChatGPT HOT 1
- [Bug]: ValueError: PUID is required HOT 1
- [Bug]: Error querying GPT 4 HOT 7
- [Bug]: access_denied: Your version of the ChatGPT app is out of date. Please update to the newest build of the app. HOT 12
- [Bug]: Field missing. Details: {'conversation_id': 'abf665f2-3c8f-4725-8263-5893bb5847ff', 'message_id': 'b8fe1067-2610-4bea-b33b-93b099b3803b', 'is_completion': False, 'moderation_response': {'flagged': False, 'blocked': False, 'moderation_id': 'modr-7eEtljxtdnGEn9sCjBEKoPBeuGh7M'}} HOT 13
- ValueError: Field missing. Details: {'conversation_id': '289a9ec4-cf13-45f5-bc3f-f96046e487c7', 'message_id': 'a5be1cb9-610f-4c53-a019-73abfd2b68ab', 'is_completion': False, 'moderation_response': {'flagged': False, 'blocked': False, 'moderation_id': 'modr-7eJ0uKhi6TSRvHoiBzCxVBTu7GA2v'}} HOT 4
- [Bug]: 应该是chat.openai新更新的json返回的格式,导致了现在只有message_id,没message这个字段了 HOT 3
- [Bug]: Support for 32bit and Arm processors
- Email/Password storing the Access token HOT 3
- [Bug]: Exception(resp_json.get("error", "Unknown error")) Exception: unable to log requests HOT 2
- [Bug]: https://bypass.churchless.tech/conversation HOT 1
- I registered on https://nat.dev verified by email however I am not getting verification code on mobile and that bug is not letting me login[Bug]:
- It asks to manually input captcha HOT 8
- [Feature Request]: personal advice HOT 2
- A timeout occurred Error code 524
- [Bug]:
- revChatGPT.typings.Error: OpenAI: {"error":"Post \"https://tcr9i.chat.openai.com/fc/gt2/public_key/35536E1E-65B4-4D96-9D97-6ADB7EFF8147\": http2: server sent GOAWAY and closed the connection; LastStreamID=1, ErrCode=ENHANCE_YOUR_CALM, debug=\"\""} (code: 500) HOT 1
- [Bug]: Please check that the input is correct, or you can resolve this issue by filing an issue HOT 2
- [Bug]: access token is expired in a minute! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatgpt.