Skip to content
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

python for android support for charset_normalizer #3110

Open
Sahil-pixel opened this issue Feb 21, 2025 · 6 comments
Open

python for android support for charset_normalizer #3110

Sahil-pixel opened this issue Feb 21, 2025 · 6 comments
Labels

Comments

@Sahil-pixel
Copy link
Contributor

02-21 15:37:05.571 16872 17050 I python : Android kivy bootstrap done. name is main
02-21 15:37:05.571 16872 17050 I python : AND: Ran string
02-21 15:37:05.571 16872 17050 I python : Run user program, change dir and execute entrypoint
02-21 15:37:06.056 16872 17050 I python : Traceback (most recent call last):
02-21 15:37:06.057 16872 17050 I python : File "/home/sahil/fxchatapp/.buildozer/android/platform/build-arm64-v8a/build/python-installs/fixchat/arm64-v8a/aiohttp/client_reqrep.py", line 70, in
02-21 15:37:06.057 16872 17050 I python : ModuleNotFoundError: No module named 'cchardet'
02-21 15:37:06.057 16872 17050 I python :
02-21 15:37:06.057 16872 17050 I python : During handling of the above exception, another exception occurred:
02-21 15:37:06.057 16872 17050 I python :
02-21 15:37:06.057 16872 17050 I python : Traceback (most recent call last):
02-21 15:37:06.057 16872 17050 I python : File "/home/sahil/fxchatapp/.buildozer/android/app/main.py", line 12, in
02-21 15:37:06.057 16872 17050 I python : File "/home/sahil/fxchatapp/.buildozer/android/platform/build-arm64-v8a/build/python-installs/fixchat/arm64-v8a/aiohttp/init.py", line 6, in
02-21 15:37:06.057 16872 17050 I python : File "/home/sahil/fxchatapp/.buildozer/android/platform/build-arm64-v8a/build/python-installs/fixchat/arm64-v8a/aiohttp/client.py", line 59, in
02-21 15:37:06.057 16872 17050 I python : File "/home/sahil/fxchatapp/.buildozer/android/platform/build-arm64-v8a/build/python-installs/fixchat/arm64-v8a/aiohttp/client_reqrep.py", line 72, in
02-21 15:37:06.057 16872 17050 I python : File "/home/sahil/fxchatapp/.buildozer/android/platform/build-arm64-v8a/build/python-installs/fixchat/arm64-v8a/charset_normalizer/init.py", line 26, in
02-21 15:37:06.057 16872 17050 I python : File "/home/sahil/fxchatapp/.buildozer/android/platform/build-arm64-v8a/build/python-installs/fixchat/arm64-v8a/charset_normalizer/api.py", line 7, in
02-21 15:37:06.057 16872 17050 I python : File "/home/sahil/fxchatapp/.buildozer/android/platform/build-arm64-v8a/build/python-installs/fixchat/arm64-v8a/charset_normalizer/cd.py", line 16, in
02-21 15:37:06.057 16872 17050 I python : ImportError: dlopen failed: "/data/data/org.test.fixchat/files/app/_python_bundle/site-packages/charset_normalizer/md.so" is for EM_X86_64 (62) instead of EM_AARCH64 (183)
02-21 15:37:06.057 16872 17050 I python : Python for android ended.

@Novfensec
Copy link
Contributor

Novfensec commented Feb 21, 2025

@Sahil-pixel
p4a.branch = develop

Clean build.

@Sahil-pixel
Copy link
Contributor Author

@Sahil-pixel p4a.branch = develop

Clean build.

this is not solve the issue .

@Novfensec
Copy link
Contributor

Novfensec commented Feb 23, 2025

@Sahil-pixel

Then you may build for multiple aarchs include x86_64 armeabi-v7a arm64-v8a in android.archs .

clean build is necessary to start over.

Basically the error implies that p4a built for x86_64 and its running on some other arch which is a bug. Develop branch solves the issue building for armeabi-v7a and arm64-v8 correctly.

@Sahil-pixel
Copy link
Contributor Author

@Sahil-pixel

Then you may build for multiple aarchs include x86_64 armeabi-v7a arm64-v8a in android.archs .

clean build is necessary to start over.

Basically the error implies that p4a built for x86_64 and its running on some other arch which is a bug. Develop branch solves the issue building for armeabi-v7a and arm64-v8 correctly.

I was building for arm64-v8 only

@Novfensec
Copy link
Contributor

Novfensec commented Feb 23, 2025

@Sahil-pixel

Then you may build for multiple aarchs include x86_64 armeabi-v7a arm64-v8a in android.archs .

clean build is necessary to start over.

Basically the error implies that p4a built for x86_64 and its running on some other arch which is a bug. Develop branch solves the issue building for armeabi-v7a and arm64-v8 correctly.

I was building for arm64-v8 only

Try adding armeabi-v7a;

android.archs = armeabi-v7a, arm64-v8a 

May be aiohttp have some c files which only support x86_64 arch.

That is aiohttp module only supports x86_64.

This is just an assumption.

@Novfensec
Copy link
Contributor

I saw it has build distributions separately for specific platforms.

There is an error during the build which is building for a different arch instead of the required one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants