Comments (4)
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.
python-for-android does not support Cython 3. kivy/python-for-android#2919
from pyjnius.
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.
👋 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)
- pyjnius build error on s390x HOT 10
- ClassNotFoundException for android.media.midi.MidiManager.OnDeviceOpenedListener HOT 3
- unexpected error for jdk17 HOT 4
- Crashes on Apple M1 HOT 27
- How to add everything under M2 repository to pyjnius classpath? HOT 2
- DeprecationWarning: pkg_resources is deprecated as an API
- pyjnius build error, still coming HOT 10
- Including a JAR on Android HOT 2
- Support mail address is broken HOT 2
- OverflowError: value too large to convert to jshort HOT 4
- How to create Webview with FileChooser HOT 1
- Moderinze `java` code? HOT 2
- installation documentation could be refreshed HOT 3
- Usage without JDK HOT 6
- Running python script on Android but in Docker container HOT 1
- Getting a pointer to JavaVM
- Dependency Dashboard
- No jvm.dll found HOT 3
- Unrecognized option: --add-exports / --add-opens HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyjnius.