Giter VIP home page Giter VIP logo

Comments (4)

tsiens avatar tsiens commented on June 3, 2024

I upgraded pyjnius to 1.6.1,but i use bleak

from bleak import BleakClient, BleakScanner
import asyncio
async def main():
    return [{'name': d.name, 'addr': d.address} for d in await BleakScanner.discover() if d.name]
print(asyncio.run(main()))

new error

11-22 15:17:39.197 26650  3738 I python  :   File "/root/.local/share/python-for-android/build/python-installs/tda/arm64-v8a/bleak/__init__.py", line 317, in discover
11-22 15:17:39.197 26650  3738 I python  :   File "/root/.local/share/python-for-android/build/python-installs/tda/arm64-v8a/bleak/__init__.py", line 145, in __init__
11-22 15:17:39.197 26650  3738 I python  :   File "/root/.local/share/python-for-android/build/python-installs/tda/arm64-v8a/bleak/backends/scanner.py", line 279, in get_platform_scanner_backend_type
11-22 15:17:39.197 26650  3738 I python  :   File "/root/.local/share/python-for-android/build/python-installs/tda/arm64-v8a/bleak/backends/p4android/scanner.py", line 20, in <module>
11-22 15:17:39.197 26650  3738 I python  :   File "/root/.local/share/python-for-android/build/python-installs/tda/arm64-v8a/bleak/backends/p4android/defs.py", line 32, in <module>
11-22 15:17:39.197 26650  3738 I python  :   File "/root/.local/share/python-for-android/build/python-installs/tda/arm64-v8a/jnius/reflect.py", line 209, in autoclass
11-22 15:17:39.197 26650  3738 I python  :   File "jnius/jnius_export_func.pxi", line 22, in jnius.jnius.find_javaclass
11-22 15:17:39.197 26650  3738 I python  :   File "jnius/jnius_utils.pxi", line 79, in jnius.jnius.check_exception
11-22 15:17:39.197 26650  3738 I python  : jnius.jnius.JavaException: JVM exception occurred: Didn't find class "com.github.hbldh.bleak.PythonScanCallback" on path: DexPathList[[zip file "/data/app/~~mxhtEbHpdi2pYmczUMA4Aw==/org.tsiens.tda-RJEZMqcdhMu-DpY0trVGsA==/base.apk"],nativeLibraryDirectories=[/data/app/~~mxhtEbHpdi2pYmczUMA4Aw==/org.tsiens.tda-RJEZMqcdhMu-DpY0trVGsA==/lib/arm64, /data/app/~~mxhtEbHpdi2pYmczUMA4Aw==/org.tsiens.tda-RJEZMqcdhMu-DpY0trVGsA==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]] java.lang.ClassNotFoundException
11-22 15:17:39.197 26650  3738 I python  : Python for android ended.

from pyjnius.

Julian-O avatar Julian-O commented on June 3, 2024

python-for-android does not support Cython 3. kivy/python-for-android#2919

from pyjnius.

Julian-O avatar Julian-O commented on June 3, 2024

Wait, you got a problem with an old version of PyJnius. You found an issue that said "Oh, use a newer one", so you used upgraded and the problem went away.

Yay.

Now, you are having a different problem with bleak, which provides its own p4a recipe.

This is a support problem - it doesn't belong here because we don't know (yet) if it is a problem with pyjnius at all.

from pyjnius.

github-actions avatar github-actions commented on June 3, 2024

👋 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.

from pyjnius.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.