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

APK using txt file in main.py issue. #704

Closed
minguk94 opened this issue Aug 17, 2018 · 1 comment
Closed

APK using txt file in main.py issue. #704

minguk94 opened this issue Aug 17, 2018 · 1 comment

Comments

@minguk94
Copy link

Hi guys. I am a beginner of Python

so i made some application but it crashes when i running this app in Android (everything is fine in Ubuntu or Windows)

so i debugged by running adb logcat and found out this error.

08-17 13:26:41.939 9073 9242 I python : Traceback (most recent call last):
08-17 13:26:41.939 9073 9242 I python : File "/root/hi2/.buildozer/android/app/main.py", line 73, in
08-17 13:26:41.940 9073 9242 I python : File "/root/hi2/.buildozer/android/platform/build/dists/tubuc/private/lib/python2.7/site-packages/kivy/lang/builder.py", line 301, in load_file
08-17 13:26:41.940 9073 9242 I python : File "/root/hi2/.buildozer/android/platform/build/dists/tubuc/private/lib/python2.7/site-packages/kivy/lang/builder.py", line 382, in load_string
08-17 13:26:41.940 9073 9242 I python : File "/root/hi2/.buildozer/android/platform/build/dists/tubuc/private/lib/python2.7/site-packages/kivy/lang/builder.py", line 564, in _apply_rule
08-17 13:26:41.940 9073 9242 I python : File "/root/hi2/.buildozer/android/app/main.py", line 56, in init
08-17 13:26:41.941 9073 9242 I python : IOError: [Errno 2] No such file or directory: '/assets/station/ICB164000039.txt'
08-17 13:26:41.962 9073 9242 I python : Python for android ended.

But when i converted apk file to zip and open it, The path is exists....and i tried relative path but it didn't help.

could you help me guys? thank you for reading.

@inclement
Copy link
Member

Looks like the problem is the use of an absolute, not relative path.

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

2 participants