Hi mejoff, al., 2009.eko marren 16a 21:43(e)an, mejoff(e)k idatzi zuen: > Hello, > > I'm using Centos and Python 2.4 and have installed all of the software here: > http://translate.sourceforge.net/wiki/pootle/installation_1.3beta > > I had a Pootle 1.2.1 server running so it was just a matter of adding > Django, wsgiref and the beta Pootle 1.3 snapshot. I also added a path in > PYTHONPATH to Pootle and translate (/usr/lib/python2.4/site-packages/). > > When I type "PootleServer" this is the error message I get: > Python-Levenshtein not found. Continuing with built-in (slower) fuzzy > matching. > Traceback (most recent call last): > File "/usr/bin/PootleServer", line 25, in ? > pootle.main() > File "/usr/lib/python2.4/site-packages/Pootle/pootle.py", line 245, in > main > init_globals() > File "/usr/lib/python2.4/site-packages/Pootle/pootle.py", line 231, in > init_globals > pan_app._po_tree = potree.POTree() > File "/usr/lib/python2.4/site-packages/Pootle/potree.py", line 55, in > __init__ > if not Language.objects.has_templates_project(): > File "/usr/lib/python2.4/site-packages/Pootle/pootle_app/core.py", line > 107, in has_templates_project > return super(LanguageManager, > self).get_query_set().filter(code='templates').count()> 0 > File "/usr/lib/python2.4/site-packages/django/db/models/query.py", line > 296, in count > return self.query.get_count() > File "/usr/lib/python2.4/site-packages/django/db/models/sql/query.py", > line 237, in get_count > data = obj.execute_sql(SINGLE) > File "/usr/lib/python2.4/site-packages/django/db/models/sql/query.py", > line 1734, in execute_sql > cursor.execute(sql, params) > File "/usr/lib/python2.4/site-packages/django/db/backends/util.py", line > 19, in execute > return self.cursor.execute(sql, params) > File > "/usr/lib/python2.4/site-packages/django/db/backends/sqlite3/base.py", line > 168, in execute > return Database.Cursor.execute(self, query, params) > pysqlite2.dbapi2.OperationalError: no such table: pootle_app_language > > Any thoughts?
When running PootleServer it should have created all the necessary database tables automatically, but I don't know why it didn't in this ocassion -- maybe you have an older pootle.db?. In case you have pootle.db try renaming it and rerun PootleServer. Anyway, if you go to the root of your Pootle source files you can run: $ python manage.py initdb which will create the necessary structure for the database and will fill in the tables with default data. The superuser login/password are admin/admin. Julen. ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Translate-pootle mailing list Translate-pootle@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/translate-pootle