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

p4a psycopg recipe error: expression is not assignable #2967

Closed
ssaravanan384900712 opened this issue Feb 6, 2024 · 1 comment
Closed

p4a psycopg recipe error: expression is not assignable #2967

ssaravanan384900712 opened this issue Feb 6, 2024 · 1 comment
Labels

Comments

@ssaravanan384900712
Copy link

ssaravanan384900712 commented Feb 6, 2024

Hello folks, im new to python-for-android ,

Im trying to build psycopg2 for android using

p4a create --requirements psycopg2 --arch arm64-v8a --arch armeabi-v7a --arch x86_64 --sdk-dir $ANDROID_SDK_ROOT --ndk-dir $ANDROID_SDK_ROOT/ndk/$NDK_VERSION --dist-name mydist-psycopg2-only

But i get this error

/home/saravanans/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target aarch64-linux-android21 -fomit-frame-pointer -march=armv8-a -fPIC -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -target aarch64-linux-android21 -fomit-frame-pointer -march=armv8-a -fPIC -I/home/saravanans/.local/share/python-for-android/build/other_builds/python3/arm64-v8a__ndk_target_21/python3/Include -DANDROID -I/home/saravanans/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include -I/home/saravanans/.local/share/python-for-android/build/python-installs/mydist-psycopg2-only/arm64-v8a/include/python3.1 -fPIC -DPSYCOPG_VERSION=2.8.5 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=140010 -DHAVE_LO64=1 -I/home/saravanans/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/Include -I/home/saravanans/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build -I. -I/usr/include/postgresql -I/usr/include/postgresql/14/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-3.11/psycopg/psycopgmodule.o -Wdeclaration-after-statement
psycopg/psycopgmodule.c:921:36: error: expression is not assignable
        Py_TYPE(typetable[i].type) = &PyType_Type;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
psycopg/psycopgmodule.c:953:30: error: expression is not assignable
    Py_TYPE(&pydatetimeType) = &PyType_Type;
    ~~~~~~~~~~~~~~~~~~~~~~~~ ^
psycopg/psycopgmodule.c:1085:28: error: expression is not assignable
    Py_TYPE(&typecastType) = &PyType_Type;
    ~~~~~~~~~~~~~~~~~~~~~~ ^
psycopg/psycopgmodule.c:1088:25: error: expression is not assignable
    Py_TYPE(&chunkType) = &PyType_Type;
    ~~~~~~~~~~~~~~~~~~~ ^
psycopg/psycopgmodule.c:1091:25: error: expression is not assignable
    Py_TYPE(&errorType) = &PyType_Type;
    ~~~~~~~~~~~~~~~~~~~ ^
5 errors generated.
error: command '/home/saravanans/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/clang' failed with exit code 1
  STDERR:

$ cython --version
Cython version 3.0.8

Im on ubuntu 22.04

could you please help?

Copy link

github-actions bot commented Feb 7, 2024

👋 @ssaravanan384900712,
Sorry to hear you are having difficulties with Kivy's python-for-android; Kivy unites a number of different technologies, so building apps can be temperamental.
We try to use GitHub issues only to track work for developers to do to fix bugs and add new features to python-for-android.
However, this issue appears to be a support request. Please use our support channels to get help with the project.
If you're having trouble installing python-for-android, please see our quickstart guide.
If you're having trouble using python-for-android, please see our troubleshooting guide and FAQ.
Let us know if this comment was made in error, and we'll be happy to reopen the issue.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 7, 2024
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

2 participants