Re: [translate-pootle] PyLucene v2 support
Op Woensdag 2008-01-23 skryf Lars Kruse: > Hi, Hi Lars > today I tried to run pootle while pylucene v2.2 is installed on my machine. > > Sadly, an exception was raised with the following output: I remember Nicolas already pointing out some API change with the version change to PyLucene 2 > > Since I never tried to use pylucene v1.x with pootle (and installing it would > be quite time consuming), I can only guess that this problem is caused by > changes of the pylucene interface from v1.x to v2.x. > > This is also indicated by the following mailing list message: > http://lists.osafoundation.org/pipermail/pylucene-dev/2006-May/001067.html > > > The attached patch would ignore to use PyLucene v2.x. Thus it would allow > people to run pootle even if PyLucene v2 is installed. > > It would be great, if anyone with a working innstallation of PyLucene v1.x > could try, if the current pootle code works with it. This could prove that the > current issue with PyLucene is version-dependent. The current code definitely still works with PyLucene 1.9.1 which I have here. I also tried with your patch applied, and it continued to work. > > Any other ideas? > > Should I commit the patch? Yes, please apply. I would however like it if we can upgrade to the newer API, as the installation of the older versions are horrible, and I guess we are missing out on several improvements to PyLucene made since those old versions. But I guess this is what you are busy with, right? Thank you for the work on this. Keep well Friedel - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle
Re: [translate-pootle] PyLucene v2 support
Hi, > The current code definitely still works with PyLucene 1.9.1 which I have > here. I also tried with your patch applied, and it continued to work. thanks for testing! > > Should I commit the patch? > > Yes, please apply. ok - I did it > I would however like it if we can upgrade to the > newer API, as the installation of the older versions are horrible, and I > guess we are missing out on several improvements to PyLucene made since > those old versions. But I guess this is what you are busy with, right? yes - but these changes will take place in the toolkit. As far as I can see, the current state of the pootle code will "magically" start working again with PyLucene v2, as soon as a new toolkit with these changes will be released. This will take some more effort for me, but I want to do it very soon ... regards, Lars - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle
[translate-pootle] Pootle Error: StandardPOChecker?
Hello everyone, I have just installed an instance of Pootle to assist in our translation of OpenOffice.org 2.4 into Scottish Gaelic. Everything appears to work correctly, except that when I try to add a language or view the file listing for a project, I get the following error in the web interface: Error 'module' object has no attribute 'StandardPOChecker' My Pootle configuration is shown as follows: This site is running: Pootle 1.0.1 Translate Toolkit 1.1.0 jToolkit 0.7.8 Kid 0.9.6 ElementTree 1.2.6 Python 2.5 (r25:51918, Sep 19 2006, 08:49:13) [GCC 4.0.1 (Apple Computer, Inc. build 5341)] (on darwin/posix) Any help to solve this problem would be very much appreciated. Best wishes Evan -- Evan Brown Research and Software Development Canan Ltd Unit 16, The Green House, Beechwood Park North Inverness IV2 3BL E-mail: [EMAIL PROTECTED] Telephone: (01463) 716890 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle
[translate-pootle] 256MB of RAM is not enough?
Hello, everyone. I am migrating some websites to a new server, including our Pootle installation. Both the current and the new server have 256MB of RAM. However, I can't run PootleServer on the new host because I get this error message: GC Warning: Repeated allocation of very large block (appr. size 512000): May lead to memory leak and poor performance. GC Warning: Repeated allocation of very large block (appr. size 512000): May lead to memory leak and poor performance. GC Warning: Repeated allocation of very large block (appr. size 512000): May lead to memory leak and poor performance. GC Warning: Repeated allocation of very large block (appr. size 512000): May lead to memory leak and poor performance. GC Warning: Repeated allocation of very large block (appr. size 512000): May lead to memory leak and poor performance. GC Warning: Repeated allocation of very large block (appr. size 512000): May lead to memory leak and poor performance. GC Warning: Repeated allocation of very large block (appr. size 258048): May lead to memory leak and poor performance. GC Warning: Repeated allocation of very large block (appr. size 258048): May lead to memory leak and poor performance. ... and so on... I get this error even when I run `PootleServer --version'. I installed Pootle and its dependencies successfully. I hope you can help me out. Thanks in advance. Cheers. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle
Re: [translate-pootle] 256MB of RAM is not enough?
I forgot to add that this server is entirely dedicated to Pootle. No Apache, no MySQL... just Pootle. Cheers! On 1/24/08, Gustavo Narea <[EMAIL PROTECTED]> wrote: > Hello, everyone. > > I am migrating some websites to a new server, including our Pootle > installation. Both the current and the new server have 256MB of RAM. > However, I can't run PootleServer on the new host because I get this > error message: > > GC Warning: Repeated allocation of very large block (appr. size 512000): > May lead to memory leak and poor performance. > GC Warning: Repeated allocation of very large block (appr. size 512000): > May lead to memory leak and poor performance. > GC Warning: Repeated allocation of very large block (appr. size 512000): > May lead to memory leak and poor performance. > GC Warning: Repeated allocation of very large block (appr. size 512000): > May lead to memory leak and poor performance. > GC Warning: Repeated allocation of very large block (appr. size 512000): > May lead to memory leak and poor performance. > GC Warning: Repeated allocation of very large block (appr. size 512000): > May lead to memory leak and poor performance. > GC Warning: Repeated allocation of very large block (appr. size 258048): > May lead to memory leak and poor performance. > GC Warning: Repeated allocation of very large block (appr. size 258048): > May lead to memory leak and poor performance. > > ... and so on... > > I get this error even when I run `PootleServer --version'. > > I installed Pootle and its dependencies successfully. > > I hope you can help me out. Thanks in advance. > > Cheers. > - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle
Re: [translate-pootle] 256MB of RAM is not enough?
Sorry, it's me again :) After googling over and over again, I found that this problem is due to PyLucene: When I was compiling it, I got this error: === pootle /usr/src/PyLucene-1.0.1: sudo make install build of release/_PyLucene.so complete mkdir -p /usr/lib/python2.4/site-packages install PyLucene.py /usr/lib/python2.4/site-packages install release/_PyLucene.so /usr/lib/python2.4/site-packages mkdir -p /usr/lib/python2.4/site-packages/security install /usr/lib/security/classpath.security /usr/lib/python2.4/site-packages/security install /usr/lib/security/libgcj.security /usr/lib/python2.4/site-packages/security install: cannot stat `/usr/lib/security/libgcj.security': No such file or directory make: *** [install] Error 1 === I installed every single GCJ-related package, but this didn't solve the problem. Then I found in some forums/mailing-lists that the solution is to create that file, empty. So, I ran `touch /usr/lib/security/libgcj.security'... And I could finish the installation of PyLucene, but now Pootle doesn't work. I've tried to remove PyLucene, but I can't. How can I make Pootle ignore PyLucene? Thanks in advance! On 1/24/08, Gustavo Narea <[EMAIL PROTECTED]> wrote: > Hello, everyone. > > I am migrating some websites to a new server, including our Pootle > installation. Both the current and the new server have 256MB of RAM. > However, I can't run PootleServer on the new host because I get this > error message: > > GC Warning: Repeated allocation of very large block (appr. size 512000): > May lead to memory leak and poor performance. > GC Warning: Repeated allocation of very large block (appr. size 512000): > May lead to memory leak and poor performance. > GC Warning: Repeated allocation of very large block (appr. size 512000): > May lead to memory leak and poor performance. > GC Warning: Repeated allocation of very large block (appr. size 512000): > May lead to memory leak and poor performance. > GC Warning: Repeated allocation of very large block (appr. size 512000): > May lead to memory leak and poor performance. > GC Warning: Repeated allocation of very large block (appr. size 512000): > May lead to memory leak and poor performance. > GC Warning: Repeated allocation of very large block (appr. size 258048): > May lead to memory leak and poor performance. > GC Warning: Repeated allocation of very large block (appr. size 258048): > May lead to memory leak and poor performance. > > ... and so on... > > I get this error even when I run `PootleServer --version'. > > I installed Pootle and its dependencies successfully. > > I hope you can help me out. Thanks in advance. > > Cheers. > - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle
Re: [translate-pootle] Pootle Error: StandardPOChecker?
Op Woensdag 2008-01-23 skryf Evan Brown: > Hello everyone, > > I have just installed an instance of Pootle to assist in our translation > of OpenOffice.org 2.4 into Scottish Gaelic. Everything appears to work > correctly, except that when I try to add a language or view the file > listing for a project, I get the following error in the web interface: > > Error > 'module' object has no attribute 'StandardPOChecker' > > My Pootle configuration is shown as follows: > > This site is running: > Pootle 1.0.1 > Translate Toolkit 1.1.0 > jToolkit 0.7.8 > Kid 0.9.6 > ElementTree 1.2.6 > Python 2.5 (r25:51918, Sep 19 2006, 08:49:13) [GCC 4.0.1 (Apple > Computer, Inc. build 5341)] (on darwin/posix) > > Any help to solve this problem would be very much appreciated. > > Best wishes > > Evan Hallo Evan. Thank you for the feedback. The previous version of Pootle (1.0.1 and 1.0.2) is not compatible with the recently released Translate Toolkit 1.1.0. You could downgrade your Translate Toolkit to version 1.0.1, but my recommendation is to try out the release candidate for Pootle 1.1.0 (for which I haven't had the time to announce yet). It is available for download here: http://translate.sourceforge.net/snapshots/ It is mostly a bugfix release over version 1.0.2 with a few visual changes, so it should be quite safe. And it is compatible with Translate Toolkit 1.1, which contains quite a few advantages for you. Let me know how this works for you. Keep well Friedel - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle
Re: [translate-pootle] 256MB of RAM is not enough?
Op Donderdag 2008-01-24 skryf Gustavo Narea: > Sorry, it's me again :) > > After googling over and over again, I found that this problem is due > to PyLucene: When I was compiling it, I got this error: > === > pootle /usr/src/PyLucene-1.0.1: sudo make install > build of release/_PyLucene.so complete > mkdir -p /usr/lib/python2.4/site-packages > install PyLucene.py /usr/lib/python2.4/site-packages > install release/_PyLucene.so /usr/lib/python2.4/site-packages > mkdir -p /usr/lib/python2.4/site-packages/security > install /usr/lib/security/classpath.security > /usr/lib/python2.4/site-packages/security > install /usr/lib/security/libgcj.security > /usr/lib/python2.4/site-packages/security > install: cannot stat `/usr/lib/security/libgcj.security': No such file > or directory > make: *** [install] Error 1 > === > > I installed every single GCJ-related package, but this didn't solve > the problem. Then I found in some forums/mailing-lists that the > solution is to create that file, empty. So, I ran `touch > /usr/lib/security/libgcj.security'... And I could finish the > installation of PyLucene, but now Pootle doesn't work. > > I've tried to remove PyLucene, but I can't. How can I make Pootle > ignore PyLucene? > > Thanks in advance! > Hallo Gustavo Can you perhaps explain why you couldn't remove PyLucene? Removing PyLucene might be the easiest way to solve this issue, I think. Even if you could just delete /usr/lib/python2.4/site-packages/PyLucene.py it should solve it. The second possibility might be if you could make a small modifications to projects.py of Pootle. I can give you further instructions if you think that is the best approach. Keep well Friedel - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle