Hi all, I have django-tinymce spellchecker working perfectly on my local machine which is Ububtu. But as soon as, I deploy it on a web host (CentOS), it gives me problems. Specifically, when I click the specllchecker button, following errors are logged:
Traceback (most recent call last): File "/home/mygoplanner/webapps/mygostaging/lib/python2.5/django/core/ handlers/base.py", line 86, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/home/mygoplanner/webapps/mygostaging/mygo/tinymce/views.py", line 69, in spell_check return HttpResponse(simplejson.dumps(output), UnboundLocalError: local variable 'output' referenced before assignment <ModPythonRequest path:/tinymce/spellchecker/, GET:<QueryDict: {}>, POST:<QueryDict: {u'{"id":"c0","method":"checkWords","params":["en", ["hjkjhkhkkk"]]}': [u'']}>, COOKIES:{'__utma': '171779938.132725263310057000.1249582915.1251233797.1251394837.30', '__utmb': '171779938.17.10.1251394837', '__utmc': '171779938', '__utmz': '171779938.1249582915.1.1.utmcsr=(direct)|utmccn=(direct)| utmcmd=(none)', 'sessionid': '3160e3bb9a31ae72f39cc0b5a0e5e695'}, META:{'AUTH_TYPE': 'Basic', 'CONTENT_LENGTH': 0L, 'CONTENT_TYPE': None, 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/ xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_AUTHORIZATION': 'Basic YWRtaW5pc3RyYXRvcjpteWcwcDE0bm4zcg==', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_CONTENT_LENGTH': '64', At first, I thought it was because the enchant and pyenchant istallation issue. I then installed the enchant library and pyenchant package on server manually. So import enchant works perfectly in python interactive window. Also I was told by the web host support people to include SetEnv PYENCHANT_LIBRARY_PATH /home/mygoplanner/lib/libenchant.so in httpd.conf . So done that as well. But still I am getting above error and looks like it is coming from code. So if it is working locally, why does it fail on server?? Thanks for any help guys, pleeaase... Thanks in advance, Sincerely, Sonal. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---