×
Namespaces

Variants
Actions

Archived Talk:Using the PySymbian Sensor module

From Nokia Developer Wiki
Jump to: navigation, search
{{{width}}}
18 Sep
2009

>>> sensor.get('AccSensor') Traceback (most recent call last):

 File "<console>", line 1, in ?

AttributeError: 'module' object has no attribute 'get'



Getting KeyError for AccSensor

The code, as is, throws an error 'module' object has no attribute 'get'

I've modified the code to bypass that and things worked for the RotSensor but when I try the AccSensor, I get a KeyError.

The comment made about a month ago says "...you can not use this program directly on devices..."

I'm not sure what that means - if not devices then what...the emulator? I'm sure I'm missing something or mis-interpreting that comment. Any help?

Thanks!

This page was last modified on 8 May 2013, at 07:29.
17 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×