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

All Library is work, But cant Install "pyzbar" Library #469

Closed
MohamedSoliman1999 opened this issue Mar 24, 2021 · 1 comment
Closed

All Library is work, But cant Install "pyzbar" Library #469

MohamedSoliman1999 opened this issue Mar 24, 2021 · 1 comment

Comments

@MohamedSoliman1999
Copy link

Chaquopy version

Devices or emulators where the issue happens

Relevant parts of your code

Describe Crash issue

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.chaquo.myapplication/com.chaquo.myapplication.MainActivity}: com.chaquo.python.PyException: ImportError: Unable to find zbar shared library
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2946)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3081)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1831)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:201)
at android.app.ActivityThread.main(ActivityThread.java:6810)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
Caused by: com.chaquo.python.PyException: ImportError: Unable to find zbar shared library
at .pyzbar.zbar_library.load(zbar_library.py:65)
at .pyzbar.wrapper.load_libzbar(wrapper.py:115)
at .pyzbar.wrapper.zbar_function(wrapper.py:136)
at .pyzbar.wrapper.(wrapper.py:139)
at .java.chaquopy.import_override(import.pxi:60)
at .pyzbar.pyzbar.(pyzbar.py:7)
at .java.chaquopy.import_override(import.pxi:60)
at .plot.(plot.py:3)
at .importlib._bootstrap._call_with_frames_removed(:219)
at .importlib._bootstrap_external.exec_module(:783)
at .java.android.importer.exec_module(importer.py:507)
at .java.android.importer.exec_module(importer.py:556)
at .importlib._bootstrap._load_unlocked(:671)
at .importlib._bootstrap._find_and_load_unlocked(:975)
at .importlib._bootstrap._find_and_load(:991)
at .importlib._bootstrap._gcd_import(:1014)
at .importlib.import_module(init.py:127)
at .chaquopy_java.Java_com_chaquo_python_Python_getModuleNative(chaquopy_java.pyx:155)
at com.chaquo.python.Python.getModuleNative(Native Method)
at com.chaquo.python.Python.getModule(Python.java:84)
at com.chaquo.myapplication.MainActivity.onCreate(MainActivity.kt:25)
at android.app.Activity.performCreate(Activity.java:7224)
at android.app.Activity.performCreate(Activity.java:7213)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2926)

@mhsmith
Copy link
Member

mhsmith commented Mar 24, 2021

See #88, and please search for existing issues before creating new ones.

@mhsmith mhsmith closed this as completed Mar 24, 2021
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