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

[Errno 13] Permission denied; Buildozer on Flask Server #445

Closed
minglethepringle opened this issue Jan 1, 2017 · 2 comments
Closed

[Errno 13] Permission denied; Buildozer on Flask Server #445

minglethepringle opened this issue Jan 1, 2017 · 2 comments

Comments

@minglethepringle
Copy link

I have a very basic Flask server:

from flask import Flask
app = Flask(__name__)

@app.route('/')
def hello():
    return "Hello World!"

if __name__ == '__main__':
    app.run() 

I built the file using buildozer with buildozer android_new debug (thanks @inclement , it successfully builds), but when I install the APK it crashes, giving out an error message, saying "Permission Denied." I searched this error up and apparently it's because the port is under 1025, which requires root. However, I specified android.bootstrap=webview in buildozer.spec to use the WebView bootstrap, which runs on port 5000. I also did include Flask as a requirement.

My ADB log: http://pastebin.com/Tbsw5eEQ
My buildozer.spec: http://pastebin.com/3dDUL764

@kchomski
Copy link

kchomski commented Mar 1, 2017

It works on current buildozer version (0.33dev). You have to remove kivy from requirements (leave only flask) and uncomment line with android permissions (remove '#' from #android.permissions = INTERNET).

@inclement
Copy link
Member

Closing as fixed, thanks @kchomski

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

No branches or pull requests

3 participants