Koozali.org: home of the SME Server

pootle installing help needed

Offline redteo

  • *
  • 122
  • +0/-0
    • redteo blog
pootle installing help needed
« on: October 16, 2009, 04:17:10 PM »
hello
i'm following this guide http://wiki.contribs.org/Pootle to install pootle on my sme box.
but i get errors.

/var/log/pootle.log
Code: [Select]
2009-10-16 16:00:35: Listening on port 8081
2009-10-16 16:00:35: To use the server, open a web browser at http://127.0.0.1:8081/
2009-10-16 16:00:36: Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/jToolkit/web/simplewebserver.py", line 613, in getserver
    server = getserverwithprefs(options.prefsfile, options.instance, httpd)
  File "/usr/lib/python2.4/site-packages/jToolkit/web/__init__.py", line 160, in getserverwithprefs
    serverprefs.parsefile(prefsfile)
  File "/usr/lib/python2.4/site-packages/jToolkit/prefs.py", line 428, in parsefile
    self.parse(contents)
  File "/usr/lib/python2.4/site-packages/jToolkit/prefs.py", line 419, in parse
    self.parseassignments()
  File "/usr/lib/python2.4/site-packages/jToolkit/prefs.py", line 356, in parseassignments
    self.raiseerror("indent without preceding :", tokennum)
  File "/usr/lib/python2.4/site-packages/jToolkit/sparse.py", line 225, in raiseerror
    raise ParserError(self, message, tokennum)
ParserError: indent without preceding : at line 23, char 28 (token indent(1))

2009-10-16 16:00:36: Error initializing server, exiting: indent without preceding : at line 23, char 28 (token indent(1))

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Re: pootle installing help needed
« Reply #1 on: October 17, 2009, 12:52:29 AM »
Please, give me the output of:

python -V

and

python2.4 -V

Have you created the stats_db directory and make writable?
Are you sure the port 8081 is free?

Try:

python2.4 /usr/bin/PootleServer --port=8888

and give me the output

Offline redteo

  • *
  • 122
  • +0/-0
    • redteo blog
Re: pootle installing help needed
« Reply #2 on: October 17, 2009, 10:56:17 AM »
Code: [Select]
[root@server ~]# python -V
Python 2.3.4
[root@server ~]# python2.4 -V
Python 2.4.2
[root@server ~]#
[root@server ~]# python2.4 /usr/bin/PootleServer --port=8888
2009-10-17 10:54:22: Listening on port 8888
2009-10-17 10:54:22: To use the server, open a web browser at http://127.0.0.1:8888/
2009-10-17 10:54:22: Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/jToolkit/web/simplewebserver.py", line 613, in getserver
    server = getserverwithprefs(options.prefsfile, options.instance, httpd)
  File "/usr/lib/python2.4/site-packages/jToolkit/web/__init__.py", line 160, in getserverwithprefs
    serverprefs.parsefile(prefsfile)
  File "/usr/lib/python2.4/site-packages/jToolkit/prefs.py", line 428, in parsefile
    self.parse(contents)
  File "/usr/lib/python2.4/site-packages/jToolkit/prefs.py", line 419, in parse
    self.parseassignments()
  File "/usr/lib/python2.4/site-packages/jToolkit/prefs.py", line 356, in parseassignments
    self.raiseerror("indent without preceding :", tokennum)
  File "/usr/lib/python2.4/site-packages/jToolkit/sparse.py", line 225, in raiseerror
    raise ParserError(self, message, tokennum)
ParserError: indent without preceding : at line 23, char 28 (token indent(1))

2009-10-17 10:54:22: Error initializing server, exiting: indent without preceding : at line 23, char 28 (token indent(1))
[root@server ~]#

i was almost sure about the port ...

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Re: pootle installing help needed
« Reply #3 on: October 17, 2009, 07:49:26 PM »
It is strange, because run ok for me. I am not a python programmer.
I have 3 SME7.x running pootle server without problems.

Are you sure you follow all the steps in the wiki page?

Look like you have a problem with jToolkit.

Give me the output of:

PootleServer --version

Have you added the default user in users.prefs ? look into pootle.prefs also.

For more help try
http://translate.sourceforge.net/wiki/pootle/installation

and

https://lists.sourceforge.net/lists/listinfo/translate-pootle
« Last Edit: October 17, 2009, 07:52:16 PM by Normando »

Offline redteo

  • *
  • 122
  • +0/-0
    • redteo blog
Re: pootle installing help needed
« Reply #4 on: October 17, 2009, 08:16:44 PM »
Quote
author=Normando link=topic=44934.msg217147#msg217147 date=1255801766]
It is strange, because run ok for me. I am not a python programmer.
i not too, i'm just one user
Quote
I have 3 SME7.x running pootle server without problems.
maybe you are lucky.
Quote
Are you sure you follow all the steps in the wiki page?

yes but not letter by letter because that guide have error such one unsolved dependency and one typing error ( the preffs file to be edit is users not user )

Quote
Look like you have a problem with jToolkit.
it come with the rpm just installed

Quote
Give me the output of:

PootleServer --version

Code: [Select]
[root@server ~]# PootleServer --version
Traceback (most recent call last):
  File "/usr/bin/PootleServer", line 23, in ?
    from Pootle import pootle
ImportError: No module named Pootle
Quote
Have you added the default user in users.prefs ? look into pootle.prefs also.
i edited as the guide say

Quote
For more help try
http://translate.sourceforge.net/wiki/pootle/installation

and

https://lists.sourceforge.net/lists/listinfo/translate-pootle
or i install it on ubuntu ...

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Re: pootle installing help needed
« Reply #5 on: October 17, 2009, 08:36:06 PM »
yes but not letter by letter because that guide have error such one unsolved dependency

Well...if this is the case, pootle will not run... Can you tell me what unsolved dependency?

[root@server ~]# PootleServer --version
Traceback (most recent call last):
  File "/usr/bin/PootleServer", line 23, in ?
    from Pootle import pootle
ImportError: No module named Pootle

As you see Pootle is not installed correctly. Give me the output of:

ls -l /usr/lib/python2.4/site-packages

or i install it on ubuntu ...

You be free to install on the server you want.

Offline redteo

  • *
  • 122
  • +0/-0
    • redteo blog
Re: pootle installing help needed
« Reply #6 on: October 17, 2009, 09:02:42 PM »
Well...if this is the case, pootle will not run... Can you tell me what unsolved dependency?

As you see Pootle is not installed correctly. Give me the output of:

ls -l /usr/lib/python2.4/site-packages

You be free to install on the server you want.
sorry i mean tha if you follow the guide you get a dependency error, that i solved downloading the relative rpm in the same repo of the others..
Code: [Select]
[root@server ~]# ls -l /usr/lib/python2.4/site-packages
totale 1384
drwxr-xr-x   2 root root   4096 16 ott 15:28 elementtree
drwxr-xr-x   8 root root   4096 16 ott 15:28 jToolkit
drwxr-xr-x   3 root root   4096 16 ott 15:28 kid
drwxr-xr-x   2 root root   4096 16 ott 15:28 kid-0.9.6-py2.4.egg-info
-rwxr-xr-x   1 root root 151949 31 gen  2008 Levenshtein.so
drwxr-xr-x   2 root root   4096 16 ott 15:28 lxml
drwxr-xr-x   2 root root   4096 16 ott 15:28 lxml-1.2-py2.4.egg-info
drwxr-xr-x   6 root root   4096 16 ott 15:28 Pootle
drwxr-xr-x   2 root root   4096 16 ott 15:28 psyco
drwxr-xr-x   3 root root   4096 16 ott 15:28 pysqlite2
-rw-r--r--   1 root root    119 28 set  2005 README
drwxr-xr-x  12 root root   4096 16 ott 15:28 translate
-rw-r--r--   1 root root 191193 19 ott  2008 xapian.py
-rw-r--r--   1 root root 199217 16 ott 16:00 xapian.pyc
-rwxr-xr-x   1 root root 804708 19 ott  2008 _xapian.so

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: pootle installing help needed
« Reply #7 on: October 17, 2009, 09:10:48 PM »
yes but not letter by letter because that guide have error such one unsolved dependency and one typing error ( the preffs file to be edit is users not user )

if something is wrong with wiki, please edit yourself (you need an account) or, please, list here what should be corrected

thank you

Offline redteo

  • *
  • 122
  • +0/-0
    • redteo blog
Re: pootle installing help needed
« Reply #8 on: October 17, 2009, 09:20:41 PM »
if something is wrong with wiki, please edit yourself (you need an account) or, please, list here what should be corrected

thank you
Code: [Select]
wget http://mirror.jvsnet.ro/sme/contribs/nhall/sme7/contribs/pootle/rpms/xapian-bindings-1.0.4-1.i386.rpmthis line is to get the needed package to solve the dependency..
Code: [Select]
Edit the file /usr/lib/python2.4/site-packages/Pootle/user.prefs and uncomment the following lines: this line is wrong need a S beacuse is users.prefs
in not have one account..
thanks you a loot for your time spending

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: pootle installing help needed
« Reply #9 on: October 17, 2009, 09:34:11 PM »
wiki page corrected as suggested