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
Re: [translate-pootle] Error running PootleServer on Ubuntu 9
ar., 2011.eko marren 15a 06:59(e)an, Pavel Repkin(e)k idatzi zuen: 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 So did you finally manage to avoid the errors? 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
Re: [translate-pootle] Error running PootleServer on Ubuntu 9
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
Re: [translate-pootle] Error running PootleServer on Ubuntu 9
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 Pootle 2.1.5 Translate Toolkit 1.8.1 Django 1.2.5 Ubuntu 9.04 Are you running this from a SVN checkout or have you installed it with python setup.py install? From your traceback, it seems obvious that the compiled translations (MO files) are missing, so you have to run python setup.py build_mo in order to compile them. Running Pootle by issuing PootleServer or python manage.py runserver is discouraged unless you're developing. For production environments you should look at running on top of Apache for instance. You can also have a look at the possible optimization settings in the wiki: http://translate.sourceforge.net/wiki/pootle/optimisation -- 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