You can clone with
No one assigned
update.sh fails to work, even when I have updated all of the apparent settings to aggregator.twitter.py and have relatively fresh version of Python.
~/projects/webdev/public/box/_aggregators (master) > ./update.sh
[Sun Jan 30 12:18:25 EET 2011]: Updating Twitter and Instapaper.
Traceback (most recent call last):
File "/Users/d2s/projects/webdev/public/box/_aggregators/aggregator.twitter.py", line 75, in <module>
File "/Users/d2s/projects/webdev/public/box/_aggregators/aggregator.twitter.py", line 26, in aggregate
File "/Users/d2s/projects/webdev/public/box/_aggregators/aggregator.twitter.py", line 43, in get_latest_tweet_id
m = re.search( '-(\d+).yaml', file )
UnboundLocalError: local variable 'file' referenced before assignment
Python 2.7.1 (installed via homebrew)
OS X 10.6.6 with Xcode developer tools
_aggregators from yesterday
Should be fixed now. The code in question was only working because of a weird property of Python 2.6. Python 2.7 rightly threw an error there. :)
Also had bit of problems and bunch of errors even after your fix but finally solved it… problem was that when there wasn't any initial tweets, script couldn't set anything to self.latest_id (if I remember right).
Solution was to copy one of your old archived tweet folders from 2008 and after that things worked nicely as aggregator.twitter.py could get something to the last date argument. Anyway, even if it was actually quite bit of pain, I learned little bit about Python, package management (brew install python pip) and remembered again some bits about how to find what things there are moving between my computer and the web server sudo ngrep -W byline -qld en0 port http
brew install python pip
sudo ngrep -W byline -qld en0 port http
So, in the end… learned quite bit about testing things and finding solutions to stuff that's often not that clear when one can't yet program things himself and yet finds it worthwhile to try to get things working (even if it's just because getting frustrated at giving up;).
This issue was closed