gcalcli and macports

Joined
Jul 5, 2007
Messages
88
Reaction score
1
Points
8
Your Mac's Specs
MacBook 1.83 GHz intel c2d, 2gb ram, xp and os x.6
I'm trying to put the agenda from my google calendar on my desktop via geektool, but I'm having trouble getting gcalcli to recognize the dependencies. According to the site, gcalcli requires python, dateutil, elementtree and gdata. I installed all of these via macports but when I try and run gcalcli it says gdata is missing.

I have a feeling I may have two versions of python on my computer. One installed by xcode (py23) and the one I installed by macports (py24).
 
Joined
Aug 25, 2006
Messages
1,395
Reaction score
30
Points
48
Location
Central Florida
Your Mac's Specs
MacBook Pro Unibody
Did you install gcalcli using macports as well?

And yes you will have multiple versions of python installed. This is the way that macports handles things. All of the dependancies for the programs it installs are handled internally.
 
Joined
Aug 25, 2006
Messages
1,395
Reaction score
30
Points
48
Location
Central Florida
Your Mac's Specs
MacBook Pro Unibody
See, the thing is, as I said, MacPorts and the other programs like it handle all those things internally, so your program probably isn't looking in the right place for those programs. You can try modifying your $PATH to include those areas in which the MacPorts stuff is installed, that should work.
 
OP
A
Joined
Jul 5, 2007
Messages
88
Reaction score
1
Points
8
Your Mac's Specs
MacBook 1.83 GHz intel c2d, 2gb ram, xp and os x.6
right. that makes sense. I should have thought of that. thanks.
 
OP
A
Joined
Jul 5, 2007
Messages
88
Reaction score
1
Points
8
Your Mac's Specs
MacBook 1.83 GHz intel c2d, 2gb ram, xp and os x.6
I changed my PYTHONPATH in ~/.profile to /opt/local/lib/python2.4 which is where the macports python is installed, but when I run gcalcli I get this:

Code:
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "/Users/awclayton/.scripts/gcalcli", line 55, in ?
    import inspect
  File "/opt/local/lib/python2.4/inspect.py", line 31, in ?
    import sys, os, types, string, re, dis, imp, tokenize, linecache
  File "/opt/local/lib/python2.4/os.py", line 133
    from os.path import (curdir, pardir, sep, pathsep, defpath, extsep, altsep,
                        ^
SyntaxError: invalid syntax
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top