Skip to content Skip to sidebar Skip to footer

Plyer Accelerometer Not Implemented Error On Android Phone

I installed Qpython (Python 2.7) and plyer on may android phone (Samsung Galaxy J5, with accelerometer - without gyroscope). I want to read the accelerometer values. Simply I enter

Solution 1:

According to the documentation, it appears you must first enable the accelerometer. Without doing so, it will throw a NotImplementedError exception as provided in this code:

defenable(self):
     '''Activate the accelerometer sensor. Throws an error if the
     hardware is not available or not implemented on.
     '''
     self._enable()

Further down the code, you will see this:

def_enable(self):
        raise NotImplementedError()

I might not have explained myself fully but upon inspecting this code, you should be able to determine what is causing this error. Primarily, it could be that the app (QPython) or hardware just does not support this feature.

Post a Comment for "Plyer Accelerometer Not Implemented Error On Android Phone"