Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: redteo on October 16, 2009, 04:17:10 PM
-
hello
i'm following this guide http://wiki.contribs.org/Pootle (http://wiki.contribs.org/Pootle) to install pootle on my sme box.
but i get errors.
/var/log/pootle.log
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))
-
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
-
[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 ...
-
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 (https://lists.sourceforge.net/lists/listinfo/translate-pootle)
-
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
I have 3 SME7.x running pootle server without problems.
maybe you are lucky.
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 )
Look like you have a problem with jToolkit.
it come with the rpm just installed
Give me the output of:
PootleServer --version
[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
Have you added the default user in users.prefs ? look into pootle.prefs also.
i edited as the guide say
For more help try
http://translate.sourceforge.net/wiki/pootle/installation
and
https://lists.sourceforge.net/lists/listinfo/translate-pootle (https://lists.sourceforge.net/lists/listinfo/translate-pootle)
or i install it on ubuntu ...
-
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.
-
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..
[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
-
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
-
if something is wrong with wiki, please edit yourself (you need an account) or, please, list here what should be corrected
thank you
wget http://mirror.jvsnet.ro/sme/contribs/nhall/sme7/contribs/pootle/rpms/xapian-bindings-1.0.4-1.i386.rpm
this line is to get the needed package to solve the dependency..
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
-
wiki page corrected as suggested