First time here? Check out the FAQ!
0

Internal Server Error attempt to ask question

Fresh askbot installation - website working but I am not able to add any question.

backtrace usr/local/lib/python2.7/dist-packages/askbot-0.7.39-py2.7.egg/askbot/middleware/pagesize.py TIME: 2012-03-13 12:02:55,634 MSG: pagesize.py:process_exception:43 File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py", line 111, in get_response response = callback(request, callback_args, *callback_kwargs) File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/utils/decorators.py", line 93, in _wrapped_view response = view_func(request, args, *kwargs) File "/usr/local/lib/python2.7/dist-packages/askbot-0.7.39-py2.7.egg/askbot/utils/decorators.py", line 122, in wrapper return view_func(request, args, *kwargs) File "/usr/local/lib/python2.7/dist-packages/askbot-0.7.39-py2.7.egg/askbot/utils/decorators.py", line 217, in wrapper return view_func(request, args, *kwargs) File "/usr/local/lib/python2.7/dist-packages/askbot-0.7.39-py2.7.egg/askbot/views/writers.py", line 219, in ask timestamp = timestamp File "/usr/local/lib/python2.7/dist-packages/askbot-0.7.39-py2.7.egg/askbot/models/__init__.py", line 1304, in user_post_question is_anonymous = is_anonymous, File "/usr/local/lib/python2.7/dist-packages/askbot-0.7.39-py2.7.egg/askbot/models/question.py", line 109, in create_new question.parse_and_save(author = author) File "/usr/local/lib/python2.7/dist-packages/askbot-0.7.39-py2.7.egg/askbot/models/base.py", line 114, in parse_and_save_post data = post.parse() File "/usr/local/lib/python2.7/dist-packages/askbot-0.7.39-py2.7.egg/askbot/models/base.py", line 45, in parse_post_text text = sanitize_html(markup.get_parser().convert(text)) File "/usr/local/lib/python2.7/dist-packages/askbot-0.7.39-py2.7.egg/askbot/utils/html.py", line 46, in sanitize_html dom_tree = p.parseFragment(html) File "/usr/local/lib/python2.7/dist-packages/html5lib-0.95-py2.7.egg/html5lib/html5parser.py", line 264, in parseFragment self._parse(stream, True, container=container, encoding=encoding) File "/usr/local/lib/python2.7/dist-packages/html5lib-0.95-py2.7.egg/html5lib/html5parser.py", line 110, in _parse parser=self, **kwargs)

/usr/local/lib/python2.7/dist-packages/askbot-0.7.39-py2.7.egg/askbot/middleware/pagesize.py TIME: 2012-03-13 12:02:55,637 MSG: pagesize.py:process_exception:44 <type 'exceptions.typeerror'=""> /usr/local/lib/python2.7/dist-packages/askbot-0.7.39-py2.7.egg/askbot/middleware/pagesize.py TIME: 2012-03-13 12:02:55,647 MSG: pagesize.py:process_exception:45 __init__() got an unexpected keyword argument 'parser' /usr/local/lib/python2.7/dist-packages/askbot-0.7.39-py2.7.egg/askbot/middleware/pagesize.py TIME: 2012-03-13 12:02:55,650 MSG: pagesize.py:process_exception:54 path: /faq/questions/ask/

Enea Scioni's avatar
1
Enea Scioni
asked 2012-03-13 06:12:33 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

In this case downgrade html5lib to version 0.90. We have solved this problem in the github repository, but not yet on the python package manager.

Evgeny's avatar
13.2k
Evgeny
answered 2012-03-13 08:21:19 -0500
edit flag offensive 0 remove flag delete link

Comments

Hmm....my actual version of html5lib is 0.90-2 (from ubuntu repo, just apt-get...)...is it a big issue to be solved by hand? could you point me the fixed file(s) into the github repo?

Enea Scioni's avatar Enea Scioni (2012-03-13 08:29:42 -0500) edit

No, from your traceback "/usr/local/lib/python2.7/dist-packages/html5lib-0.95-py2.7.egg/html5lib/html5" it follows that you have 0.95.

Evgeny's avatar Evgeny (2012-03-13 08:47:36 -0500) edit

Yes, you were right. I got confused, somehow... :( me noob

Enea Scioni's avatar Enea Scioni (2012-03-13 09:46:39 -0500) edit

Yes, you were right. I got confused, somehow... :(

Enea Scioni's avatar Enea Scioni (2012-03-13 09:46:40 -0500) edit
add a comment see more comments