Giter Site home page Giter Site logo

GPS example crashes about plyer HOT 13 CLOSED

lipi avatar lipi commented on May 16, 2024
GPS example crashes

from plyer.

Comments (13)

trivedigaurav avatar trivedigaurav commented on May 16, 2024

Could you describe what you did in more detail? Running the code seems to work fine for me:

I/python  ( 5315): Starting audio thread
I/python  ( 5315): Initialize Python for Android
I/python  ( 5315): ['/data/data/org.test.gps/files/lib/python2.7/site-packages', '/data/data/org.test.gps/files/lib/site-python']
I/python  ( 5315): Android path ['/data/data/org.test.gps/files/lib/python27.zip', '/data/data/org.test.gps/files/lib/python2.7', '/data/data/org.test.gps/files/lib/python2.7/lib-dynload', '/data/data/org.test.gps/files/lib/python2.7/site-packages', '/data/data/org.test.gps/files']
I/python  ( 5315): Android kivy bootstrap done. __name__ is __main__
I/python  ( 5315): Run user program, change dir and execute main.py
I/python  ( 5315): Python for android ended.

from plyer.

WardBenjamin avatar WardBenjamin commented on May 16, 2024

Did you run this on Android? That could be the problem, as I think that
there problems running this on Windows.

On Thu, Mar 13, 2014 at 4:09 PM, trivedigaurav [email protected]:

Could describe what you did in more detail? Running the code seems to work
fine for me:

I/python ( 5315): Starting audio thread
I/python ( 5315): Initialize Python for Android
I/python ( 5315): ['/data/data/org.test.gps/files/lib/python2.7/site-packages', '/data/data/org.test.gps/files/lib/site-python']
I/python ( 5315): Android path ['/data/data/org.test.gps/files/lib/python27.zip', '/data/data/org.test.gps/files/lib/python2.7', '/data/data/org.test.gps/files/lib/python2.7/lib-dynload', '/data/data/org.test.gps/files/lib/python2.7/site-packages', '/data/data/org.test.gps/files']
I/python ( 5315): Android kivy bootstrap done. name is main
I/python ( 5315): Run user program, change dir and execute main.py
I/python ( 5315): Python for android ended.

Reply to this email directly or view it on GitHubhttps://github.com//issues/40#issuecomment-37580467
.

Benjamin Ward, Period 7 Psycho

from plyer.

trivedigaurav avatar trivedigaurav commented on May 16, 2024

At this point the GPS facade is only available for Android. It will raise a NotImplemented Error on all other platforms.

from plyer.

lipi avatar lipi commented on May 16, 2024

It is running on Android, as you can see in the logcat output.

I used the latest (master) python-for-android, which in turn pulled the latest pyjnius I believe. Android version is 4.4.2.

from plyer.

brousch avatar brousch commented on May 16, 2024

What device and version of Android are you using?
On Mar 13, 2014 10:26 PM, "lipi" [email protected] wrote:

It is running on Android, as you can see in the logcat output.

I used the latest (master) python-for-android, which in turn pulled the
latest pyjnius I believe.

Reply to this email directly or view it on GitHubhttps://github.com//issues/40#issuecomment-37610071
.

from plyer.

lipi avatar lipi commented on May 16, 2024

Nexus 4 and Android 4.4.2 Python-for-andorid was built on Ubuntu 12.04, using NDK r9c and SDK 19.

Will try to reproduce it with different SDK level on different host and phone.

from plyer.

trivedigaurav avatar trivedigaurav commented on May 16, 2024

Although I have not yet been able to reproduce the issue, it seems to be a Pyjnius issue and not necessarily specific to the GPS example. It occurs when calling the constructor to the PythonJavaClass. Here is another such reported issue on 4.4.2: kivy/pyjnius#92

from plyer.

lipi avatar lipi commented on May 16, 2024

Thanks for the tip, the example works after switching the runtime back to Dalvik.

I am closing this issue as it seems to be a duplicate of kivy/pyjnius#92

from plyer.

iamryanmoreno avatar iamryanmoreno commented on May 16, 2024

I am having trouble running the gps example in plyer.. I runned it but it is stuck with getting Click start to get GPS location updates. I runned it in kivy luncher with plyer and buildozer inside. can u please provide a screeshot of what should be seen after running the application and provide a clear step by step of running properly this program. PLease..............

from plyer.

brousch avatar brousch commented on May 16, 2024

I don't think Kivy Launcher has the Android permissions necessary to use
the GPS. You should compile an APK using buildozer and install it to your
device. Putting buildozer in your project does nothing.

On Fri, Feb 13, 2015 at 4:16 AM, iamryanmoreno [email protected]
wrote:

I am having trouble running the gps example in plyer.. I runned it but it
is stuck with getting Click start to get GPS location updates. I runned it
in kivy luncher with plyer and buildozer inside. can u please provide a
screeshot of what should be seen after running the application and provide
a clear step by step of running properly this program. PLease..............

β€”
Reply to this email directly or view it on GitHub
#40 (comment).

Ben Rousch
[email protected]
http://clusterbleep.net/

from plyer.

iamryanmoreno avatar iamryanmoreno commented on May 16, 2024

can i get an apk of the plyer example for gps? i will install it in my phone because I am really curious about this python program?

from plyer.

iamryanmoreno avatar iamryanmoreno commented on May 16, 2024

why is that when i runned the other examples, its working in my kivy launcher only that of gps is not. can someone provide another library for accessing gps in kivy?

from plyer.

moonpyx avatar moonpyx commented on May 16, 2024

hello, glad , download the GPS example plyer https://github.com/kivy/plyer/tree/master/examples/gps but for android in buildozer compile the application does not start when installed on my device with android 4.4.4 Error throws me NotImplementedError. thanks

from plyer.

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.