Re: [translate-pootle] UnicodeDecodeError on attempt to login
Hey, Friedel! Thank you for response, I've been waiting for it. I have patched pocommon.py But it did not help - still the same exception when I click login link. Pay attention that the exception is thrown not only for Terminology project, but even when I press login link. Also, our exception trace is different, i have quoted it once again, just in case. Looks like the error we experience has another nature. This error is critical for our project. We are moving to the new server, but login link just does not work. I feel helpless with Pootle on our new server - we need to setup it as soon as possible, but it just does not work. However Pootle on our old server runs flawlessly and used by many translators. I have setup it half a year ago. I hope you can help us. Is there any step by step tutorial how to install Pootle 2.1.6 on Apache? I have not found one. I'm afraid that I may have installed some bad Python package along the way. Pasha, YoWindow http://yowindow.com/ author - MOD_PYTHON ERROR ProcessId: 12058 Interpreter:'pootle' ServerName: DocumentRoot: '/var/www' URI:'/pootle/accounts/login/' Location: '/pootle' Directory: None Filename: '/var/www/pootle/wsgi.py' PathInfo: '/accounts/login/' Phase: 'PythonHandler' Handler:'django.core.handlers.modpython' Traceback (most recent call last): File /usr/lib/python2.7/dist-packages/mod_python/importer.py, line 1537, in HandlerDispatch default=default_handler, arg=req, silent=hlist.silent) File /usr/lib/python2.7/dist-packages/mod_python/importer.py, line 1229, in _process_target result = _execute_target(config, req, object, arg) File /usr/lib/python2.7/dist-packages/mod_python/importer.py, line 1128, in _execute_target result = object(arg) File /usr/local/lib/python2.7/dist-packages/django/core/handlers/modpython.py, line 228, in handler return ModPythonHandler()(req) File /usr/local/lib/python2.7/dist-packages/django/core/handlers/modpython.py, line 205, in __call__ response = middleware_method(request, response) File /usr/local/lib/python2.7/dist-packages/django/middleware/csrf.py, line 276, in process_response resp2 = self.response_middleware.process_response(request, resp) File /usr/local/lib/python2.7/dist-packages/django/middleware/csrf.py, line 242, in process_response response.content, n = _POST_FORM_RE.subn(add_csrf_field, response.content) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 551: ordinal not in range(128)- On 22 February 2012 12:54, F Wolff frie...@translate.org.za wrote: Op Ma, 2012-02-20 om 17:34 +0400 skryf Pavel Repkin: Dear Pootle team, I have installed Pootle 2.1.6 over Apache on our Ubuntu 11 server. It is a clean install. I have downloaded the package and copied its contents to the server public folder. It all goes very well. After opening Pootle front page I see Terminology and Tutorial projects and all default languages. However, when I'm trying to login I get the error I have quoted below. UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 551: ordinal not in range(128) The same error displayed when I'm trying to translate strings in Terminologogy project for example. I'm sorry if this question has already been asked, but I was not able to find anything similar on the list. I've spent several hours trying to find a solution - but no luck. What could go wrong? Please help. Hallo Pavel I believe what you are describing is the same as this issue: http://bugs.locamotion.org/show_bug.cgi?id=1951 Luckily this has already been addressed. You can fix this temporarily by removing the non-ascii characters from the #: comments in the po files in the terminology project and rereading the files into the database. Alternatively you can overwrite your copy of translate/storage/pocommon.py with this version that should form part of the next release where it is fixed: https://translate.svn.sourceforge.net/svnroot/translate/src/trunk/translate/storage/pocommon.py (this is in the Translate Toolkit, not in Pootle). I hope that helps. Friedel -- Recently on my blog: http://translate.org.za/blogs/friedel/en/content/survey-about-usability-virtaal -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle -- Virtualization Cloud Management Using Capacity Planning Cloud computing
[translate-pootle] UnicodeDecodeError on attempt to login
Dear Pootle team, I have installed Pootle 2.1.6 over Apache on our Ubuntu 11 server. It is a clean install. I have downloaded the package and copied its contents to the server public folder. It all goes very well. After opening Pootle front page I see Terminology and Tutorial projects and all default languages. However, when I'm trying to login I get the error I have quoted below. UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 551: ordinal not in range(128) The same error displayed when I'm trying to translate strings in Terminologogy project for example. I'm sorry if this question has already been asked, but I was not able to find anything similar on the list. I've spent several hours trying to find a solution - but no luck. What could go wrong? Please help. Django: 1.2.2 Python: 2.7.2 --- MOD_PYTHON ERROR ProcessId: 26528 Interpreter:'pootle' ServerName: '** privacy **' DocumentRoot: '/var/www' URI:'/pootle/accounts/login/' Location: '/pootle' Directory: None Filename: '/var/www/pootle/wsgi.py' PathInfo: '/accounts/login/' Phase: 'PythonHandler' Handler:'django.core.handlers.modpython' Traceback (most recent call last): File /usr/lib/python2.7/dist-packages/mod_python/importer.py, line 1537, in HandlerDispatch default=default_handler, arg=req, silent=hlist.silent) File /usr/lib/python2.7/dist-packages/mod_python/importer.py, line 1229, in _process_target result = _execute_target(config, req, object, arg) File /usr/lib/python2.7/dist-packages/mod_python/importer.py, line 1128, in _execute_target result = object(arg) File /usr/local/lib/python2.7/dist-packages/django/core/handlers/modpython.py, line 228, in handler return ModPythonHandler()(req) File /usr/local/lib/python2.7/dist-packages/django/core/handlers/modpython.py, line 205, in __call__ response = middleware_method(request, response) File /usr/local/lib/python2.7/dist-packages/django/middleware/csrf.py, line 276, in process_response resp2 = self.response_middleware.process_response(request, resp) File /usr/local/lib/python2.7/dist-packages/django/middleware/csrf.py, line 242, in process_response response.content, n = _POST_FORM_RE.subn(add_csrf_field, response.content) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 551: ordinal not in range(128) -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle
Re: [translate-pootle] Accept/Reject suggestion buttons do not work
I have found the solution to my problem on Stack Overflow I have commented out the CSRF thing from django/middleware/csrf.py And now suggestions are working for me, hope it will help to other users. And thanks again for the wonderful Pootle! File: django/middleware/csrf.py Around line 160: # check incoming token #request_csrf_token = request.POST.get('csrfmiddlewaretoken', None) #if request_csrf_token != csrf_token: #if cookie_is_new: ## probably a problem setting the CSRF cookie #return reject(CSRF cookie not set.) #else: #return reject(CSRF token missing or incorrect.) http://stackoverflow.com/questions/1650941/django-csrf-framework-cannot-be-disabled-and-is-breaking-my-site On 28 March 2011 14:24, Pavel Repkin pavel.rep...@gmail.com wrote: Thank you, Friedel and Julen, unfortunately I'm running Django 1.2.3 Yes, I can submit translations, but I cannot approve suggestions. Looks like a dead end. :-( This is my full configuration. Pootle 2.1.5 Translate Toolkit 1.8.1 Django 1.2.3 Ubuntu 10.10 Initially I was having Django 1.2.5 installed. Then I have uninstalled it and installed 1.2.3. Do you think it will make sense to downgrade further? Pasha On 28 March 2011 14:15, F Wolff frie...@translate.org.za wrote: Op Ma, 2011-03-28 om 13:30 +0400 skryf Pavel Repkin: Aha! I've got to the problem. Thanks for pointing me to the Net panel (I feel a little stupid :) POST resolves in 403 Forbidden error from Django. I have extracted the HTML response from firebug into a file and opened it in the browser. Here is the screenshot. http://gyazo.com/07a4d25e5e8201cbaa9beabe9fdaf86a.png I have no experience with Django framework at all. Can you give me a hint how to solve this? That looks related to some changes in the latest version of Django that was not backwards compatible. I think you might have this fixed by downgrading a version of two of Django. I guess you have 1.2.5 at the moment, right? Friedel -- Recently on my blog: http://translate.org.za/blogs/friedel/en/content/better-lies-about-gnome-localisation -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle -- Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle
Re: [translate-pootle] Accept/Reject suggestion buttons do not work
Aha! I've got to the problem. Thanks for pointing me to the Net panel (I feel a little stupid :) POST resolves in 403 Forbidden error from Django. I have extracted the HTML response from firebug into a file and opened it in the browser. Here is the screenshot. http://gyazo.com/07a4d25e5e8201cbaa9beabe9fdaf86a.png I have no experience with Django framework at all. Can you give me a hint how to solve this? Pasha On 28 March 2011 13:11, Julen Ruiz Aizpuru jul...@gmail.com wrote: al., 2011.eko marren 28a 10:47(e)an, Pavel Repkin(e)k idatzi zuen: Thank you for helping us, Julen! This is the debug screen with watches inside #translate-suggestion-container .acceptsugg handler http://gyazo.com/36169b1599793c2432f5b475fd4e84c8.png I hope it will give you an idea what went wrong. I have set a breakpoint inside the callback function, on the line 208 $(#response).remove(); And the break point was not hit after the ajax call was made, neither after I have resumed JS execution. It looks like the callback is not being called and this is the problem. Watch the Net panel to see if the requests are being made properly and the server responds with actual data. Julen. -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle
Re: [translate-pootle] Accept/Reject suggestion buttons do not work
Thank you, Friedel and Julen, unfortunately I'm running Django 1.2.3 Yes, I can submit translations, but I cannot approve suggestions. Looks like a dead end. :-( This is my full configuration. Pootle 2.1.5 Translate Toolkit 1.8.1 Django 1.2.3 Ubuntu 10.10 Initially I was having Django 1.2.5 installed. Then I have uninstalled it and installed 1.2.3. Do you think it will make sense to downgrade further? Pasha On 28 March 2011 14:15, F Wolff frie...@translate.org.za wrote: Op Ma, 2011-03-28 om 13:30 +0400 skryf Pavel Repkin: Aha! I've got to the problem. Thanks for pointing me to the Net panel (I feel a little stupid :) POST resolves in 403 Forbidden error from Django. I have extracted the HTML response from firebug into a file and opened it in the browser. Here is the screenshot. http://gyazo.com/07a4d25e5e8201cbaa9beabe9fdaf86a.png I have no experience with Django framework at all. Can you give me a hint how to solve this? That looks related to some changes in the latest version of Django that was not backwards compatible. I think you might have this fixed by downgrading a version of two of Django. I guess you have 1.2.5 at the moment, right? Friedel -- Recently on my blog: http://translate.org.za/blogs/friedel/en/content/better-lies-about-gnome-localisation -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle
[translate-pootle] Accept/Reject suggestion buttons do not work
Dear community, recently I have successfully installed Pootle service on Apache. However, I have stumbled upon a problem with suggestions. When I logged in as an administrator I am unable to accept or reject suggestions. The buttons Accept and Reject are displayed, but they do not work. When I press the button nothing happens. I have tried it on tutorial project as well as on our project. A sad screenshot http://gyazo.com/ba592acc56576ffe2815080d9f784f1e.png I have tried to press the buttons with Firefox, IE7 and IE8. No luck. Do you know how to make them work? I am running Pootle in debug mode. However there were no debug messages when I was pressing the buttons. No JavaScript errors in Firefox JavaScript console. This is the HTML code of suggestion div I have extracted with FireBug. There are no JavaScript handlers there. Probably this will help you to find the source of the problem div class=translate-suggestion div lang=ru dir=ltr id=suggdiff-5-0 class=suggdiffДобро пожаловатьspan class=translate-diff-insert 2/span/div input type=hidden value=5 name=suggid class=suggid id=sugg-5 a class=acceptsugg id=accept-5 accesskey=a title=Accept suggestionimg dir=ltr src=/pootle/html/images/tick.png/a a class=rejectsugg id=reject-5 accesskey=r title=Reject suggestionimg dir=ltr src=/pootle/html/images/cross.png/a /div Our server configuration Pootle 2.1.5 Translate Toolkit 1.8.1 Django 1.2.3 Ubuntu 10.10 Pasha -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle
Re: [translate-pootle] Error running PootleServer on Ubuntu 9
Dear Julen, I have setup pootle service, it is running perfectly. Thank you for making this wonderful service available to us. The error was because of Django. We had the latest version installed on our server. I have downgraded 2 versions back and it worked. Pasha On 15 March 2011 17:07, Julen Ruiz Aizpuru jul...@gmail.com wrote: ar., 2011.eko marren 15a 14:27(e)an, Pavel Repkin(e)k idatzi zuen: The initial problem has gone away after I have moved the sources to /usr/share. Then I went on to install Pootle over Apache. But I'm stuck again. When I open Pootle front page I get the following error message Server Error An error has occured. Thank you for your patience. Screenshot: http://gyazo.com/da2ee07df220dcde566819bd045b25c6.png This is what I get in /var/log/apache2/error.log after updating the front page. /usr/lib/python2.6/dist-packages/mod_python/importer.py:32: DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5 2011-03-15 15:24:24,104 WARNING Python-Levenshtein not found. Continuing with built-in (slower) fuzzy matching. Those are warnings, nothing critical. Python-levenshtein helps to speed-up some operations. On the other hand, using mod_wsgi is recommended over mod_python. Pootle provides the wsgi application file (wsgi.py) which you can point from the Apache configuration: WSGIScriptAlias / /path/to/pootle/wsgi.py I have no idea how to fix this, please help. Is there an error log for Pootle? For getting detailed output of what's failing, edit the localsettings.py file and set DEBUG = True. Julen. -- Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle
Re: [translate-pootle] Error running PootleServer on Ubuntu 9
I just have found an answer on serverfault that explains the problem http://serverfault.com/questions/247333/how-to-setup-pootle-tranlation-server-on-ubuntu By some reason pootle has installed a portion of files in /usr/local instead of /usr/share On 15 March 2011 07:43, Pavel Repkin pavel.rep...@gmail.com wrote: Dear Julen, thanks a lot for the informative and prompt reply! When I run python setup.py build_mo, I get many compile errors (warinngs?) about missing language files. --- /usr/src/Pootle-2.1.5# sudo python setup.py build_mo /usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'install_requires' warnings.warn(msg) running build_mo Preparing localization files compiling fr language skipping fr, probably invalid header: [Errno 2] No such file or directory compiling en_GB language skipping en_GB, probably invalid header: [Errno 2] No such file or directory skipping lg, probably invalid header: expected read buffer, NoneType found compiling nl language skipping nl, probably invalid header: [Errno 2] No such file or directory compiling pt_BR language skipping pt_BR, probably invalid header: [Errno 2] No such file or directory compiling fi language skipping fi, probably invalid header: [Errno 2] No such file or directory compiling it language skipping it, probably invalid header: [Errno 2] No such file or directory compiling da language skipping da, probably invalid header: [Errno 2] No such file or directory compiling zh_CN language skipping zh_CN, probably invalid header: [Errno 2] No such file or directory compiling eo language skipping eo, probably invalid header: [Errno 2] No such file or directory compiling kg language skipping kg, probably invalid header: [Errno 2] No such file or directory compiling sl language ... ... ... - After the compilation is over /usr/share/pootle is still missing, so PootleServer is still run with the error. I was not going to develop for Pootle I was just thinking that something was wrong with my installation at this step so I have asked for help. Since the problem is not related to running the server I will try to setup Pootle today on top of Apache. Hope it will work and me and our translators to enjoy the software. Pavel On 14 March 2011 23:58, Julen Ruiz Aizpuru jul...@gmail.com wrote: Hi Pavel, al., 2011.eko marren 14a 21:32(e)an, Pavel Repkin(e)k idatzi zuen: Hi, community! I'm trying to setup Pootle translation service on Ubuntu. Unfortunately I'm stuck at running the Pootle server. I have setup all the required software packages (pootle, translate-toolkit and others) manually. Then if I run ./PootleServer from the installation directory it runs flawlessly. /usr/src/Pootle-2.1.5# ./PootleServer Starting server, listening on port 8080. 2011-03-14 21:53:56,001 INFO Starting Django server, listening on port 8080 But when I'm trying to run PootleServer with PootleServer command I get the following error. Obviously Pootle expects /usr/share/pootle directory to exist, and it is NOT. /usr/share/pootle is missing. Do you know why? /usr/src/Pootle-2.1.5# PootleServer Starting server, listening on port 8080. Traceback (most recent call last): File /usr/local/bin/PootleServer, line 32, inmodule PootleServer.main() File /usr/local/lib/python2.6/dist-packages/pootle/PootleServer.py, line 103, in main run_pootle(options, args) File /usr/local/lib/python2.6/dist-packages/pootle/PootleServer.py, line 87, in run_pootle handler = AdminMediaHandler(WSGIHandler(), path) File /usr/local/lib/python2.6/dist-packages/django/core/servers/basehttp.py, line 652, in __init__ self.media_url = settings.ADMIN_MEDIA_PREFIX File /usr/local/lib/python2.6/dist-packages/django/utils/functional.py, line 276, in __getattr__ self._setup() File /usr/local/lib/python2.6/dist-packages/django/conf/__init__.py, line 40, in _setup self._wrapped = Settings(settings_module) File /usr/local/lib/python2.6/dist-packages/django/conf/__init__.py, line 73, in __init__ mod = importlib.import_module(self.SETTINGS_MODULE) File /usr/local/lib/python2.6/dist-packages/django/utils/importlib.py, line 35, in import_module __import__(name) File /usr/local/lib/python2.6/dist-packages/pootle/settings.py, line 200, inmodule LANGUAGES = override.find_languages(LOCALE_PATHS[0]) File /usr/local/lib/python2.6/dist-packages/pootle/i18n/override.py, line 38, in find_languages dirs = os.listdir(locale_path) OSError: [Errno 2] No such file or directory: '/usr/share/pootle/mo' I was not able to overcome this error. Please help me to setup PootleServer properly, I like the software a lot and wish to use it for our project - yowindow. Installed software /usr/src/Pootle-2.1.5# PootleServer --version