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
I built the python in pydroid3 and ran it on my android 10 car radio head. It works. It needs to read and write a local file to save state. Using pydroid3 and filemanager i was able to write to storage here /mnt/sdcard/python/ I created the python folder using filemanager and was able to read and write a file (called lastip) in that folder.
On the Android emulator I created a local file with the same path name using the existing /mnt/sdcard/ folder. When I run the android version of the application in android studio i get the error message
"PermissionError: [Errno 1] Operation not permitted: '/mnt/sdcard/python/lastip'
2023-01-08 23:26:47.523 16440-16502 python org.test.jmapp1 I Python for android ended."
I setup permissions found in spec file to allow internet access and local storage using android.private_storage = True.
The application will loadup and display the GUI but when I run it in the radio-head it just crashes -- likely with the same error
/Traceback (most recent call last):
2023-01-08 23:26:47.522 16440-16502 python org.test.jmapp1 I File "/Users/jackmullen/qtenviro/android1/ipgetter/.buildozer/android/app/main.py", line 87, in <module>
2023-01-08 23:26:47.522 16440-16502 python org.test.jmapp1 I File "/Users/jackmullen/qtenviro/android1/ipgetter/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/jmapp1/arm64-v8a/kivy/app.py", line 955, in run
2023-01-08 23:26:47.522 16440-16502 python org.test.jmapp1 I File "/Users/jackmullen/qtenviro/android1/ipgetter/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/jmapp1/arm64-v8a/kivy/base.py", line 574, in runTouchApp
2023-01-08 23:26:47.522 16440-16502 python org.test.jmapp1 I File "/Users/jackmullen/qtenviro/android1/ipgetter/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/jmapp1/arm64-v8a/kivy/base.py", line 339, in mainloop
2023-01-08 23:26:47.522 16440-16502 python org.test.jmapp1 I File "/Users/jackmullen/qtenviro/android1/ipgetter/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/jmapp1/arm64-v8a/kivy/base.py", line 383, in idle
2023-01-08 23:26:47.522 16440-16502 python org.test.jmapp1 I File "/Users/jackmullen/qtenviro/android1/ipgetter/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/jmapp1/arm64-v8a/kivy/base.py", line 334, in dispatch_input
2023-01-08 23:26:47.522 16440-16502 python org.test.jmapp1 I File "/Users/jackmullen/qtenviro/android1/ipgetter/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/jmapp1/arm64-v8a/kivy/base.py", line 263, in post_dispatch_input
2023-01-08 23:26:47.522 16440-16502 python org.test.jmapp1 I File "kivy/_event.pyx", line 731, in kivy._event.EventDispatcher.dispatch
2023-01-08 23:26:47.522 16440-16502 python org.test.jmapp1 I File "/Users/jackmullen/qtenviro/android1/ipgetter/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/jmapp1/arm64-v8a/kivy/core/window/__init__.py", line 1660, in on_motion
2023-01-08 23:26:47.522 16440-16502 python org.test.jmapp1 I File "kivy/_event.pyx", line 731, in kivy._event.EventDispatcher.dispatch
2023-01-08 23:26:47.522 16440-16502 python org.test.jmapp1 I File "/Users/jackmullen/qtenviro/android1/ipgetter/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/jmapp1/arm64-v8a/kivy/core/window/__init__.py", line 1677, in on_touch_down
2023-01-08 23:26:47.523 16440-16502 python org.test.jmapp1 I File "kivy/_event.pyx", line 731, in kivy._event.EventDispatcher.dispatch
2023-01-08 23:26:47.523 16440-16502 python org.test.jmapp1 I File "/Users/jackmullen/qtenviro/android1/ipgetter/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/jmapp1/arm64-v8a/kivy/uix/widget.py", line 589, in on_touch_down
2023-01-08 23:26:47.523 16440-16502 python org.test.jmapp1 I File "kivy/_event.pyx", line 731, in kivy._event.EventDispatcher.dispatch
2023-01-08 23:26:47.523 16440-16502 python org.test.jmapp1 I File "/Users/jackmullen/qtenviro/android1/ipgetter/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/jmapp1/arm64-v8a/kivy/uix/widget.py", line 589, in on_touch_down
2023-01-08 23:26:47.523 16440-16502 python org.test.jmapp1 I File "kivy/_event.pyx", line 731, in kivy._event.EventDispatcher.dispatch
2023-01-08 23:26:47.523 16440-16502 python org.test.jmapp1 I File "/Users/jackmullen/qtenviro/android1/ipgetter/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/python-installs/jmapp1/arm64-v8a/kivy/uix/behaviors/button.py", line 151, in on_touch_down
2023-01-08 23:26:47.523 16440-16502 python org.test.jmapp1 I File "kivy/_event.pyx", line 727, in kivy._event.EventDispatcher.dispatch
2023-01-08 23:26:47.523 16440-16502 python org.test.jmapp1 I File "kivy/_event.pyx", line 1307, in kivy._event.EventObservers.dispatch
2023-01-08 23:26:47.523 16440-16502 python org.test.jmapp1 I File "kivy/_event.pyx", line 1231, in kivy._event.EventObservers._dispatch
2023-01-08 23:26:47.523 16440-16502 python org.test.jmapp1 I File "/Users/jackmullen/qtenviro/android1/ipgetter/.buildozer/android/app/main.py", line 77, in on_press_button
2023-01-08 23:26:47.523 16440-16502 python org.test.jmapp1 I File "/Users/jackmullen/qtenviro/android1/ipgetter/.buildozer/android/app/main.py", line 51, in getIP
2023-01-08 23:26:47.523 16440-16502 python org.test.jmapp1 I PermissionError: [Errno 1] Operation not permitted: '/mnt/sdcard/python/lastip'
2023-01-08 23:26:47.523 16440-16502 python org.test.jmapp1 I Python for android ended.
The text was updated successfully, but these errors were encountered:
Thank you - much more light. Do you know of any examples using real path names besides the unit test? I am not clear as to how to use copy_to_shared and copy_from_shared concerning the paths and filenames
👋 @steelliberty, we use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project.
Let us know if this comment was made in error, and we'll be happy to reopen the issue.
Versions
Description
I built the python in pydroid3 and ran it on my android 10 car radio head. It works. It needs to read and write a local file to save state. Using pydroid3 and filemanager i was able to write to storage here /mnt/sdcard/python/ I created the python folder using filemanager and was able to read and write a file (called lastip) in that folder.
On the Android emulator I created a local file with the same path name using the existing /mnt/sdcard/ folder. When I run the android version of the application in android studio i get the error message
"PermissionError: [Errno 1] Operation not permitted: '/mnt/sdcard/python/lastip'
2023-01-08 23:26:47.523 16440-16502 python org.test.jmapp1 I Python for android ended."
I setup permissions found in spec file to allow internet access and local storage using android.private_storage = True.
The application will loadup and display the GUI but when I run it in the radio-head it just crashes -- likely with the same error
buildozer.spec
Command:
Spec file:
Logs
The text was updated successfully, but these errors were encountered: