Active Topics

 



Notices


Reply
Thread Tools
Posts: 214 | Thanked: 140 times | Joined on Aug 2010
#201
Ok, I worked a little on my script over the weekend... a wee bit.... and then I pulled an all nighter since my wife was away on a tradeshow anyway... so... what emerged is in extras/devel repository as "ZapLoc".

This is a very early version, but.... lemme know if it installs and works for you. Getting things to install through a repository on maemo was rather... tricky.


EDIT 2 - I (think I) I have fixed the google api installer, so try normal instal BEFORE trying this workaround


EDIT: Just installing ZapLoc doesn't work, because I botched the packaging of the google api client. To install it use these NEW instructions:
  1. Install ZapLoc from the program manager (location category) or by doing "apt-get install zaploc" (same thing)
  2. Now we need to get the Google Api Python Client thingamabob installed (this doesn't work in the installation - apologies)
  3. Open X-term
  4. Become root (at least I think you need to be root)
    Code:
    sudo gainroot
  5. Go to some random directory for downloading unzipping
    Code:
    cd /home/user/MyDocs/
  6. Download http://google-api-python-client.goog...t-1.0beta2.zip
    Code:
    wget http://google-api-python-client.googlecode.com/files/google-api-python-client-1.0beta2.zip
  7. Unzip it
    Code:
    unzip api-python-client-1.0beta2.zip
  8. Go to that dir and run
    Code:
    cd api-python-client-1.0beta2.zip
    python setup.py install
  9. Now ZapLoc should (in theory) work.
  10. If you want, you can delete the downloaded file and clear out and remove the directory, 'tis no longer needed.
    Code:
    rm -r api-python-client-1.0beta2
    rm api-python-client-1.0beta2.zip

/Z

Last edited by MasterZap; 2011-05-14 at 07:32.
 

The Following 3 Users Say Thank You to MasterZap For This Useful Post:
ndi's Avatar
Posts: 2,050 | Thanked: 1,425 times | Joined on Dec 2009 @ Bucharest
#202
What was it supposed to do? Mine put an icon in the menu, but when clicked it does nothing. Not even closing the menu and crashing, it just highlights the icon and freezes.

Manual launch? How?
__________________
N900 dead and Nokia no longer replaces them. Thanks for all the fish.

Keep the forums clean: use "Thanks" button instead of the thank you post.
 
Posts: 961 | Thanked: 565 times | Joined on Jul 2007 @ Tyneside, North East England
#203
any chance of a rough changelog and or some screenshots?
__________________
______________________________

Nokia 770 (2gb) since Aug 2007
Nokia N800 (32gb) since Dec 2007
Nokia N810 (16gb) since Sep 2009
Nokia N900 (64gb) since Aug 2010 ______________________________
 
Posts: 214 | Thanked: 140 times | Joined on Aug 2010
#204
Could be an issue with the google api not being installed... I tried to make it a package... try

apt-get install google-api-python-client

See if you have a directory "apiclient" in /usr/lib/python2.5/site-packages called "apilibrary"

If not, then I screwed up the api installer somehow, and you will have to use the method descibed earlier in this thread. Hmm. I tried to be rid of that dependency but I gave up on writing my own version.... oh well.

EDIT: It indeed was, see a few posts up for instructions on how to get around that manually for now

/Z

Last edited by MasterZap; 2011-05-14 at 06:21.
 

The Following User Says Thank You to MasterZap For This Useful Post:
Posts: 214 | Thanked: 140 times | Joined on Aug 2010
#205
(never mind, this wasn't it - clearing out post so misleading info isn't there)

Last edited by MasterZap; 2011-05-14 at 06:21.
 

The Following User Says Thank You to MasterZap For This Useful Post:
ndi's Avatar
Posts: 2,050 | Thanked: 1,425 times | Joined on Dec 2009 @ Bucharest
#206
Originally Posted by MasterZap View Post
Also make sure you have version 0.9.4-7 or newer, the previous one had the "just freezes when clicking the icon" problem.
I do. Freeze.

Originally Posted by MasterZap View Post
You can try to manually do

python /opt/zaploc/main.py
Code:
$ python /opt/zaploc/main.py 
Traceback (most recent call last): 
  File "/opt/zaploc/main.py", line 3, in <module> 
    import zaploc 
  File "/opt/zaploc/zaploc.py", line 20, in <module> 
  File "/opt/zaploc/zdaemon.py", line 16, in <module> 
  File "/opt/zaploc/zlatitude.py", line 1, in <module> 
  File "/usr/lib/python2.5/site-packages/apiclient/discovery.py", line 29, in <module> 
    import uritemplate 
ImportError: No module named uritemplate 
~ $
Originally Posted by MasterZap View Post
chmod 777 /opt/zaploc
chmod +x /opt/zaploc/*.py
Don't think that's my problem.

Originally Posted by MasterZap View Post
See if you have a directory "apiclient" in /usr/lib/python2.5/site-packages called "apilibrary"
That sentence no sense.

I have a directory called /usr/lib/python2.5/site-packages/apiclient

There are some .py and some .pyc files in there, and some other underscore files. No more.

Two folders, contrib and ext. Contrib has buzz, latitude and moderator and "ext" has appengine py-s.

There is no sign of an apilibrary. In fact, there is no file called *apilibrary* anywhere in my filesystem.

The package zaploc depends on google-api-python-client and it was subsequently installed (shows up as installed, 1.0.1-1). Botched google-api-python-god-i-hate-this-naming-sistem-client?

Suggestions?
__________________
N900 dead and Nokia no longer replaces them. Thanks for all the fish.

Keep the forums clean: use "Thanks" button instead of the thank you post.
 

The Following User Says Thank You to ndi For This Useful Post:
Posts: 214 | Thanked: 140 times | Joined on Aug 2010
#207
Yes, that sentence made no sense, sorry. Meant "apiclient" only.

Naming convention is googles not mine... I just packaged it.

as for yor problem, try

apt-get install python-oauth python-oauth2

I don't know which package this missing "uritemplate" is supposedly from is there a way to know this?

/Z
 
Posts: 214 | Thanked: 140 times | Joined on Aug 2010
#208
oooh, it was supposed to be part of the google latitude api stuff. Crap.

I know I should never have tried to package that

Ok, do this:

Step 1: download http://google-api-python-client.goog...t-1.0beta2.zip

Step 2: unzip it to some directory

Step 3: go into this directory and type
Code:
python setup.py install
If this worked, (you see it copy a bunch of stuff) you can delete the download and the directory you made if you want.

Hope this... helps?

/Z

Last edited by MasterZap; 2011-05-14 at 06:07.
 
Posts: 214 | Thanked: 140 times | Joined on Aug 2010
#209
ok I THINK I have fixed the packaging of google-api-python-client...

Pleasy try original install now, by simply installing zaploc only. SHOULD work.




In theory.







/Z
 
Posts: 34 | Thanked: 4 times | Joined on Jan 2010
#210
@masterzap

thx this app is what i was looking for since a long time.
install works as well app starts also. i setup the background location and my latitude account.

but the app isn't going to determine my current position?
there is also no gps icon shown in the notification/task area.

anny suggestion is welcome


thx a lot
 
Reply


 
Forum Jump


All times are GMT. The time now is 17:49.