[00:01] argh [00:01] File "./run_tests.py", line 18, in [00:01] File "/root/tinyback/tinyback/__init__.py", line 31, in __init__ [00:01] Traceback (most recent call last): [00:01] de1:~/tinyback# ./run_tests.py [00:01] tinyback.ServiceTester(name, fixtures).run() [00:01] File "/root/tinyback/tinyback/services.py", line 435, in factory [00:01] self._service = services.factory(name) [00:01] File "/root/tinyback/tinyback/services.py", line 79, in __init__ [00:01] return Bitly() [00:01] TypeError: __init__() got an unexpected keyword argument 'timeout' [00:01] self._conn = httplib.HTTPConnection(parsed_url.netloc, timeout=30) [00:02] Btw, which distro are you running that still has py2.5? Even Debian has 2.6 [00:02] a lot of my VPSes still run debian 5 [00:02] it's EOL, so not getting feature updates anymore [00:03] meaning no 2.6 :( [00:03] I still need to run through them, back up stuff, and upgrade [00:03] most of them are openvz though, so they would ideally need a reinstall [00:03] dist-upgrade tends to break on openvz [00:03] I see [00:08] [tinyback/master] services.HTTPService: Workaround for Python <= 2.5 - David Triendl [00:08] [tinyback] soult pushed 1 new commit to master: https://github.com/soult/tinyback/commit/a96dc0154109e9203df72d5a8a0406f17071c186 [00:08] Okay, now the timeout paramter only gets passed for python > 2.6 [00:10] hmm nooon does not seem to get tasks currently [00:11] TypeError: __init__() got an unexpected keyword argument 'timeout' [00:11] still :/ [00:11] sec [00:12] >>> platform.python_version_tuple() [00:12] ['2', '5', '2'] [00:12] flaushy: Did you kill and restart it? It waits 30 minutes before assigning a task for the same URL shortener again. You can add -c to the command line options to clear all pending tasks [00:12] not sure why it breaks [00:12] joepie91: Because those are strings?!? [00:12] oh lol what [00:12] soultcer: perfect, that is it :) [00:12] hahaha [00:12] I'm an idiot [00:13] thx [00:13] pkg_resources probably has python version checking :P [00:13] Works just fine by wrapping int() around it too [00:14] would it help if like 20 machines (different ips) just crawl at nights for this? [00:15] nights + weekends probably [00:15] [tinyback/master] services: Fix version detection - David Triendl [00:15] [tinyback] soult pushed 1 new commit to master: https://github.com/soult/tinyback/commit/65f5269e3c34f48233cd7109c6cdbdaf022bdd19 [00:15] flaushy: Of course it would help, but I don't want you to get into trouble with your workplace or wherever you loan those machines from [00:15] university [00:15] i ask before i do it [00:16] but they are running 24/7 and should have python, so i see no problems [00:16] Sometimes services decide to ban IPs, though that was back when I did more like 100 req/s. Now a single IP will only do 2 req/s. [00:16] s/services/url shorteners/ [00:16] with the warrior i am not sure, same for webshots, but this should do nearly no load and therefore be ok [00:17] soultcer: do realize that int()ing it will break when some bright mind thinks of releasing a 2.8a [00:17] :P [00:17] i ll need to talk to a mate as well, he is involved in openwrt, maybe this could be a nice package as well :) [00:17] joepie91: I know and I don't care ;-) [00:17] Using pkg_resources would require me to add distribute/setuptools as dependency, right? [00:18] soultcer: http://sprunge.us/jGdL [00:18] and, I think so [00:20] not sure what broke this time [00:20] :P [00:21] http://stackoverflow.com/questions/5296336/having-trouble-parsing-html [00:21] see first answer [00:22] Yeah, they moved it from the cgi module to another module [00:26] Well, I really have to go to bed now. [00:26] I've created a ticket in github and will try to fix the 2.5 issue tomorrow [00:26] Gn8 [00:28] goodnight :)