kivy-garden / zbarcam

Real time Barcode and QR Code scanner
MIT License
129 stars 33 forks source link

ValueError: '/data/data/org.test.myapp/files/app/libs/garden/garden.zbarcam' is not a package #13

Closed wangyuncong123 closed 5 years ago

wangyuncong123 commented 5 years ago

garden.zbarcam is not a package.

my buildozer.spec:

# (list) Garden requirements
garden_requirements = xcamera,zbarcam
AndreMiras commented 5 years ago

Thank you for the bug report. Do you mind sharing more context of your trace. This is runtime on device right? Or is it while building the apk? Could you also share your source code? To be honest I haven't tried putting it in the garden_requirements for a while as I pass it to requirements directly e.g. https://github.com/kivy-garden/garden.zbarcam/archive/20190303.tar.gz, see for instance https://github.com/AndreMiras/QrScan/blob/v20190303/buildozer.spec#L42

wangyuncong123 commented 5 years ago

this is runtime on device. my whole log is

06-02 19:51:18.230 12323 12353 I python  : Android kivy bootstrap done. __name__ is __main__
06-02 19:51:18.230 12323 12353 I python  : AND: Ran string
06-02 19:51:18.230 12323 12353 I python  : Run user program, change dir and execute entrypoint
06-02 19:51:18.974 12323 12353 I python  : [WARNING] [Config      ] Older configuration version detected (0 instead of 21)
06-02 19:51:18.974 12323 12353 I python  : [WARNING] [Config      ] Upgrading configuration in progress.
06-02 19:51:18.990 12323 12353 I python  : [INFO   ] [Logger      ] Record log in /data/user/0/com.github.andremiras.zbarcamdemo/files/app/.kivy/logs/kivy_19-06-02_0.txt
06-02 19:51:18.991 12323 12353 I python  : [INFO   ] [Kivy        ] v1.11.0.dev0, git-Unknown, 20190602
06-02 19:51:18.992 12323 12353 I python  : [INFO   ] [Python      ] v3.7.1 (default, Jun  2 2019, 18:03:17) 
06-02 19:51:18.992 12323 12353 I python  : [Clang 6.0.2 (https://android.googlesource.com/toolchain/clang 183abd29fc496f55
06-02 19:51:21.305 12323 12353 I python  : [INFO   ] [Factory     ] 184 symbols loaded
06-02 19:51:22.504 12323 12353 I python  : [INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
06-02 19:51:22.610 12323 12353 I python  :  Traceback (most recent call last):
06-02 19:51:22.611 12323 12353 I python  :    File "/home/wyc/.buildozer/android/app/main.py", line 5, in <module>
06-02 19:51:22.612 12323 12353 I python  :    File "<frozen importlib._bootstrap>", line 983, in _find_and_load
06-02 19:51:22.614 12323 12353 I python  :    File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
06-02 19:51:22.615 12323 12353 I python  :    File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
06-02 19:51:22.616 12323 12353 I python  :    File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
06-02 19:51:22.618 12323 12353 I python  :    File "/home/wyc/.buildozer/android/platform/build/build/python-installs/zbarcamdemo/kivy/garden/__init__.py", line 100, in load_module
06-02 19:51:22.620 12323 12353 I python  :    File "/home/wyc/.buildozer/android/platform/build/build/python-installs/zbarcamdemo/kivy/garden/__init__.py", line 104, in _load_module
06-02 19:51:22.621 12323 12353 I python  :    File "/home/wyc/.buildozer/android/platform/build/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_21/python3/Lib/imp.py", line 244, in load_module
06-02 19:51:22.623 12323 12353 I python  :    File "/home/wyc/.buildozer/android/platform/build/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_21/python3/Lib/imp.py", line 210, in load_package
06-02 19:51:22.624 12323 12353 I python  :  ValueError: '/data/data/com.github.andremiras.zbarcamdemo/files/app/libs/garden/garden.zbarcam' is not a package
06-02 19:51:22.624 12323 12353 I python  : Python for android ended.

my source code is : main.py

from kivy.app import App
from kivy.garden.zbarcam import ZBarCam
from kivy.uix.widget import Widget

from kivy.lang import Builder

Builder.load_file('app.kv')

class TestApp(App):
    def __init__(self, **kwargs):
        super(TestApp, self).__init__(**kwargs)

    def build(self):
        return BoxLayout()

if __name__ == '__main__':
    TestApp().run()

app.kv
#:import ZBarCam kivy.garden.zbarcam.ZBarCam
#:import ZBarSymbol pyzbar.pyzbar.ZBarSymbol
BoxLayout:
    orientation: 'vertical'
    ZBarCam:
        id: zbarcam
        # optional, by default checks all types
        code_types: ZBarSymbol.QRCODE, ZBarSymbol.EAN13
    Label:
        size_hint: None, None
        size: self.texture_size[0], 50
        text: ', '.join([str(symbol.data) for symbol in zbarcam.symbols])

my buildozer.spec:

[app]

# (str) Title of your application
title = ZBarCam Demo

# (str) Package name
package.name = zbarcamdemo

# (str) Package domain (needed for android/ios packaging)
package.domain = com.github.andremiras

# (str) Source code where the main.py live
source.dir = /home/wyc

# (list) Source files to include (let empty to include all the files)
source.include_exts = py,png,jpg,kv,atlas

# (list) List of inclusions using pattern matching
#source.include_patterns = assets/*,images/*.png

# (list) Source files to exclude (let empty to not exclude anything)
#source.exclude_exts = spec

# (list) List of directory to exclude (let empty to not exclude anything)
#source.exclude_dirs = tests, bin

# (list) List of exclusions using pattern matching
#source.exclude_patterns = license,images/*/*.jpg

# (str) Application versioning (method 1)
version = 0.1

# (str) Application versioning (method 2)
#version.regex = __version__ = ['"](.*)['"]
#version.filename = %(source.dir)s/version.py
# (list) Application requirements
# comma seperated e.g. requirements = sqlite3,kivy
requirements =
    android,
    kivy==5fc5385,
    libiconv,
    libzbar,
    Pillow==5.2.0,
    python3,
    pyzbar==0.1.8
# (str) Custom source folders for requirements
# Sets custom source for any requirements with recipes
# requirements.source.kivy = ../../kivy
# (list) Garden requirements
#garden_requirements =
garden_requirements = xcamera,zbarcam
# (str) Presplash of the application
#presplash.filename = %(source.dir)s/data/presplash.png
# (str) Icon of the application
#icon.filename = %(source.dir)s/data/icon.png
# (str) Supported orientation (one of landscape, portrait or all)
orientation = portrait
# (list) List of service to declare
#services = NAME:ENTRYPOINT_TO_PY,NAME2:ENTRYPOINT2_TO_PY
#
# OSX Specific
#
#
# author = © Copyright Info
# change the major version of python used by the app
osx.python_version = 3
# Kivy version to use
osx.kivy_version = 1.9.1
#
# Android specific
#
# (bool) Indicate if the application should be fullscreen or not
fullscreen = 0
# (string) Presplash background color (for new android toolchain)
# Supported formats are: #RRGGBB #AARRGGBB or one of the following names:
# red, blue, green, black, white, gray, cyan, magenta, yellow, lightgray,
# darkgray, grey, lightgrey, darkgrey, aqua, fuchsia, lime, maroon, navy,
# olive, purple, silver, teal.
#android.presplash_color = #FFFFFF
# (list) Permissions
android.permissions = CAMERA
# (int) Target Android API, should be as high as possible.
android.api = 27
# (int) Minimum API your APK will support.
android.minapi = 21
# (int) Android SDK version to use
android.sdk = 20
# (str) Android NDK version to use
android.ndk = 17c
# (int) Android NDK API to use. This is the minimum API your app will support, it should usually match android.minapi.
android.ndk_api = 21
# (bool) Use --private data storage (True) or --dir public storage (False)
#android.private_storage = True
# (str) Android NDK directory (if empty, it will be automatically downloaded.)
#android.ndk_path =
# (str) Android SDK directory (if empty, it will be automatically downloaded.)
#android.sdk_path =
# (str) ANT directory (if empty, it will be automatically downloaded.)
#android.ant_path =
# (bool) If True, then skip trying to update the Android sdk
# This can be useful to avoid excess Internet downloads or save time
# when an update is due and you just want to test/build your package
# android.skip_update = False
# (bool) If True, then automatically accept SDK license
# agreements. This is intended for automation only. If set to False,
# the default, you will be shown the license when first running
# buildozer.
android.accept_sdk_license = True
# (str) Android entry point, default is ok for Kivy-based app
#android.entrypoint = org.renpy.android.PythonActivity
# (list) Pattern to whitelist for the whole project
#android.whitelist =
# (str) Path to a custom whitelist file
#android.whitelist_src =
# (str) Path to a custom blacklist file
#android.blacklist_src =
# (list) List of Java .jar files to add to the libs so that pyjnius can access
# their classes. Don't add jars that you do not need, since extra jars can slow
# down the build process. Allows wildcards matching, for example:
# OUYA-ODK/libs/*.jar
#android.add_jars = foo.jar,bar.jar,path/to/more/*.jar
# (list) List of Java files to add to the android project (can be java or a
# directory containing the files)
#android.add_src =
# (list) Android AAR archives to add (currently works only with sdl2_gradle
# bootstrap)
#android.add_aars =
# (list) Gradle dependencies to add (currently works only with sdl2_gradle
# bootstrap)
#android.gradle_dependencies =
# (str) python-for-android branch to use, defaults to master
p4a.branch = master
# (str) OUYA Console category. Should be one of GAME or APP
# If you leave this blank, OUYA support will not be enabled
#android.ouya.category = GAME
# (str) Filename of OUYA Console icon. It must be a 732x412 png image.
#android.ouya.icon.filename = %(source.dir)s/data/ouya_icon.png
# (str) XML file to include as an intent filters in <activity> tag
#android.manifest.intent_filters =
# (list) Android additionnal libraries to copy into libs/armeabi
#android.add_libs_armeabi = libs/android/*.so
#android.add_libs_armeabi_v7a = libs/android-v7/*.so
#android.add_libs_x86 = libs/android-x86/*.so
#android.add_libs_mips = libs/android-mips/*.so
# (bool) Indicate whether the screen should stay on
# Don't forget to add the WAKE_LOCK permission if you set this to True
#android.wakelock = False
# (list) Android application meta-data to set (key=value format)
#android.meta_data =
# (list) Android library project to add (will be added in the
# project.properties automatically.)
#android.library_references =
# (str) Android logcat filters to use
#android.logcat_filters = *:S python:D
# (bool) Copy library instead of making a libpymodules.so
#android.copy_libs = 1
# (str) The Android arch to build for, choices: armeabi-v7a, arm64-v8a, x86
android.arch = armeabi-v7a
#
# Python for android (p4a) specific
#
# (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
#p4a.source_dir =
# (str) The directory in which python-for-android should look for your own build recipes (if any)
#p4a.local_recipes =
# (str) Filename to the hook for p4a
#p4a.hook =
# (str) Bootstrap to use for android builds
# p4a.bootstrap = sdl2
#
# iOS specific
#
# (str) Path to a custom kivy-ios folder
#ios.kivy_ios_dir = ../kivy-ios
# (str) Name of the certificate to use for signing the debug version
# Get a list of available identities: buildozer ios list_identities
#ios.codesign.debug = "iPhone Developer: <lastname> <firstname> (<hexstring>)"
# (str) Name of the certificate to use for signing the release version
#ios.codesign.release = %(ios.codesign.debug)s
[buildozer]
# (int) Log level (0 = error only, 1 = info, 2 = debug (with command output))
log_level = 2
# (int) Display warning if buildozer is run as root (0 = False, 1 = True)
warn_on_root = 1
# (str) Path to build artifact storage, absolute or relative to spec file
# build_dir = ./.buildozer
# (str) Path to build output (i.e. .apk, .ipa) storage
# bin_dir = ./bin
#    -----------------------------------------------------------------------------
#    List as sections
#
#    You can define all the "list" as [section:key].
#    Each line will be considered as a option to the list.
#    Let's take [app] / source.exclude_patterns.
#    Instead of doing:
#
#[app]
#source.exclude_patterns = license,data/audio/*.wav,data/images/original/*
#
#    This can be translated into:
#
#[app:source.exclude_patterns]
#license
#data/audio/*.wav
#data/images/original/*
#
#    -----------------------------------------------------------------------------
#    Profiles
#
#    You can extend section / key with a profile
#    For example, you want to deploy a demo version of your application without
#    HD content. You could first change the title to add "(demo)" in the name
#    and extend the excluded directories to remove the HD content.
#
#[app@demo]
#title = My Application (demo)
#
#[app:source.exclude_patterns@demo]
#images/hd/*
#
#    Then, invoke the command line with the "demo" profile:
#
#buildozer --profile demo android debug

Edit: AndreMiras enhanced formatting

AndreMiras commented 5 years ago

Thanks for sharing. I'll try to reproduce (hopefully) this week and get back to you.

GoBig87 commented 5 years ago

I'm seeing the same thing. The issues has to deal with the __init__.py file. There's no __init__.py file in the main directory only the zbarcam directory. If you copy the __init__.py file outside of the zbarcam folder into the main folder (leave both) you can then import zbarcam.

vmisiko commented 5 years ago

guys i was able to compile an apk, but the runtime error i get is this for zbarcam, JavaException: JVM exception occurred: Fail to connect to camera service

--------- beginning of system
--------- beginning of main
07-07 19:01:40.517  5398  5434 I python  : Initializing Python for Android
07-07 19:01:40.518  5398  5434 I python  : Setting additional env vars from p4a_env_vars.txt
07-07 19:01:40.520  5398  5434 I python  : Changing directory to the one provided by ANDROID_ARGUMENT
07-07 19:01:40.520  5398  5434 I python  : /data/user/0/favitech.co.ke.possapp/files/app
07-07 19:01:40.526  5398  5434 I python  : Preparing to initialize python
07-07 19:01:40.527  5398  5434 I python  : _python_bundle dir exists
07-07 19:01:40.527  5398  5434 I python  : calculated paths to be...
07-07 19:01:40.527  5398  5434 I python  : /data/user/0/favitech.co.ke.possapp/files/app/_python_bundle/stdlib.zip:/data/user/0/favitech.co.ke.possapp/files/app/_python_bundle/modules
07-07 19:01:40.544  5398  5434 I python  : set wchar paths...
07-07 19:01:41.068  5398  5434 I python  : Initialized python
07-07 19:01:41.068  5398  5434 I python  : AND: Init threads
07-07 19:01:41.073  5398  5434 I python  : testing python print redirection
07-07 19:01:41.077  5398  5434 I python  : Android path ['.', '/data/user/0/favitech.co.ke.possapp/files/app/_python_bundle/stdlib.zip', '/data/user/0/favitech.co.ke.possapp/files/app/_python_bundle/modules', '/data/user/0/favitech.co.ke.possapp/files/app/_python_bundle/site-packages']
07-07 19:01:41.078  5398  5434 I python  : os.environ is environ({'PATH': '/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin', 'DOWNLOAD_CACHE': '/data/cache', 'ANDROID_BOOTLOGO': '1', 'ANDROID_ROOT': '/system', 'ANDROID_ASSETS': '/system/app', 'ANDROID_DATA': '/data', 'ANDROID_STORAGE': '/storage', 'EXTERNAL_STORAGE': '/sdcard', 'ASEC_MOUNTPOINT': '/mnt/asec', 'BOOTCLASSPATH': '/system/framework/core-oj.jar:/system/framework/core-libart.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/apache-xml.jar:/system/framework/org.apache.http.legacy.boot.jar:/system/framework/qcom.fmradio.jar:/system/framework/tcmiface.jar:/system/framework/telephony-ext.jar:/system/framework/oem-services.jar', 'SYSTEMSERVERCLASSPATH': '/system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar', 'SECONDARY_STORAGE': '/storage/sdcard1', 'ANDROID_SOCKET_zygote': '8', 'ANDROID_ENTRYPOINT': 'main.pyc', 'ANDROID_ARGUMENT': '/data/user/0/favitech.co.ke.possapp/files/app', 'ANDROID_APP_PATH': '/data/user/0/favitech.co.ke.possapp/files/app', 'ANDROID_PRIVATE': '/data/user/0/favitech.co.ke.possapp/files', 'ANDROID_UNPACK': '/data/user/0/favitech.co.ke.possapp/files/app', 'PYTHONHOME': '/data/user/0/favitech.co.ke.possapp/files/app', 'PYTHONPATH': '/data/user/0/favitech.co.ke.possapp/files/app:/data/user/0/favitech.co.ke.possapp/files/app/lib', 'PYTHONOPTIMIZE': '2', 'P4A_BOOTSTRAP': 'SDL2', 'PYTHON_NAME': 'python', 'P4A_IS_WINDOWED': 'True', 'P4A_ORIENTATION': 'portrait', 'P4A_NUMERIC_VERSION': 'None', 'P4A_MINSDK': '21', 'LC_CTYPE': 'C.UTF-8'})
07-07 19:01:41.079  5398  5434 I python  : Android kivy bootstrap done. __name__ is __main__
07-07 19:01:41.079  5398  5434 I python  : AND: Ran string
07-07 19:01:41.079  5398  5434 I python  : Run user program, change dir and execute entrypoint
07-07 19:01:42.099  5398  5434 I python  : [INFO   ] [Logger      ] Record log in /data/user/0/favitech.co.ke.possapp/files/app/.kivy/logs/kivy_19-07-07_8.txt
07-07 19:01:42.100  5398  5434 I python  : [INFO   ] [Kivy        ] v2.0.0.dev0, git-Unknown, 20190706
07-07 19:01:42.101  5398  5434 I python  : [INFO   ] [Kivy        ] Installed at "/data/user/0/favitech.co.ke.possapp/files/app/_python_bundle/site-packages/kivy/__init__.pyc"
07-07 19:01:42.102  5398  5434 I python  : [INFO   ] [Python      ] v3.7.1 (default, Jun 14 2019, 20:32:09) 
07-07 19:01:42.102  5398  5434 I python  : [Clang 6.0.2 (https://android.googlesource.com/toolchain/clang 183abd29fc496f55
07-07 19:01:42.103  5398  5434 I python  : [INFO   ] [Python      ] Interpreter at "android_python"
07-07 19:01:46.268  5398  5434 I python  : [INFO   ] [Factory     ] 184 symbols loaded
07-07 19:01:48.058  5398  5434 I python  : [INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
07-07 19:01:48.210  5398  5434 I python  : [INFO   ] [KivyMD      ] KivyMD version: 0.100.2
07-07 19:01:48.386  5398  5434 I python  : [INFO   ] [Window      ] Provider: sdl2
07-07 19:01:48.493  5398  5434 I python  : [INFO   ] [GL          ] Using the "OpenGL ES 2" graphics system
07-07 19:01:48.498  5398  5434 I python  : [INFO   ] [GL          ] Backend used <sdl2>
07-07 19:01:48.507  5398  5434 I python  : [INFO   ] [GL          ] OpenGL version <b'OpenGL ES 3.0 V@145.0 AU@ (GIT@If568f5364a)'>
07-07 19:01:48.510  5398  5434 I python  : [INFO   ] [GL          ] OpenGL vendor <b'Qualcomm'>
07-07 19:01:48.512  5398  5434 I python  : [INFO   ] [GL          ] OpenGL renderer <b'Adreno (TM) 304'>
07-07 19:01:48.514  5398  5434 I python  : [INFO   ] [GL          ] OpenGL parsed version: 3, 0
07-07 19:01:48.515  5398  5434 I python  : [INFO   ] [GL          ] Texture max size <4096>
07-07 19:01:48.520  5398  5434 I python  : [INFO   ] [GL          ] Texture max units <16>
07-07 19:01:48.584  5398  5434 I python  : [INFO   ] [Window      ] auto add sdl2 input provider
07-07 19:01:48.593  5398  5434 I python  : [INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
07-07 19:01:48.636  5398  5434 I python  : [INFO   ] [Text        ] Provider: sdl2
07-07 19:01:50.318  5398  5434 I python  : [INFO   ] [GL          ] NPOT texture support is available
07-07 19:01:52.572  5398  5434 I python  : [WARNING] Deprecated property "<VariableListProperty name=padding_y>" of object "<kivy.uix.textinput.TextInput object at 0x901ebd88>" was accessed, it will be removed in a future version
07-07 19:01:52.573  5398  5434 I python  : [WARNING] Deprecated property "<VariableListProperty name=padding_x>" of object "<kivy.uix.textinput.TextInput object at 0x901ebd88>" was accessed, it will be removed in a future version
07-07 19:01:54.657  5398  5434 I python  : [INFO   ] [Camera      ] Provider: android
07-07 19:01:56.042  5398  5434 I python  :  Traceback (most recent call last):
07-07 19:01:56.043  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 684, in _apply_rule
07-07 19:01:56.045  5398  5434 I python  :    File "kivy/weakproxy.pyx", line 35, in kivy.weakproxy.WeakProxy.__setattr__
07-07 19:01:56.047  5398  5434 I python  :    File "kivy/properties.pyx", line 497, in kivy.properties.Property.__set__
07-07 19:01:56.048  5398  5434 I python  :    File "kivy/properties.pyx", line 839, in kivy.properties.ListProperty.set
07-07 19:01:56.052  5398  5434 I python  :    File "kivy/properties.pyx", line 544, in kivy.properties.Property.set
07-07 19:01:56.056  5398  5434 I python  :    File "kivy/properties.pyx", line 599, in kivy.properties.Property.dispatch
07-07 19:01:56.058  5398  5434 I python  :    File "kivy/_event.pyx", line 1214, in kivy._event.EventObservers.dispatch
07-07 19:01:56.062  5398  5434 I python  :    File "kivy/_event.pyx", line 1120, in kivy._event.EventObservers._dispatch
07-07 19:01:56.063  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/uix/camera.py", line 103, in _on_index
07-07 19:01:56.065  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/core/camera/camera_android.py", line 42, in __init__
07-07 19:01:56.066  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/core/camera/__init__.py", line 70, in __init__
07-07 19:01:56.067  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/core/camera/camera_android.py", line 49, in init_camera
07-07 19:01:56.069  5398  5434 I python  :    File "jnius/jnius_export_class.pxi", line 1044, in jnius.jnius.JavaMultipleMethod.__call__
07-07 19:01:56.073  5398  5434 I python  :    File "jnius/jnius_export_class.pxi", line 765, in jnius.jnius.JavaMethod.__call__
07-07 19:01:56.075  5398  5434 I python  :    File "jnius/jnius_export_class.pxi", line 931, in jnius.jnius.JavaMethod.call_staticmethod
07-07 19:01:56.076  5398  5434 I python  :    File "jnius/jnius_utils.pxi", line 91, in jnius.jnius.check_exception
07-07 19:01:56.078  5398  5434 I python  :  jnius.jnius.JavaException: JVM exception occurred: Fail to connect to camera service
07-07 19:01:56.078  5398  5434 I python  :  
07-07 19:01:56.079  5398  5434 I python  :  During handling of the above exception, another exception occurred:
07-07 19:01:56.080  5398  5434 I python  :  
07-07 19:01:56.081  5398  5434 I python  :  Traceback (most recent call last):
07-07 19:01:56.082  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/app/main.py", line 786, in <module>
07-07 19:01:56.084  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/app.py", line 829, in run
07-07 19:01:56.085  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/app/main.py", line 776, in build
07-07 19:01:56.086  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 285, in load_file
07-07 19:01:56.088  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 389, in load_string
07-07 19:01:56.090  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 643, in _apply_rule
07-07 19:01:56.092  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 641, in _apply_rule
07-07 19:01:56.094  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/uix/widget.py", line 469, in apply_class_lang_rules
07-07 19:01:56.096  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 522, in apply
07-07 19:01:56.098  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 643, in _apply_rule
07-07 19:01:56.101  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 641, in _apply_rule
07-07 19:01:56.102  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/uix/widget.py", line 469, in apply_class_lang_rules
07-07 19:01:56.104  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 522, in apply
07-07 19:01:56.105  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 643, in _apply_rule
07-07 19:01:56.106  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 641, in _apply_rule
07-07 19:01:56.107  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/uix/widget.py", line 469, in apply_class_lang_rules
07-07 19:01:56.109  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 522, in apply
07-07 19:01:56.111  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 691, in _apply_rule
07-07 19:01:56.113  5398  5434 I python  :  kivy.lang.builder.BuilderException: Parser: File "<inline>", line 28:
07-07 19:01:56.114  5398  5434 I python  :  ...
07-07 19:01:56.115  5398  5434 I python  :       26:
07-07 19:01:56.116  5398  5434 I python  :       27:    id: camera
07-07 19:01:56.116  5398  5434 I python  :  >>   28:    resolution: 640, 480 # 1920, 1080
07-07 19:01:56.117  5398  5434 I python  :       29:    allow_stretch: True
07-07 19:01:56.117  5398  5434 I python  :       30:
07-07 19:01:56.118  5398  5434 I python  :  ...
07-07 19:01:56.118  5398  5434 I python  :  JavaException: JVM exception occurred: Fail to connect to camera service
07-07 19:01:56.119  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 684, in _apply_rule
07-07 19:01:56.120  5398  5434 I python  :    File "kivy/weakproxy.pyx", line 35, in kivy.weakproxy.WeakProxy.__setattr__
07-07 19:01:56.121  5398  5434 I python  :    File "kivy/properties.pyx", line 497, in kivy.properties.Property.__set__
07-07 19:01:56.122  5398  5434 I python  :    File "kivy/properties.pyx", line 839, in kivy.properties.ListProperty.set
07-07 19:01:56.123  5398  5434 I python  :    File "kivy/properties.pyx", line 544, in kivy.properties.Property.set
07-07 19:01:56.124  5398  5434 I python  :    File "kivy/properties.pyx", line 599, in kivy.properties.Property.dispatch
07-07 19:01:56.125  5398  5434 I python  :    File "kivy/_event.pyx", line 1214, in kivy._event.EventObservers.dispatch
07-07 19:01:56.125  5398  5434 I python  :    File "kivy/_event.pyx", line 1120, in kivy._event.EventObservers._dispatch
07-07 19:01:56.126  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/uix/camera.py", line 103, in _on_index
07-07 19:01:56.127  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/core/camera/camera_android.py", line 42, in __init__
07-07 19:01:56.127  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/core/camera/__init__.py", line 70, in __init__
07-07 19:01:56.128  5398  5434 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/core/camera/camera_android.py", line 49, in init_camera
07-07 19:01:56.128  5398  5434 I python  :    File "jnius/jnius_export_class.pxi", line 1044, in jnius.jnius.JavaMultipleMethod.__call__
07-07 19:01:56.130  5398  5434 I python  :    File "jnius/jnius_export_class.pxi", line 765, in jnius.jnius.JavaMethod.__call__
07-07 19:01:56.132  5398  5434 I python  :    File "jnius/jnius_export_class.pxi", line 931, in jnius.jnius.JavaMethod.call_staticmethod
07-07 19:01:56.133  5398  5434 I python  :    File "jnius/jnius_utils.pxi", line 91, in jnius.jnius.check_exception
07-07 19:01:56.134  5398  5434 I python  :  
07-07 19:01:56.134  5398  5434 I python  : Python for android ended.
07-07 19:02:24.644  5812  5832 I python  : Initializing Python for Android
07-07 19:02:24.644  5812  5832 I python  : Setting additional env vars from p4a_env_vars.txt
07-07 19:02:24.645  5812  5832 I python  : Changing directory to the one provided by ANDROID_ARGUMENT
07-07 19:02:24.645  5812  5832 I python  : /data/user/0/favitech.co.ke.possapp/files/app
07-07 19:02:24.645  5812  5832 I python  : Preparing to initialize python
07-07 19:02:24.645  5812  5832 I python  : _python_bundle dir exists
07-07 19:02:24.645  5812  5832 I python  : calculated paths to be...
07-07 19:02:24.645  5812  5832 I python  : /data/user/0/favitech.co.ke.possapp/files/app/_python_bundle/stdlib.zip:/data/user/0/favitech.co.ke.possapp/files/app/_python_bundle/modules
07-07 19:02:24.648  5812  5832 I python  : set wchar paths...
07-07 19:02:24.976  5812  5832 I python  : Initialized python
07-07 19:02:24.976  5812  5832 I python  : AND: Init threads
07-07 19:02:24.979  5812  5832 I python  : testing python print redirection
07-07 19:02:24.983  5812  5832 I python  : Android path ['.', '/data/user/0/favitech.co.ke.possapp/files/app/_python_bundle/stdlib.zip', '/data/user/0/favitech.co.ke.possapp/files/app/_python_bundle/modules', '/data/user/0/favitech.co.ke.possapp/files/app/_python_bundle/site-packages']
07-07 19:02:24.990  5812  5832 I python  : os.environ is environ({'PATH': '/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin', 'DOWNLOAD_CACHE': '/data/cache', 'ANDROID_BOOTLOGO': '1', 'ANDROID_ROOT': '/system', 'ANDROID_ASSETS': '/system/app', 'ANDROID_DATA': '/data', 'ANDROID_STORAGE': '/storage', 'EXTERNAL_STORAGE': '/sdcard', 'ASEC_MOUNTPOINT': '/mnt/asec', 'BOOTCLASSPATH': '/system/framework/core-oj.jar:/system/framework/core-libart.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/apache-xml.jar:/system/framework/org.apache.http.legacy.boot.jar:/system/framework/qcom.fmradio.jar:/system/framework/tcmiface.jar:/system/framework/telephony-ext.jar:/system/framework/oem-services.jar', 'SYSTEMSERVERCLASSPATH': '/system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar', 'SECONDARY_STORAGE': '/storage/sdcard1', 'ANDROID_SOCKET_zygote': '8', 'ANDROID_ENTRYPOINT': 'main.pyc', 'ANDROID_ARGUMENT': '/data/user/0/favitech.co.ke.possapp/files/app', 'ANDROID_APP_PATH': '/data/user/0/favitech.co.ke.possapp/files/app', 'ANDROID_PRIVATE': '/data/user/0/favitech.co.ke.possapp/files', 'ANDROID_UNPACK': '/data/user/0/favitech.co.ke.possapp/files/app', 'PYTHONHOME': '/data/user/0/favitech.co.ke.possapp/files/app', 'PYTHONPATH': '/data/user/0/favitech.co.ke.possapp/files/app:/data/user/0/favitech.co.ke.possapp/files/app/lib', 'PYTHONOPTIMIZE': '2', 'P4A_BOOTSTRAP': 'SDL2', 'PYTHON_NAME': 'python', 'P4A_IS_WINDOWED': 'True', 'P4A_ORIENTATION': 'portrait', 'P4A_NUMERIC_VERSION': 'None', 'P4A_MINSDK': '21', 'LC_CTYPE': 'C.UTF-8'})
07-07 19:02:24.991  5812  5832 I python  : Android kivy bootstrap done. __name__ is __main__
07-07 19:02:24.991  5812  5832 I python  : AND: Ran string
07-07 19:02:24.991  5812  5832 I python  : Run user program, change dir and execute entrypoint
07-07 19:02:25.598  5812  5832 I python  : [INFO   ] [Logger      ] Record log in /data/user/0/favitech.co.ke.possapp/files/app/.kivy/logs/kivy_19-07-07_9.txt
07-07 19:02:25.599  5812  5832 I python  : [INFO   ] [Kivy        ] v2.0.0.dev0, git-Unknown, 20190706
07-07 19:02:25.600  5812  5832 I python  : [INFO   ] [Kivy        ] Installed at "/data/user/0/favitech.co.ke.possapp/files/app/_python_bundle/site-packages/kivy/__init__.pyc"
07-07 19:02:25.601  5812  5832 I python  : [INFO   ] [Python      ] v3.7.1 (default, Jun 14 2019, 20:32:09) 
07-07 19:02:25.601  5812  5832 I python  : [Clang 6.0.2 (https://android.googlesource.com/toolchain/clang 183abd29fc496f55
07-07 19:02:25.602  5812  5832 I python  : [INFO   ] [Python      ] Interpreter at "android_python"
07-07 19:02:28.648  5812  5832 I python  : [INFO   ] [Factory     ] 184 symbols loaded
07-07 19:02:30.487  5812  5832 I python  : [INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
07-07 19:02:30.689  5812  5832 I python  : [INFO   ] [KivyMD      ] KivyMD version: 0.100.2
07-07 19:02:30.856  5812  5832 I python  : [INFO   ] [Window      ] Provider: sdl2
07-07 19:02:30.941  5812  5832 I python  : [INFO   ] [GL          ] Using the "OpenGL ES 2" graphics system
07-07 19:02:30.945  5812  5832 I python  : [INFO   ] [GL          ] Backend used <sdl2>
07-07 19:02:30.948  5812  5832 I python  : [INFO   ] [GL          ] OpenGL version <b'OpenGL ES 3.0 V@145.0 AU@ (GIT@If568f5364a)'>
07-07 19:02:30.950  5812  5832 I python  : [INFO   ] [GL          ] OpenGL vendor <b'Qualcomm'>
07-07 19:02:30.952  5812  5832 I python  : [INFO   ] [GL          ] OpenGL renderer <b'Adreno (TM) 304'>
07-07 19:02:30.953  5812  5832 I python  : [INFO   ] [GL          ] OpenGL parsed version: 3, 0
07-07 19:02:30.955  5812  5832 I python  : [INFO   ] [GL          ] Texture max size <4096>
07-07 19:02:30.957  5812  5832 I python  : [INFO   ] [GL          ] Texture max units <16>
07-07 19:02:31.020  5812  5832 I python  : [INFO   ] [Window      ] auto add sdl2 input provider
07-07 19:02:31.025  5812  5832 I python  : [INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
07-07 19:02:31.071  5812  5832 I python  : [INFO   ] [Text        ] Provider: sdl2
07-07 19:02:32.662  5812  5832 I python  : [INFO   ] [GL          ] NPOT texture support is available
07-07 19:02:34.928  5812  5832 I python  : [WARNING] Deprecated property "<VariableListProperty name=padding_y>" of object "<kivy.uix.textinput.TextInput object at 0x9022adc0>" was accessed, it will be removed in a future version
07-07 19:02:34.929  5812  5832 I python  : [WARNING] Deprecated property "<VariableListProperty name=padding_x>" of object "<kivy.uix.textinput.TextInput object at 0x9022adc0>" was accessed, it will be removed in a future version
07-07 19:02:37.019  5812  5832 I python  : [INFO   ] [Camera      ] Provider: android
07-07 19:02:38.416  5812  5832 I python  :  Traceback (most recent call last):
07-07 19:02:38.417  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 684, in _apply_rule
07-07 19:02:38.420  5812  5832 I python  :    File "kivy/weakproxy.pyx", line 35, in kivy.weakproxy.WeakProxy.__setattr__
07-07 19:02:38.422  5812  5832 I python  :    File "kivy/properties.pyx", line 497, in kivy.properties.Property.__set__
07-07 19:02:38.424  5812  5832 I python  :    File "kivy/properties.pyx", line 839, in kivy.properties.ListProperty.set
07-07 19:02:38.428  5812  5832 I python  :    File "kivy/properties.pyx", line 544, in kivy.properties.Property.set
07-07 19:02:38.431  5812  5832 I python  :    File "kivy/properties.pyx", line 599, in kivy.properties.Property.dispatch
07-07 19:02:38.433  5812  5832 I python  :    File "kivy/_event.pyx", line 1214, in kivy._event.EventObservers.dispatch
07-07 19:02:38.434  5812  5832 I python  :    File "kivy/_event.pyx", line 1120, in kivy._event.EventObservers._dispatch
07-07 19:02:38.436  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/uix/camera.py", line 103, in _on_index
07-07 19:02:38.438  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/core/camera/camera_android.py", line 42, in __init__
07-07 19:02:38.440  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/core/camera/__init__.py", line 70, in __init__
07-07 19:02:38.442  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/core/camera/camera_android.py", line 49, in init_camera
07-07 19:02:38.443  5812  5832 I python  :    File "jnius/jnius_export_class.pxi", line 1044, in jnius.jnius.JavaMultipleMethod.__call__
07-07 19:02:38.445  5812  5832 I python  :    File "jnius/jnius_export_class.pxi", line 765, in jnius.jnius.JavaMethod.__call__
07-07 19:02:38.446  5812  5832 I python  :    File "jnius/jnius_export_class.pxi", line 931, in jnius.jnius.JavaMethod.call_staticmethod
07-07 19:02:38.448  5812  5832 I python  :    File "jnius/jnius_utils.pxi", line 91, in jnius.jnius.check_exception
07-07 19:02:38.451  5812  5832 I python  :  jnius.jnius.JavaException: JVM exception occurred: Fail to connect to camera service
07-07 19:02:38.452  5812  5832 I python  :  
07-07 19:02:38.453  5812  5832 I python  :  During handling of the above exception, another exception occurred:
07-07 19:02:38.454  5812  5832 I python  :  
07-07 19:02:38.454  5812  5832 I python  :  Traceback (most recent call last):
07-07 19:02:38.455  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/app/main.py", line 786, in <module>
07-07 19:02:38.457  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/app.py", line 829, in run
07-07 19:02:38.460  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/app/main.py", line 776, in build
07-07 19:02:38.461  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 285, in load_file
07-07 19:02:38.463  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 389, in load_string
07-07 19:02:38.465  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 643, in _apply_rule
07-07 19:02:38.467  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 641, in _apply_rule
07-07 19:02:38.469  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/uix/widget.py", line 469, in apply_class_lang_rules
07-07 19:02:38.471  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 522, in apply
07-07 19:02:38.473  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 643, in _apply_rule
07-07 19:02:38.475  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 641, in _apply_rule
07-07 19:02:38.477  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/uix/widget.py", line 469, in apply_class_lang_rules
07-07 19:02:38.479  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 522, in apply
07-07 19:02:38.481  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 643, in _apply_rule
07-07 19:02:38.483  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 641, in _apply_rule
07-07 19:02:38.485  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/uix/widget.py", line 469, in apply_class_lang_rules
07-07 19:02:38.487  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 522, in apply
07-07 19:02:38.488  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 691, in _apply_rule
07-07 19:02:38.491  5812  5832 I python  :  kivy.lang.builder.BuilderException: Parser: File "<inline>", line 28:
07-07 19:02:38.492  5812  5832 I python  :  ...
07-07 19:02:38.493  5812  5832 I python  :       26:
07-07 19:02:38.494  5812  5832 I python  :       27:    id: camera
07-07 19:02:38.494  5812  5832 I python  :  >>   28:    resolution: 640, 480 # 1920, 1080
07-07 19:02:38.495  5812  5832 I python  :       29:    allow_stretch: True
07-07 19:02:38.496  5812  5832 I python  :       30:
07-07 19:02:38.497  5812  5832 I python  :  ...
07-07 19:02:38.498  5812  5832 I python  :  JavaException: JVM exception occurred: Fail to connect to camera service
07-07 19:02:38.498  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/lang/builder.py", line 684, in _apply_rule
07-07 19:02:38.500  5812  5832 I python  :    File "kivy/weakproxy.pyx", line 35, in kivy.weakproxy.WeakProxy.__setattr__
07-07 19:02:38.500  5812  5832 I python  :    File "kivy/properties.pyx", line 497, in kivy.properties.Property.__set__
07-07 19:02:38.501  5812  5832 I python  :    File "kivy/properties.pyx", line 839, in kivy.properties.ListProperty.set
07-07 19:02:38.502  5812  5832 I python  :    File "kivy/properties.pyx", line 544, in kivy.properties.Property.set
07-07 19:02:38.503  5812  5832 I python  :    File "kivy/properties.pyx", line 599, in kivy.properties.Property.dispatch
07-07 19:02:38.504  5812  5832 I python  :    File "kivy/_event.pyx", line 1214, in kivy._event.EventObservers.dispatch
07-07 19:02:38.505  5812  5832 I python  :    File "kivy/_event.pyx", line 1120, in kivy._event.EventObservers._dispatch
07-07 19:02:38.505  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/uix/camera.py", line 103, in _on_index
07-07 19:02:38.506  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/core/camera/camera_android.py", line 42, in __init__
07-07 19:02:38.507  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/core/camera/__init__.py", line 70, in __init__
07-07 19:02:38.508  5812  5832 I python  :    File "/home/v-ubuntu/Desktop/packed/.buildozer/android/platform/build/build/python-installs/PossApp/kivy/core/camera/camera_android.py", line 49, in init_camera
07-07 19:02:38.509  5812  5832 I python  :    File "jnius/jnius_export_class.pxi", line 1044, in jnius.jnius.JavaMultipleMethod.__call__
07-07 19:02:38.511  5812  5832 I python  :    File "jnius/jnius_export_class.pxi", line 765, in jnius.jnius.JavaMethod.__call__
07-07 19:02:38.512  5812  5832 I python  :    File "jnius/jnius_export_class.pxi", line 931, in jnius.jnius.JavaMethod.call_staticmethod
07-07 19:02:38.513  5812  5832 I python  :    File "jnius/jnius_utils.pxi", line 91, in jnius.jnius.check_exception
07-07 19:02:38.514  5812  5832 I python  :  
07-07 19:02:38.514  5812  5832 I python  : Python for android ended. 
wangyuncong123 commented 5 years ago

i just copy all the zbarcam.py and zbarcam.kv into my source code and it solved.

vmisiko commented 5 years ago

@wangyuncong123 , i also used the example in the ReadMe.txt for zbarcam, it works fine in the destop, but when compiled it crashes on starting the app, and gives me the above runtime logcat.text. i don't where am going wrong

wangyuncong123 commented 5 years ago

maybe not use camera . zbarcam.kv used xcamera. 07-07 19:01:56.116 5398 5434 I python : 27: id: camera 07-07 19:01:56.116 5398 5434 I python : >> 28: resolution: 640, 480 # 1920, 1080 07-07 19:01:56.117 5398 5434 I python : 29: allow_stretch: True 07-07 19:01:56.117 5398 5434 I python : 30: 07-07 19:01:56.118 5398 5434 I python : ...

vmisiko commented 5 years ago

Ok. But i already put xcamera in garden_requirements, or how again can i make it use xcamera instead of camera? Or are u suggesting i import xcamera in my kivy script?

wangyuncong123 commented 5 years ago

just use zbarcam.kv is done! let zbarcam.kv with your main.py together

:import XCamera kivy.garden.xcamera.XCamera

: Widget: # invert width/height on rotated Android # https://stackoverflow.com/a/45192295/185510 id: proxy XCamera: id: xcamera play: True resolution: root.resolution allow_stretch: True keep_ratio: True center: self.size and proxy.center size: (proxy.height, proxy.width) if root.is_android() \ else (proxy.width, proxy.height) # Android camera rotation workaround, refs: # https://github.com/AndreMiras/garden.zbarcam/issues/3 canvas.before: PushMatrix Rotate: angle: -90 if root.is_android() else 0 origin: self.center canvas.after: PopMatrix
AndreMiras commented 5 years ago

The garden.zbarcam' is not a package error should be fixed with with last release. @vmisiko the last error you are sharing is not related to this issue, but to https://github.com/kivy-garden/zbarcam/issues/12 and https://github.com/kivy-garden/zbarcam/issues/16