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 <[email protected]> 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 <[email protected]> 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, in<module> >> > 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, in<module> >> > 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 >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/translate-pootle >> > > ------------------------------------------------------------------------------ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/translate-pootle
