maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   N900 + Google Latitude (https://talk.maemo.org/showthread.php?t=38542)

MasterZap 2011-05-13 14:40

Re: N900 + Google Latitude
 
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

ndi 2011-05-13 15:59

Re: N900 + Google Latitude
 
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?

gazza_d 2011-05-13 16:03

Re: N900 + Google Latitude
 
any chance of a rough changelog and or some screenshots?

MasterZap 2011-05-13 16:40

Re: N900 + Google Latitude
 
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

MasterZap 2011-05-13 16:47

Re: N900 + Google Latitude
 
(never mind, this wasn't it - clearing out post so misleading info isn't there)

ndi 2011-05-13 20:52

Re: N900 + Google Latitude
 
Quote:

Originally Posted by MasterZap (Post 1005641)
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.

Quote:

Originally Posted by MasterZap (Post 1005641)
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
~ $

Quote:

Originally Posted by MasterZap (Post 1005641)
chmod 777 /opt/zaploc
chmod +x /opt/zaploc/*.py

Don't think that's my problem.

Quote:

Originally Posted by MasterZap (Post 1005641)
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?

MasterZap 2011-05-14 05:35

Re: N900 + Google Latitude
 
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

MasterZap 2011-05-14 05:46

Re: N900 + Google Latitude
 
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

MasterZap 2011-05-14 07:18

Re: N900 + Google Latitude
 
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

kurtyy 2011-05-14 13:02

Re: N900 + Google Latitude
 
@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


All times are GMT. The time now is 04:38.

vBulletin® Version 3.8.8