Skip to content

Android run error #159

@maksimus1982

Description

@maksimus1982

Hello!

My app works perfect on Android with 0.9.0 .

After upgrade to serious-python 0.9.2 i have error on running on Android device. When python script is being executed - application is simple crashing. Here is console output :

Start unpacking archive: app/app.zip
I/flutter ( 7274): Finished unpacking application archive in 0:00:01.198047
I/flutter ( 7274): Warning: Unable to load libpyjni.so library: PlatformException(Error, dlopen failed: library "libpyjni.so" not found, null, null)
I/flutter ( 7274): getNativeLibraryDir: /data/app/~~lJbe3G9rR2bQrpZM2zV0-A==/com.example.run_example-4NY6ccBAzie3MmYnMh-kqQ==/lib/x86_64
I/flutter ( 7274): extractAssetOrFile directory: /data/user/0/com.example.run_example/files/flet/python_bundle
I/flutter ( 7274): Start unpacking archive: /data/app/~~lJbe3G9rR2bQrpZM2zV0-A==/com.example.run_example-4NY6ccBAzie3MmYnMh-kqQ==/lib/x86_64/libpythonbundle.so
I/flutter ( 7274): Finished unpacking application archive in 0:00:04.214015
I/flutter ( 7274): pythonLibPath: /data/user/0/com.example.run_example/files/flet/python_bundle
I/flutter ( 7274): extractAssetOrFile directory: /data/user/0/com.example.run_example/files/flet/python_site_packages
I/flutter ( 7274): Start unpacking archive: /data/app/~~lJbe3G9rR2bQrpZM2zV0-A==/com.example.run_example-4NY6ccBAzie3MmYnMh-kqQ==/lib/x86_64/libpythonsitepackages.so
I/flutter ( 7274): Finished unpacking application archive in 0:00:09.283629
I/flutter ( 7274): sitePackagesPath: /data/user/0/com.example.run_example/files/flet/python_site_packages
I/flutter ( 7274): dynamicLibPath: libpython3.12.so
I/flutter ( 7274): programDirPath: /data/user/0/com.example.run_example/files/flet/app
I/flutter ( 7274): programModuleName: main
Lost connection to device.

When i try to run last example project from https://github.com/flet-dev/serious-python/tree/main/src/serious_python/example/run_example i get same error. And example app is crashing too

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions