Dwayne Freidel, Any help you could offer would be most welcome. Aneesh is trying to drag Sugar Labs into the present in terms of our old instance.
cjl Sugar Labs Translation Team Coordinator On Tue, Jul 2, 2013 at 1:01 AM, Aneesh Dogra <[email protected]> wrote: > Hello List, > > I am trying to port an old pootle instance [2.0.5] to 2.0.6. The old pootle > instance uses mysql for storing the pootle database and sqlite3 to store > the stats.db. You can have a look at localsettings.py [of the old instance] > here: http://www.codepasty.com/pasty/83002 > > I did the following to port pootle: > > 1) Took the dump of sql db from the old instance > 2) Imported sql into new db's database. > 3) Updated the locasettings.py file: http://www.codepasty.com/pasty/90001 > 3) Copied stats.db in db/stats.db. > 4) Ran "python manage.py syncdb" > 5) Copied translation files from the old instance to po/ > 6) Ran "python manage.py refresh_stats" > > I get the following errors: > > 2013-07-02 06:47:31,860 ERROR Error openining indexer for > /fa_AF/etoys_new/: 'StatsCache' object has no attribute 'file_totals' > > repeated multiple times for all projects. > > I also tried to run the server, but I get the error [when I access > /language/project/] with following traceback. > > Traceback (most recent call last): > File > "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line > 100, in get_response > response = callback(request, *callback_args, **callback_kwargs) > File > "/home/aneesh/Pootle-2.0.6/local_apps/pootle_app/views/language/view.py", > line 56, in decorated_f > return f(request, translation_project, *args, **kwargs) > File > "/home/aneesh/Pootle-2.0.6/local_apps/pootle_app/views/language/view.py", > line 66, in decorated_f > return f(request, translation_project, *args, **kwargs) > File > "/home/aneesh/Pootle-2.0.6/local_apps/pootle_app/views/language/view.py", > line 104, in project_index > return project_index_view(request, translation_project, directory) > File > > "/home/aneesh/Pootle-2.0.6/local_apps/pootle_app/views/language/project_index.py", > line 89, in view > view_obj(request, translation_project, directory), > File > "/home/aneesh/Pootle-2.0.6/local_apps/pootle_app/lib/view_handler.py", line > 48, in __call__ > return self.GET(template_vars, request, *args, **kwargs) > File > > "/home/aneesh/Pootle-2.0.6/local_apps/pootle_app/views/language/project_index.py", > line 71, in GET > 'children': tp_common.get_children(request, > translation_project, directory), > File > > "/home/aneesh/Pootle-2.0.6/local_apps/pootle_app/views/language/tp_common.py", > line 54, in get_children > for child_store in directory.filter_stores(search).iterator()] > File > > "/home/aneesh/Pootle-2.0.6/local_apps/pootle_app/views/language/item_dict.py", > line 289, in make_store_item > item = make_generic_item(request, store, action, show_checks) > File > > "/home/aneesh/Pootle-2.0.6/local_apps/pootle_app/views/language/item_dict.py", > line 249, in make_generic_item > quick_stats = add_percentages(path_obj.getquickstats()) > File "/home/aneesh/Pootle-2.0.6/local_apps/pootle_misc/util.py", line 34, > in _getfromcache > result = function(instance, *args, **kwargs) > File "/home/aneesh/Pootle-2.0.6/local_apps/pootle_store/models.py", line > 98, in getquickstats > return dict(self.file.getquickstats()) > File "/home/aneesh/Pootle-2.0.6/local_apps/pootle_store/fields.py", line > 121, in getquickstats > stats_tuple.quickstats = self._statscache.filetotals(self.path, > store=self._get_store) # or statsdb.emptyfiletotals() > File > "/usr/local/lib/python2.7/dist-packages/translate/storage/statsdb.py", line > 497, in filetotals > stats = self.file_totals[self._getfileid(filename, store=store)] > AttributeError: 'StatsCache' object has no attribute 'file_totals' > > > Can someone please help me with this? Thanks in advance. > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > Translate-pootle mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/translate-pootle > ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Translate-pootle mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/translate-pootle
