i'm on a linux shared server hosted on godaddy.com. since i can't install the dependencies on the shared server, i'm using virtual python (per Seth's excellent instructions). apparently, my server only has python 2.4 installed, so i ran into some problems with importing defaultdict from collections. i came across a fix for that at: http://code.activestate.com/recipes/523034/ which emulates this. (i edited this script a bit though per one of the comments on that page, changing self.items to self.iteritems)
after doing all that i've actually gotten the script to work...once - it sends all the messages in my inbox to my ipod touch at once, but then it throws an error and dies. i'm running into pickling problems, and i'm guessing this goes back to the missing defaultdict. here is the traceback:
Code: Select all
-bash-3.2$ ~/bin/python ~/html/cgi/prowlgooglevoice.py
Traceback (most recent call last):
File “/var/chroot/home/content/censored/html/cgi/prowlgooglevoice.py”, line 66, in ?
File “/home/content/censored/html/cgi/googlevoicenotify.py”, line 173, in check
cPickle.PicklingError: Can’t pickle : attribute lookup googlevoicenotify.defaultdict failed
if you want to see what i did to googlevoicenotify with the emulation of collections.defaultdict, just let me know!
Thanks for your help!
Anyone know how to use Cerealizer http://home.gna.org/oomadness/en/cerealizer/index.html ? maybe if i convert to Cerealizer i won't have this problem?