Hello all, As a final update to my problem, I had two conflicting translate-toolkit packages installed. Apparently, I had installed the "latest" version using "pip install" (1.8.0); however, the latest version on the official website is 1.9.0. I had to uninstall the version I used with the pip command.
Best regards, Nick On 11/16/2011 01:06 PM, F Wolff wrote: > 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 > ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Translate-pootle mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/translate-pootle
