Bernard, I'm still struggling to figure out what's going on with your installation but I noticed you are using python 2.4 we had a python 2.4 incompatibility bug in the translate toolkit that was fixed last night, can you please use toolkit from svn and test again just in case your problems are related?
if you don't want to install the svn version of translate toolkit you can just check it out and copy or link the translate directory inside the Pootle directory from the pootle checkout, running ./PootleServer will use that version instead of the one installed. oh and you might as well update Pootle too, we fixed a few bugs past two days. cheers, Alaa On Fri, 27 Nov 2009 15:10:23 +0800 Bernard Chan <[email protected]> wrote: > > Hello, > > One thing to add to my previous response to another helpful person > out there, as the HTTP request did not return at all, I pressed > Ctrl-C on the terminal and got this backtrace: > > Traceback (most recent call last): > File > "/usr/lib/python2.4/site-packages/Django-1.1.1-py2.4.egg/django/core/servers/basehttp.py", > > line 279, in run > self.result = application(self.environ, self.start_response) > File > "/usr/lib/python2.4/site-packages/Django-1.1.1-py2.4.egg/django/core/servers/basehttp.py", > > line 651, in __call__ > return self.application(environ, start_response) > File > "/usr/lib/python2.4/site-packages/Django-1.1.1-py2.4.egg/django/core/handlers/wsgi.py", > > line 245, in __call__ > response = middleware_method(request, response) > File > "/usr/lib/python2.4/site-packages/Django-1.1.1-py2.4.egg/django/contrib/sessions/middleware.py", > > line 36, in process_response > request.session.save() > File > "/usr/lib/python2.4/site-packages/Django-1.1.1-py2.4.egg/django/contrib/sessions/backends/db.py", > > line 51, in save > obj = Session( > File > "/usr/lib/python2.4/site-packages/Django-1.1.1-py2.4.egg/django/contrib/sessions/backends/base.py", > > line 152, in _get_session_key > self._session_key = self._get_new_session_key() > File > "/usr/lib/python2.4/site-packages/Django-1.1.1-py2.4.egg/django/contrib/sessions/backends/base.py", > > line 141, in _get_new_session_key > session_key = md5_constructor("%s%s%s%s" > File "/usr/lib/python2.4/random.py", line 189, in randrange > return int(istart + self._randbelow(width)) > File "/usr/lib/python2.4/random.py", line 238, in _randbelow > r = getrandbits(k) > File "/usr/lib/python2.4/random.py", line 769, in getrandbits > return x >> (bytes * 8 - k) # trim excess bits > KeyboardInterrupt > > Does that seem to shed some light? > > Julen 提到: > > Hi Bernard, and thanks for trying this new version of Pootle. > > > > az., 2009.eko azaren 25a 02:32(e)an, Bernard Chan(e)k idatzi zuen: > > > >> Hi Everybody, > >> > >> Recently I started evaluating Pootle. Unfortunately I am having > >> some hard time installing Pootle 2.0.0-RC1 and some insights are > >> very much appreciated. > >> > >> I have the following in my environment: > >> > >> Python 2.4 (I am unable to install Python 2.6 in my production > >> environment) > >> > >> elementtree-1.2.6-20050316 > >> kid-0.9.6 > >> translate-toolkit-1.5.0 > >> > >> This is in a virtual machine environment that looks like CentOS 5. > >> > > > > ElementTree and Kid are requirements for the old 1.2 version of > > Pootle. > > > > Pootle 2.0 requires Django 1.0 (or above), Translate Toolkit 1.5 > > and Python 2.4 or later. > > > > For installation instructions, have you get to this page? > > http://translate.sourceforge.net/wiki/pootle/installation_1.3beta > > > > > > Yes, I have read the installation instructions for the 2 branch and > 1.2 branch several times, even though perhaps I may not understand > everything inside completely. > > >> I also played with Pootle 1.2 earlier with some success but I have > >> some questions. Maybe I'll need to live with it if still I cannot > >> get 2.0 working for me: > >> > >> 1) I cannot get Pootle localized interface shown at all. I have the > >> Pootle POs accessible to the installation and I can see and edit > >> the Pootle PO message strings. I got a English interface > >> regardless of the option I selected. I think I saw it once but > >> probably screwed by a subsequent Pootle 2 installation? > >> > > > > This may be because you don't have the needed MO files created. You > > can also run with LIVE_TRANSLATION enabled in localsettings.py, but > > this is quite slower. > > > > Thanks for the hints. I think we can live with an English-only Pootle > interface so this is not that kind of a great deal after all. Just > wondering why it did not seem to work anyway. > > > >> 2) I found that I could not edit the English PO at all, both for > >> the Pootle project and our test project. Is it possible to allow > >> editing of the English PO as well? > >> > > > > The default 'Pootle' project bundled has English as language -- you > > should be able to edit that file without problems. All you need is > > your username to have proper permissions for that translation > > project. > Thanks for your hints. That seems to do it. > > > > >> 3) I could not get translation comparison displayed at all. There > >> was no alternative source language option in the user's options. > >> > > > > In order to have alternative source languages you need to have > > languages available in your Pootle installation. Apart from that, > > you need to have the selected languages available for the > > translation project you are translating. > > > > > I still cannot get too much luck with this. For a translation project > I added to Pootle, there were POs for > > English, Chinese (Taiwan) > > So I as admin have given another translator account of myself "view, > suggest, translate, overwrite, archive, compile MO" permissions for > both languages. However I still do not see any comparison displayed. > Did I still miss something? > > I'm sorry for perturbing, our management is looking for a translation > management portal and it does look like Pootle is a nice candidate > for the purpose. Thanks to the developers for the good work. > > Regards, > Bernard Chan. > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day trial. Simplify your report design, integration and deployment > - and focus on what you do best, core application coding. Discover > what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Translate-pootle mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/translate-pootle ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Translate-pootle mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/translate-pootle
