| https://keturn.myopenid.com/
Wed Aug 29 12:39:06 -0700 2007 |
j3h: What's the error? | |
| http://j3h.us/
Wed Aug 29 12:43:05 -0700 2007 |
======================================================================
ERROR: OpenID 1.1 checkid_setup request.
----------------------------------------------------------------------
Traceback (most recent call last):
File "./openid/test/test_examples.py", line 108, in test_checkidv1
twill.unit.run_test(ti)
File "/var/lib/python-support/python2.4/twill/unit.py", line 76, in run_test
test_info.run_script()
File "./openid/test/test_examples.py", line 39, in run_script
self.script(self)
File "./openid/test/test_examples.py", line 134, in twill_checkidv1
c.submit("yes")
File "/var/lib/python-support/python2.4/twill/commands.py", line 354, in submit
browser.submit(submit_button)
File "/var/lib/python-support/python2.4/twill/browser.py", line 401, in submit
raise Exception("no forms on this page!")
Exception: no forms on this page!
|
|
| http://j3h.us/
Wed Aug 29 12:43:59 -0700 2007 |
also,
======================================================================
FAIL: OpenID 1.1 checkid_setup request.
----------------------------------------------------------------------
Traceback (most recent call last):
File "./openid/test/test_examples.py", line 118, in test_allowed
twill.unit.run_test(ti)
File "/var/lib/python-support/python2.4/twill/unit.py", line 76, in run_test
test_info.run_script()
File "./openid/test/test_examples.py", line 39, in run_script
self.script(self)
File "./openid/test/test_examples.py", line 175, in twill_allowed
self.fail(msg)
AssertionError: Traceback (most recent call last):
File "./openid/test/test_examples.py", line 155, in twill_allowed
c.code(200)
File "/var/lib/python-support/python2.4/twill/commands.py", line 128, in code
raise TwillAssertionError("code is %s != %s" % (browser.get_code(),
TwillAssertionError: code is 500 != 200
|
|
| https://keturn.myopenid.com/
Wed Aug 29 12:44:23 -0700 2007 |
this is just a hunch, but my hunch is that it's running an example on a hardcoded port without first checking to see if it's open, and you already have something else running on that port. | |
| http://j3h.us/
Wed Aug 29 12:48:05 -0700 2007 |
netstat -l -p | grep 8080 has no output
|
|
| http://j3h.us/
Wed Aug 29 12:48:41 -0700 2007 |
8080 came from tests/test_examples.py line 77 | |
| https://keturn.myopenid.com/
Wed Aug 29 12:49:08 -0700 2007 |
hmm, so much for that hunch. | |
| https://keturn.myopenid.com/
Wed Aug 29 12:50:38 -0700 2007 |
isn't that error from line 155 giving you a boatload more output? It's inside a try block that's *supposed* to produce copious output when it fails so you can figure out what's going on. | |
| http://j3h.us/
Wed Aug 29 12:59:40 -0700 2007 |
It prints out truncated cgitb output: <tr><td><font
color="#909090"><tt><small> 74</small> path = self.parsed_uri[2].lower()<br> and so on |
|
| http://j3h.us/
Wed Aug 29 13:00:18 -0700 2007 |
I suppose I can copy it into an html page to see if there's anything useful, but it's still truncated | |
| http://j3h.us/
Wed Aug 29 13:01:23 -0700 2007 |
okay, it's an assertion error somewhere in server.py | |
| http://j3h.us/
Wed Aug 29 13:01:31 -0700 2007 |
that is, examples/server.py | |
| http://j3h.us/
Wed Aug 29 13:43:36 -0700 2007 |
okay, at first it was a localhost.localdomain vs. localhost problem | |
| https://keturn.myopenid.com/
Wed Aug 29 13:53:31 -0700 2007 |
I still haven't found a consistent way to beat that | |
| http://j3h.us/
Wed Aug 29 14:04:03 -0700 2007 |
I'm recording a patch that uses socket.getfqdn in the tests, just like it does in BaseHTTPServer | |
| http://j3h.us/
Wed Aug 29 14:23:18 -0700 2007 |
twill doesn't seem to see a form on the trust page | |
| https://keturn.myopenid.com/
Wed Aug 29 14:27:41 -0700 2007 |
have you changed that example code at all? what version of twill are you using? | |
| http://j3h.us/
Wed Aug 29 14:28:22 -0700 2007 |
I think for now I'm going to disable the test: http://trac.openidenabled.com/trac/ticket/5 | |
| http://j3h.us/
Wed Aug 29 14:28:32 -0700 2007 |
I haven't changed the code | |
| https://keturn.myopenid.com/
Wed Aug 29 14:30:38 -0700 2007 |
but they pass on my box :( | |
| http://j3h.us/
Wed Aug 29 14:30:59 -0700 2007 |
other versions of things I should be checking for? | |
| http://j3h.us/
Wed Aug 29 14:31:21 -0700 2007 |
I think when I installed twill it had several dependencies. One of those might be different | |
| https://keturn.myopenid.com/
Wed Aug 29 14:32:13 -0700 2007 |
twill keeps most of its dependencies (i.e. Mechanize and whatever HTML parser it uses) bundled in a sub-package | |
| http://j3h.us/
Wed Aug 29 14:32:35 -0700 2007 |
Oh. I installed from Debian, which installed dependencies | |
| http://j3h.us/
Wed Aug 29 14:33:47 -0700 2007 |
I guess I should try installing it from a tarball to see if that fixes or if it's something else |