尝试使用kivy构建我的第一个hello-world应用程序并使用buildozer-错误权限被拒绝?

时间:2017-09-08 19:30:12

标签: android python kivy buildozer

我有一段时间开始用python开始做一些应用程序的想法,所以昨天我想给Kivy一个尝试。我的系统是Ubuntu 16.04.2版本,我按照这里的教程https://www.digitaljunky.io/make-a-snake-game-for-android-written-in-python-part-1/下载了所有必需的软件包。不幸的是,我无法获得使用buildozer运行的那个教程(以及许多其他人)中描述的简单“hello-word-app”。它显示以下错误(只显示最后几行,如果您需要更多信息,请告诉我!):

[INFO]:    STDOUT (last 20 lines of 149):
                        (Py_ssize_t)ctx->fmt_offset, (Py_ssize_t)offset);   
                    ^   
jnius/jnius.c:44574:20: warning: format '%zd' expects argument of type 'signed size_t', but argument 4 has type 'long int' [-Wformat=]  
jnius/jnius.c: In function '__Pyx_GetBufferAndValidate':    
jnius/jnius.c:44815:7: warning: format '%zd' expects argument of type 'signed size_t', but argument 3 has type 'Py_ssize_t' [-Wformat=] 
       dtype->name, (Py_ssize_t)dtype->size, (dtype->size > 1) ? "s" : ""); 
       ^    
jnius/jnius.c:44815:7: warning: format '%zd' expects argument of type 'signed size_t', but argument 6 has type 'long int' [-Wformat=]   
jnius/jnius.c: In function '__Pyx_ValidateAndInit_memviewslice':    
jnius/jnius.c:48006:22: warning: format '%zu' expects argument of type 'size_t', but argument 3 has type 'Py_ssize_t' [-Wformat=]   
                      (dtype->size > 1) ? "s" : "");    
                      ^ 
jnius/jnius.c: In function '__pyx_f_5jnius_5jnius_convert_python_to_jobject':   
jnius/jnius.c:10495:21: warning: '__pyx_v_retmidinit' may be used uninitialized in this function [-Wmaybe-uninitialized]    
   __pyx_v_retobject = (__pyx_v_j_env[0])->NewObjectA(__pyx_v_j_env, __pyx_v_retclass, __pyx_v_retmidinit, __pyx_v_j_ret);  
                     ^  
jnius/jnius.c:10495:21: warning: '__pyx_v_retclass' may be used uninitialized in this function [-Wmaybe-uninitialized]  
/home/anja/Schreibtisch/project android app/test2/.buildozer/android/platform/python-for-android-master/pythonforandroid/tools/liblink.sh -lm -L/home/anja/Schreibtisch/project/build/libs_collections/myapp/armeabi-v7a -L/home/anja/Schreibtisch/project/build/libs_collections/myapp/armeabi-v7a -L/home/anja/Schreibtisch/project/build/libs_collections/myapp -L/home/anja/Schreibtisch/project/build/bootstrap_builds/sdl2-python2/obj/local/armeabi-v7a -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/anja/.buildozer/android/platform/android-ndk-r9c/platforms/android-19/arch-arm -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb build/temp.linux-x86_64-2.7/jnius/jnius.o -Llibs/armeabi-v7a -L/home/anja/Schreibtisch/project/build/other_builds/python2/armeabi-v7a/python2/python-install/lib -lSDL2 -llog -lpython2.7 -o build/lib.linux-x86_64-2.7/jnius/jnius.so   
unable to execute /home/anja/Schreibtisch/project: Permission denied    
error: command '/home/anja/Schreibtisch/project' failed with exit status 1
[INFO]:    STDERR:

[INFO]:    COMMAND:
cd /home/anja/Schreibtisch/project/build/other_builds/pyjnius-python2-sdl2/armeabi-v7a/pyjnius && /home/anja/Schreibtisch/project/build/python-installs/myapp/bin/python.host setup.py build_ext -v

[WARNING]: ERROR: /home/anja/Schreibtisch/project/build/python-installs/myapp/bin/python.host failed!
# Command failed: /usr/bin/python -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=kivy,python2 --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/anja/Schreibtisch/project android app/test2/.buildozer/android/platform/build
# 
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2

这是buildozer输出的结尾,log_level = 2,但错误并没有告诉我任何事情。权限被拒绝可能暗示写入/读取问题,但是对该文件夹的所有用户赋予读/写权限没有任何效果。问题所在的任何想法?我也看到了问题,但找不到我的问题的答案...非常感谢任何帮助!

0 个答案:

没有答案
相关问题