I having this error when submitting a comment:

/var/www/osqa/forum/views/decorators.py TIME: 2010-12-15 08:36:32,308 MSG: decorators.py:command:69 comment: 'unicode' object has no attribute 'cmp' /var/www/osqa/forum/views/decorators.py TIME: 2010-12-15 08:36:32,309 MSG: decorators.py:command:70 Traceback (most recent call last): File "/var/www/osqa/forum/views/decorators.py", line 53, in command response = func(request, *args, kwargs) File "/var/www/osqa/forum/views/commands.py", line 240, in comment if len(comment_text) < settings.FORM_MIN_COMMENT_BODY: File "/var/www/osqa/forum/settings/base.py", line 22, in wrapper return self.value.getattribute(name)(*args, kwargs) AttributeError: 'unicode' object has no attribute 'cmp'

asked 15 Dec '10, 03:39

abi%20aqil's gravatar image

abi aqil
-1112
accept rate: 0%

edited 16 Dec '10, 00:01

did you change any setting directly in the database?

(15 Dec '10, 21:58) Hernani Cerq... ♦♦

nope ... but we solved our problem by removing all cache from cache folder.

(15 Dec '10, 23:56) abi aqil

Ok I solved my own problem, initially everything run smoothly, until we decide to dbsync/flush all tables. and suddenly this error and other 500 error appear, randomly. Some how we noticed it is related to cache.

So what we did is stop httpd, remove all cache manually rm -rf cache/*, restart again and eveything seems ok.

thanks for the great project.

link

answered 15 Dec '10, 23:55

abi%20aqil's gravatar image

abi aqil
-1112
accept rate: 0%

Hi there! Unfortunately I have the same or similar problem. I've installed OSQA and everything was fine for some days. Then out of nowhere I got error messages when posting something to the osqa.

I tried to delete the cache files and flushed all MySQL tables. Restarting all services or the server doesn't help either. I don't know what to do next. Maybe some one can help me, I would appreciate it allot.

This is what the server says in debug mode:

Request Method: POST Request URL: http://XXX.XXX.XXX.XXX/questions/ask/ Django Version: 1.2.5 Exception Type: AttributeError Exception Value:
'unicode' object has no attribute '_cmp_' Exception Location: /home/osqa/osqa-server/forum/settings/base.py in wrapper, line 22 Python Executable: /usr/bin/python Python Version: 2.6.5

link

answered 29 Mar '11, 10:43

superwookie's gravatar image

superwookie
1
accept rate: 0%

Type issue. Try to dump data using XML format which can handle UTF-8 better than JSON

(22 Jan, 01:49) sza
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×29

Asked: 15 Dec '10, 03:39

Seen: 897 times

Last updated: 22 Jan, 01:49

powered by OSQA