You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
version = "1.0"
import urllib.request
from kivy.app import App
form kivy.uix.label import Label
class MyApp(App):
def build(self):
return Label(text='test')
MyApp().run()
It runs on my computer, starting it with "python3 main.py". I can build an android apk with buildozer, but on my phone it crashes on startup. Logcat says "Import error, no module named request". I'm using the following:
Python 3.4.0
Buildozer 0.26
Kivy v1.8.0
running on Ubuntu 14.04.2
Any idea how to fix this?
The text was updated successfully, but these errors were encountered:
It seems that the Python3 code is not properly translated to Python2. A workaround for me was to try the python3 import, if it doesn't work use the python2 import:
try:
from urllib.request import urlretrieve
except:
from urllib import urlretrieve
I created the following app:
version = "1.0"
import urllib.request
from kivy.app import App
form kivy.uix.label import Label
class MyApp(App):
def build(self):
return Label(text='test')
MyApp().run()
It runs on my computer, starting it with "python3 main.py". I can build an android apk with buildozer, but on my phone it crashes on startup. Logcat says "Import error, no module named request". I'm using the following:
Python 3.4.0
Buildozer 0.26
Kivy v1.8.0
running on Ubuntu 14.04.2
Any idea how to fix this?
The text was updated successfully, but these errors were encountered: