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
@RodADavison commented on Oct 22, 2017, 5:03 AM UTC:
I'm a new user of RaceCapture which is user of Kivy. I've encountered this error on my Huawei phone which throws an exception:
10-12 09:05:43.501 10388 10428 I python : [CRITICAL] [Traceback (most recent call last)]
10-12 09:05:43.501 10388 10428 I python : File "/home/brent/git-projects/RaceCapture_App/.buildozer/android/app/main.py", line 608, in
10-12 09:05:43.501 10388 10428 I python : File "/home/brent/git-projects/RaceCapture_App/.buildozer/android/app/main.py", line 168, in init
10-12 09:05:43.501 10388 10428 I python : File "/home/brent/git-projects/RaceCapture_App/.buildozer/android/platform/build/dists/racecapture/private/lib/python2.7/site-packages/kivy/app.py", line 780, in user_data_dir
10-12 09:05:43.501 10388 10428 I python : OSError: [Errno 2] No such file or directory: '/sdcard/racecapture'
I've noticed 2 related bug reports here: #2990 #5259
The code in kivy/app.py (around line 771)
data_dir = join('/sdcard', self.name)
should be replaced using the android api requests something like:
from jnius import autoclass
env = autoclass('android.os.Environment')
data_dir = join(env.getExternalStorageDirectory().getPath(), self.name )
Activity