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 )
@RodADavison commented on Oct 22, 2017, 7:13 PM UTC:
Thanks for the quick and positive response KeyWee. My read of #5237, is it refers to the /sdcard reference in the get_application_config function. The one I'm referring to is in the user_data_dir function (in the same file). Perhaps this issue should be merged with 5237 and both references could be changed at the same time.
Thanks.
@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 )
This issue was moved by tshirtman from kivy/kivy/issues/5448.
The text was updated successfully, but these errors were encountered: