Questions tagged [pyjnius]

Pyjnius is a Python library for accessing Java classes.

Pyjnius is a library for accessing classes.

References:

170 questions
0
votes
0 answers

How to fix 'jnius.jnius.JavaException' in kivy plyer vibrate android test apk (with buildozer compilation)

I wan't test plyer library with kivy and i tried to test a simple android vibrate. The app end with this log : 04-17 23:49:40.292 15287 15340 I python : File "jnius/jnius_export_class.pxi", line 1034, in…
0
votes
0 answers

Pip import java error Cannot import java?

import.java.util.ArrayList; import csv import pynput import.java.util.ArrayList; from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains from array import array from pynput.keyboard import Key…
Amreign
  • 17
  • 4
0
votes
1 answer

Running pyjnius on Windows, Linux etc

While writing a kivy app that uses java api calls through pyjnius, can you run the code on your system's OS like windows, Linux etc. to see how far you've gone and test your progress OR you can only test the code on an android device
heyt0pe
  • 530
  • 7
  • 18
0
votes
1 answer

python-for-android faild while building pyjnius on Ubuntu 18

I am new to ubuntu and python-for-android, I am trying to build an apk with p4a for the first time, everything seems to be working fine until I get this error: sabeer@sabeer-pc:~$ p4a apk --private $HOME/code/myapp --package=org.example.myapp --name…
0
votes
1 answer

Pyjnius - 'Only the original thread that created a view hierarchy can touch its views.' error when attempting to access android.view.Window methods

I've spent the past three hours struggling to find a solution. Other answers mention the reason for such is because the code is being executed in a separate thread, which makes sense, but as someone who doesn't know Java, combined with very little…
0
votes
0 answers

Unable to determine JRE_HOME in pyjnius installation

I referred from this question: JRE_HOME not found on pip jnius installation However, I tried restarting my computer and reinstalling the JDK and already set my environment variables These are my environment variables: This is in the user…
Jezreel Martin
  • 75
  • 1
  • 10
0
votes
1 answer

Issues during installation of python jnius library. (dependencies?)

I would like to install jnius library for python using pip. I'm getting an error during installation. Here is what happend: C:\Users\Janka\AppData\Local\Programs\Python\Python35-32>python.exe -m pip install jnius Collecting jnius Using cached…
janka
  • 21
  • 1
  • 11
0
votes
0 answers

Binding IBinder and LocalBinder with pyjnius

I'm trying to wrap an android API found here https://github.com/noke-inc/noke-mobile-library-android/blob/c95e45aeba686ec4c5cca932c9b47240d0ebc9cd/README.md I think I've get everything figured out accept this line public void…
GoBig06
  • 255
  • 2
  • 13
0
votes
0 answers

Pyjnius: Python crashes when accessing static variable from instance

I have started to use Pyjnius and I am stuck with a serious bug. I have not found any reference to it but it's so simple to obtain it, that I seriously doubt I am the first one to experience it. Basically, if I try to access a static member of a…
0
votes
0 answers

importing pyjnius in python shell gives KeyError

I have installed pyjnius module in python 2.7.12. I don't really remember how did I installed it. I have a simple script: #!/usr/bin/python from jnius import autoclass # do something here I can run this without getting any error but when I try to…
King of Juice
  • 120
  • 1
  • 12
0
votes
0 answers

Wifi management with pyjnius

With Python and Kivy I have created a simple app with showing landscapes, I would only let it work with the wifi and mobile network, but i'm a beginner looking for someone who helps me. Thanks and regards
0
votes
1 answer

How to install Pyjnius on ubuntu 16.04 64 bit

Who can guide me step by step I am a beginner and I trying to figure out how to install pyjnius. Thank You Regards.
0
votes
1 answer

How to execute ./distribute.sh -m 'pyjnius kivy' this command

I am new in python . I installed pyjnius using this http://pyjnius.readthedocs.io/en/latest/installation.html link on ubuntu but i am confuse about android installation how and where execute ./distribute.sh -m 'pyjnius kivy' this command . please…
swati
  • 83
  • 2
  • 9
0
votes
1 answer

pyjnius library installation program execution error

I am trying to install pyjnius, & when i execute simple program it shows following error.. How do i solve it? SystemError: Error calling dlopen(/usr/lib/jvm/java-7-openjdk/jre/lib/amd64 /server/libjvm.so:…
Priya
  • 1
  • 1
0
votes
3 answers

Kivy + PyJnius check android version

Is there any way to get the android version (4 or 5 or 6 or 7) directly from python or pyjnius? If so, could anyone make an example? I tried kivy.platform but it only tells me if it is android or not and using platform.release from python gives me…
Nick
  • 545
  • 12
  • 31