#urlteam 2012-10-12,Fri

↑back Search

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

irclogger-viewer