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
