maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Problem with PyMaemo location.GPSD (https://talk.maemo.org/showthread.php?t=38628)

mgreene 2009-12-28 14:33

Problem with PyMaemo location.GPSD
 
Have installed PyMaemo and python-location. Tried running the example on the PyMaemo PY-Location page, but get the following error:

[sbox-FREMANTLE_ARMEL: ~/gps_work] > run-standalone.sh python2.5 location.py
Traceback (most recent call last):
File "location.py", line 1, in <module>
import location
File "/home/mgreene/gps_work/location.py", line 25, in <module>
control = location.GPSDControl.get_default()
AttributeError: 'module' object has no attribute 'GPSDControl'

andrei1089 2010-01-15 14:50

Re: Problem with PyMaemo location.GPSD
 
Quote:

Originally Posted by mgreene (Post 443898)
Have installed PyMaemo and python-location. Tried running the example on the PyMaemo PY-Location page, but get the following error:

[sbox-FREMANTLE_ARMEL: ~/gps_work] > run-standalone.sh python2.5 location.py
Traceback (most recent call last):
File "location.py", line 1, in <module>
import location
File "/home/mgreene/gps_work/location.py", line 25, in <module>
control = location.GPSDControl.get_default()
AttributeError: 'module' object has no attribute 'GPSDControl'

Change the name of your file from location.py to something else.

roose 2010-01-20 01:17

Re: Problem with PyMaemo location.GPSD
 
Same problem here, and my file is named loca.py

danielwilms 2010-01-20 08:30

Re: Problem with PyMaemo location.GPSD
 
Quote:

Originally Posted by mgreene (Post 443898)
Have installed PyMaemo and python-location. Tried running the example on the PyMaemo PY-Location page, but get the following error:

[sbox-FREMANTLE_ARMEL: ~/gps_work] > run-standalone.sh python2.5 location.py

You cannot run applications in the ARMEL target. This target is just meant for cross-compiling! Please use the X86 target for application testing. Further you cannot test the location-related stuff within the SDK. The SDK does not offer that kind of testing and does not emulate the location-framework. These kinds of tests you can just run on-device.

Daniel

roose 2010-01-20 18:18

Re: Problem with PyMaemo location.GPSD
 
I'm getting the error on-device. (testing it within the SDK makes not much sense for me, as i have no gps device there)

danielwilms 2010-01-21 09:16

Re: Problem with PyMaemo location.GPSD
 
Quote:

Originally Posted by roose (Post 484757)
I'm getting the error on-device. (testing it within the SDK makes not much sense for me, as i have no gps device there)

what's your filename?!? I get the same error if I use "location.py" as the name of my test-file. As andrei1089 said this won't work. Name it differently and there shouldn't be a problem then.

Daniel

roose 2010-01-22 11:35

Re: Problem with PyMaemo location.GPSD
 
sorry ... for confusion ... my fault

forgot to delete the location.pyo


All times are GMT. The time now is 11:20.

vBulletin® Version 3.8.8