Op Di, 2011-11-15 om 17:09 +0100 skryf Nick Ruiz: > Hello, > > I just installed Pootle 2.1.6 and tried running the demo. When I click > on a Translation Project, I get the following error: > > ~/workspace/Pootle-2.1.6 $ ./PootleServer > Starting server, listening on port 8080. > 2011-11-15 18:07:45,574 INFO Starting Django server, listening on port 8080 > [15/Nov/2011 18:07:57] "GET / HTTP/1.1" 200 2047 > [15/Nov/2011 18:07:57] "GET /html/images/green-bar.png HTTP/1.1" 200 262 > [15/Nov/2011 18:07:57] "GET /html/images/purple-bar.png HTTP/1.1" 200 232 > [15/Nov/2011 18:07:57] "GET /html/images/red-bar.png HTTP/1.1" 200 230 > [15/Nov/2011 18:07:58] "GET /html/js/sorttable.js HTTP/1.1" 200 5369 > [15/Nov/2011 18:07:58] "GET /html/js/jquery/jquery.bidi.js HTTP/1.1" 200 > 1803 > [15/Nov/2011 18:07:58] "GET /html/images/feed.png HTTP/1.1" 200 714 > [15/Nov/2011 18:07:58] "GET /html/images/ascdesc.gif HTTP/1.1" 200 64 > Traceback (most recent call last): > File > "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", > line 111, in get_response > response = callback(request, *callback_args, **callback_kwargs) > File > "/home/nick/workspace/Pootle-2.1.6/local_apps/pootle_project/views.py", > line 87, in project_language_index > items = [make_language_item(request, translation_project) for > translation_project in translation_projects.iterator()] > File > "/home/nick/workspace/Pootle-2.1.6/local_apps/pootle_project/views.py", > line 62, in make_language_item > projectstats = add_percentages(translation_project.getquickstats()) > File > "/home/nick/workspace/Pootle-2.1.6/local_apps/pootle_misc/util.py", line > 34, in _getfromcache > result = function(instance, *args, **kwargs) > File > "/home/nick/workspace/Pootle-2.1.6/local_apps/pootle_translationproject/models.py", > > line 213, in getquickstats > errors = self.require_units() > File > "/home/nick/workspace/Pootle-2.1.6/local_apps/pootle_translationproject/models.py", > > line 197, in require_units > store.require_units() > File > "/home/nick/workspace/Pootle-2.1.6/local_apps/pootle_store/models.py", > line 695, in require_units > self.parse() > File > "/usr/local/lib/python2.7/dist-packages/django/db/transaction.py", line > 217, in inner > res = func(*args, **kwargs) > File > "/home/nick/workspace/Pootle-2.1.6/local_apps/pootle_store/models.py", > line 766, in parse > self.addunit(unit, index) > File > "/home/nick/workspace/Pootle-2.1.6/local_apps/pootle_store/models.py", > line 1026, in addunit > newunit = Unit(store=self, index=index) > File > "/home/nick/workspace/Pootle-2.1.6/local_apps/pootle_store/models.py", > line 177, in __init__ > super(Unit, self).__init__(*args, **kwargs) > File > "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line > 365, in __init__ > super(Model, self).__init__() > TypeError: __init__() takes exactly 2 arguments (1 given) > > [15/Nov/2011 18:08:00] "GET /projects/terminology/ HTTP/1.1" 500 4008 > > Any ideas on how to resolve this error?
Hallo Nick My guess is that your version of Translate Toolkit isn't new enough for the version of Django that you have. Version 1.3 of Django required some changes to the Translate Toolkit. Version 1.9.0 should work. Keep well Friedel -- Recently on my blog: http://translate.org.za/blogs/friedel/en/content/firefox-maybe-now-most-popular-africa ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Translate-pootle mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/translate-pootle
