-
-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't pip install curl_cffi - Getting Unsupported arch error #2098
Comments
I think the problem is that I'm trying to run it on an iPhone, but I'll think about it for a bit. |
Try this command. pip install curl_cffi>=0.6.2 If this doesn't work, then I don't know. |
Sorry not sure I follow what are you trying to say in this screenshot or comment, are you suggesting for me to try something? Because as I mentioned I tried to run the command And I just tried it with 0.6.2:
Thanks. |
I would like you to try pip install curl_cffi>=0.6.2. Also, please tell me what iPhone emulator you are using. In my previous comment, it was 12:32 AM Japan time, and I was very sleepy, so my mind wasn’t working well. Sorry about that. |
"pip install curl_cffi>=0.6.2" is not a valid command? I'm using an app I downloaded from the app store that's called iSH. Thanks. |
I've tried ish and found that it doesn't work with the pip command in its initial state. |
Yes, you need to run these commands first:
Then try again to run: pip install curl_cffi Thanks. |
I get the same error as you |
I found the cause. It seems that the architecture i686 used by ish is not supported by curl_cffi, so an error is returned. I think the only solution is to use another app. |
Not using curl_cffi may be very difficult. Even older g4f versions use curl_cffi. |
This is the only app that you could run g4f on. I don't know any others. Thanks. |
But older versions didn't have this problem. I.e. g4f version 0.3.0.6 used to work fine. |
umm |
Providers that do not use curl_cffi should work. |
Well I'm using OpenAI ChatGPT. Does it require curl_cffi? |
I don't think I can. |
curl_cffi is currently required for definitive [If you had a previous version that worked, we recommend downgrading to that version and updating the code as needed. |
If I downgrade to a previous version I don't think it will be able to parse the HAR file since it keeps getting updated? |
Try updating openAI's harfile.py and OpenAIchat.py to the current code. |
Not sure if it will work? |
To be honest: .... I don't know... Maybe it will work out. |
Can you tell me which version of g4f works well? |
I'm just guessing, but pip install curl-cffi==0.5.10 probably doesn't have the OScheck functionality, so you should be able to use the function |
Just tried it, doesn't work:
|
At least we know that it wasn't rejected by OScheck. |
How about finding a version that can be built? It's below 0.5. |
What was the reason it was rejected this time? |
Thanks. I was researching too at the time and found these: Those with lower iOS like 11-14, you might be able to use these apps (if compatible with your iOS) instead of iSH to achieve something similar (I haven’t tried):
|
I think it's good, but I think file operations are difficult. |
Which one of them? |
I can tell you that ashell also got the same error as ish. |
FYI the creator of curl_cffi said he will try to add i686 musl build of curl-impersonate for Linux in the future: But would be nice if we could find an app where it will work in the interim. |
There are some apps that can be used on iOS 16 and later. |
But when it comes to iOS 14, I think the only option is ish. |
What about Pythonista 3 ? |
Python3 |
Have you succeeded? |
yes |
Please share the details. |
@gamelist1990 Hello? |
sry https://apps.apple.com/app/id6444809156 I was able to use this app, but you're on iOS 14 and this probably means you can't use it, so I'm looking for it. |
Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again. |
Can't download it, it's targeting ios 16 and above. |
Oh really |
Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again. |
It's the same thing on Android Termux, unless curl-cffi doesn't change the arch there is nothing to do. I replaced curl-cffi with httpx in other projects, didn't try with g4f, too much hassle I guess |
Could you please add a comment on the post that I made on curl-cffi github page to let the developer know that there is a demand for it? It may help with the developer prioritizing this over other things. Here is what he said about this so far: "There is no i686 musl build of curl-impersonate for Linux. I will try to add that in the future. There is no ETA for this, I tried to cross compile for x86-linux-musl on CI, but no luck." Here is the link: @Troptrap - How much effort do you think it will be to change it to httpx instead of curl-cffi? Thank you. |
At a glance, g4f handles the connections from the g4f/requests folder, so one would need to make the changes only there. But I'm not sure if this would break the functionality, maybe certain providers need curl-impersonate for certain browser fingerprints. |
Does it work for chatgpt provider? |
Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again. |
Closing due to inactivity. |
Hello,
I have iSH version 1.3.2 (Alpine Linux x86 emulator) on my iPhone along with python and pip installed in it.
Which I used to install the g4f python package - The official gpt4free repository | various collection of powerful language models.
They recently upgraded to version 0.3.2.1 and it appears to use the curl_cffi python package.
I tried to install it in this order:
apk add gcc musl-dev libffi-dev libcurl libcurl-dev
pip install --upgrade pip setuptools wheel
pip install curl_cffi
When I try to install it, I get an error:
Which error is basically this:
Exception: Unsupported arch: uname_result(system='Linux', node='iPhone', release='4.20.69-ish', version='SUPER AWESOME May 20 2023 23:41:32', machine='i686')
I also tried to set export ARCHFLAGS="-arch i686" before installing it and trying to install an older version pip install curl_cffi==0.6.4
but I still get the same error.
So I can't run g4f anymore in the latest version.
Is there a way to install curl_cffi python package without getting this error in iSH or is there a way to still install and run an older version of g4f where this package is not required?
Thanks.
The text was updated successfully, but these errors were encountered: