python - Kivy- Building an APK -


initial problem

I wrote an app in Python using Pyro libraries, and to that stage Where I want to open an APK to run on my Android device. After following the advice on the KV website, I run the following:

  buildozer android debug  

But get this traceback:

  traceback (most recent call final): the file "/ usr / local / bin / buildozer", the pun B 9, & lt; Module & gt; Load_entry_point ('buildozer == 0.15-dev', 'console_scripts', 'builder') () file "/usr/local/lib/python2.7/dist-packages/buildzer-0.15_dev-py2.7.egg/buildzer /scripts/client.py ", in line 13, main builder (). Run_command (sys.argv [1:]) file "/usr/local/lib/python2.7/dist-packages/buildzer-0.15_dev-py2.77.egg / buildozer / __init__.py", line 9 7, Self.target.run_commands (args) file in run_armand "/usr/local/lib/python2.7/dist-packages/buildzer-0.15_dev-py2.7 .egg / buildozer / target.py", line 85, run_smonds funk (Args) file "/usr/local/lib/python2.7/dist-packages/buildzer-0.15_dev-py2.7.egg/buildozer/target .py", line 95, cmd_debug in self.buildozer.prepare_for_build ( ) File "/usr/local/lib/python2.7/dist-packages/buildzer-0.15_dev-py2.7.egg/buildozer/__init__.py", line 163, ready_for_build in self.check_garden_requirements () file "/ usr /local/lib/python2.7/dist-packages/buildzer-0.15_dev-py2.7.egg/buildozer/__init__.py ", in line 477, ch Eck_garden_requiremen ts self.state ['cache.gardenlibs'] = garden_order file "/usr/local/lib/python2.7/dist-packages/buildzer-0.15_dev-py2.7.egg/buildozer/jsonstore.py", line 33, __setitem__ in self.sync () file with "/usr/local/lib/python2.7/dist-packages/buildzer-0.15_dev-py2.7.egg/buildozer/jsonstore.py", line 54, with IO Fd in the sync .fen (self.filename, 'w', encoding = 'utf-8') fd: IOError: [Error 13] Permission denied: '/home/linuxlite/abc/.buildozer/state.db'  

I can see that this is a permissible issue, and if someone can give any advice on deciding it, I would be grateful.


Editing

After fixing the issue of permissions, I get the following now:

  # command failed: / usr / bin / Python build.py --name myapp --version 1.2.0 - package org.test .myapp - pvt / home / linuxlight / back / .buildozer / android / app - sdk14 - msdk 8 - orientation landscape debug   

Resolve your initia L question using the chown command To do:

  sudo chown -r $ USER: `group | Awk '{print $ 1}' `~ / .buildozer.  

This will reset permissions for both your global builder config and your project to their own users and groups. From this point, please do not use sudo with buildozer. In fact Bad Thing .

Consider using sudo for anything other than installation. The issue, I'm not sure what is happening here - I have come to the same issue on my own, where I got your question. If I get this below, then I will update this answer.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -