in http://translate.fedoraproject.org/module/ , Some module pages error , examples : http://translate.fedoraproject.org/module/system-config-lvm http://translate.fedoraproject.org/module/system-config-rootpassword http://translate.fedoraproject.org/module/system-config-samba
pages show:
OperationalErrorPython 2.4.3: /usr/bin/python Mon Mar 24 04:41:43 2008
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred. /srv/web/translation/view-module.py 206 #import profile
207
208 go_go()
209
210 #profile.run('go_go()', 'profile2-data')
go_go = <function go_go> /srv/web/translation/view-module.py in go_go() 162 here = module["branch"][branch]['domain'][trdomain]
163 here['statistics'] = []
164 get_stats_for(here, module, trdomain, branch, 'ui')
165 here['statistics'].sort(compare_stats) # FIXME: Allow different sorting criteria
166
global get_stats_for = <function get_stats_for>, here = {'description': u'\u754c\u9762\u7ffb\u8bd1', 'id': u'po', 'potbase': u'transifex', 'statistics': [], 'text': u'po'}, module = {'branch': {u'tip': {'content': u'', 'document': {}, 'domain': {u'po': {'description': u'\u754c\u9762\u7ffb\u8bd1', 'id': u'po', 'potbase': u'transifex', 'statistics': [], 'text': u'po'}}, 'id': u'tip', 'text': u'tip'}}, 'bugs-baseurl': u'http://bugzilla.redhat.com/bugzilla', 'bugs-component': u'transifex', 'bugs-product': u'Fedora', 'bugs-xmlrpc': u'http://bugzilla-test.redhat.com/xmlrpc.cgi', 'description': u'transifex', 'id': u'transifex', 'maintainer': {u'glezos': {'bugzilla-account': u'dimitris@glezos.com', 'email': u'dimitris@glezos.com', 'icon': u'http://planet.fedoraproject.org/heads/glezos.png', 'id': u'glezos', 'im': '', 'name': u'Dimitris Glezos', 'nick': u'glezos', 'text': u'glezos', 'webpage': u'http://fedoraproject.org/wiki/DimitrisGlezos%27%7D%7D, 'scmmodule': u'transifex', 'scmroot': {'path': u'http://hg.fedorahosted.org/hg', 'text': u'hg', 'type': u'hg'}, ...}, trdomain = u'po', branch = u'tip' /srv/web/translation/view-module.py in get_stats_for(here={'description': u'\u754c\u9762\u7ffb\u8bd1', 'id': u'po', 'potbase': u'transifex', 'statistics': [], 'text': u'po'}, module={'branch': {u'tip': {'content': u'', 'document': {}, 'domain': {u'po': {'description': u'\u754c\u9762\u7ffb\u8bd1', 'id': u'po', 'potbase': u'transifex', 'statistics': [], 'text': u'po'}}, 'id': u'tip', 'text': u'tip'}}, 'bugs-baseurl': u'http://bugzilla.redhat.com/bugzilla', 'bugs-component': u'transifex', 'bugs-product': u'Fedora', 'bugs-xmlrpc': u'http://bugzilla-test.redhat.com/xmlrpc.cgi', 'description': u'transifex', 'id': u'transifex', 'maintainer': {u'glezos': {'bugzilla-account': u'dimitris@glezos.com', 'email': u'dimitris@glezos.com', 'icon': u'http://planet.fedoraproject.org/heads/glezos.png', 'id': u'glezos', 'im': '', 'name': u'Dimitris Glezos', 'nick': u'glezos', 'text': u'glezos', 'webpage': u'http://fedoraproject.org/wiki/DimitrisGlezos%27%7D%7D, 'scmmodule': u'transifex', 'scmroot': {'path': u'http://hg.fedorahosted.org/hg', 'text': u'hg', 'type': u'hg'}, ...}, trdomain=u'po', branch=u'tip', type='ui', sortorder='name') 51 Statistics.q.Type == type),
52 orderBy="-date")
53 if list(res) and res.count()>0:
54 if defaults.DEBUG: print >>sys.stderr, "OVDE: %s!" % (module["id"] + "/" + trdomain)
55 pot = res[0]
builtin list = <type 'list'>, res = <SelectResults at -484bce14>, res.count = <bound method SelectResults.count of <SelectResults at -484bce14>> /usr/lib/python2.4/site-packages/sqlobject/sresults.py in __iter__(self=<SelectResults at -484bce14>) 160 # since we don't have to worry about garbage collection,
161 # etc., like we do with .lazyIter()
162 return iter(list(self.lazyIter()))
163
164 def lazyIter(self):
builtin iter = <built-in function iter>, builtin list = <type 'list'>, self = <SelectResults at -484bce14>, self.lazyIter = <bound method SelectResults.lazyIter of <SelectResults at -484bce14>> /usr/lib/python2.4/site-packages/sqlobject/sresults.py in lazyIter(self=<SelectResults at -484bce14>) 168 """
169 conn = self._getConnection()
170 return conn.iterSelect(self)
171
172 def accumulate(self, *expressions):
conn = <sqlobject.sqlite.sqliteconnection.SQLiteConnection instance>, conn.iterSelect = <bound method SQLiteConnection.iterSelect of <sq...lite.sqliteconnection.SQLiteConnection instance>>, self = <SelectResults at -484bce14> /usr/lib/python2.4/site-packages/sqlobject/dbconnection.py in iterSelect(self=<sqlobject.sqlite.sqliteconnection.SQLiteConnection instance>, select=<SelectResults at -484bce14>) 398 def iterSelect(self, select):
399 return select.IterationClass(self, self.getConnection(),
400 select, keepConnection=False)
401
402 def accumulateSelect(self, select, *expressions):
select = <SelectResults at -484bce14>, keepConnection undefined, global False = False /usr/lib/python2.4/site-packages/sqlobject/dbconnection.py in __init__(self=<sqlobject.dbconnection.Iteration object>, dbconn=<sqlobject.sqlite.sqliteconnection.SQLiteConnection instance>, rawconn=<pysqlite2.dbapi2.Connection object>, select=<SelectResults at -484bce14>, keepConnection=False) 786 if dbconn.debug:
787 dbconn.printDebug(rawconn, self.query, 'Select')
788 self.dbconn._executeRetry(self.rawconn, self.cursor, self.query)
789
790 def __iter__(self):
self = <sqlobject.dbconnection.Iteration object>, self.dbconn = <sqlobject.sqlite.sqliteconnection.SQLiteConnection instance>, self.dbconn._executeRetry = <bound method SQLiteConnection._executeRetry of ...lite.sqliteconnection.SQLiteConnection instance>>, self.rawconn = <pysqlite2.dbapi2.Connection object>, self.cursor = <pysqlite2.dbapi2.Cursor object>, self.query = "SELECT statistics.id, statistics.module, statist...statistics.type) = ('ui')))))) ORDER BY date DESC" /usr/lib/python2.4/site-packages/sqlobject/sqlite/sqliteconnection.py in _executeRetry(self=<sqlobject.sqlite.sqliteconnection.SQLiteConnection instance>, conn=<pysqlite2.dbapi2.Connection object>, cursor=<pysqlite2.dbapi2.Cursor object>, query="SELECT statistics.id, statistics.module, statist...statistics.type) = ('ui')))))) ORDER BY date DESC") 181 return cursor.execute(query)
182 except self.module.OperationalError, e:
183 raise OperationalError(ErrorMessage(e))
184 except self.module.IntegrityError, e:
185 msg = ErrorMessage(e)
global OperationalError = <class sqlobject.dberrors.OperationalError>, global ErrorMessage = <class 'sqlobject.sqlite.sqliteconnection.ErrorMessage'>, e = <pysqlite2.dbapi2.OperationalError instance>OperationalError: no such table: statistics
Hello, Python Operational Errors are also showing up for the languages pages:
http://translate.fedoraproject.org/languages/<lang-code>
Can someone with access please take a look at this?
Thanks in advance and apologies for top-posting.
regards Runa
Guokai Han wrote:
in http://translate.fedoraproject.org/module/ , Some module pages error , examples : http://translate.fedoraproject.org/module/system-config-lvm http://translate.fedoraproject.org/module/system-config-rootpassword http://translate.fedoraproject.org/module/system-config-samba
pages show:
OperationalErrorPython 2.4.3: /usr/bin/python Mon Mar 24 04:41:43 2008
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred. /srv/web/translation/view-module.py 206 #import profile
207
208 go_go()
209
210 #profile.run('go_go()', 'profile2-data')
go_go = <function go_go> /srv/web/translation/view-module.py in go_go() 162 here = module["branch"][branch]['domain'][trdomain]
163 here['statistics'] = []
164 get_stats_for(here, module, trdomain, branch, 'ui')
165 here['statistics'].sort(compare_stats) # FIXME: Allow different sorting criteria
166
global get_stats_for = <function get_stats_for>, here = {'description': u'\u754c\u9762\u7ffb\u8bd1', 'id': u'po', 'potbase': u'transifex', 'statistics': [], 'text': u'po'}, module = {'branch': {u'tip': {'content': u'', 'document': {}, 'domain': {u'po': {'description': u'\u754c\u9762\u7ffb\u8bd1', 'id': u'po', 'potbase': u'transifex', 'statistics': [], 'text': u'po'}}, 'id': u'tip', 'text': u'tip'}}, 'bugs-baseurl': u'http://bugzilla.redhat.com/bugzilla', 'bugs-component': u'transifex', 'bugs-product': u'Fedora', 'bugs-xmlrpc': u'http://bugzilla-test.redhat.com/xmlrpc.cgi', 'description': u'transifex', 'id': u'transifex', 'maintainer': {u'glezos': {'bugzilla-account': u'dimitris@glezos.com', 'email': u'dimitris@glezos.com', 'icon': u'http://planet.fedoraproject.org/heads/glezos.png', 'id': u'glezos', 'im': '', 'name': u'Dimitris Glezos', 'nick': u'glezos', 'text': u'glezos', 'webpage': u'http://fedoraproject.org/wiki/DimitrisGlezos%27%7D%7D, 'scmmodule': u'transifex', 'scmroot': {'path': u'http://hg.fedorahosted.org/hg', 'text': u'hg', 'type': u'hg'}, ...}, trdomain = u'po', branch = u'tip' /srv/web/translation/view-module.py in get_stats_for(here={'description': u'\u754c\u9762\u7ffb\u8bd1', 'id': u'po', 'potbase': u'transifex', 'statistics': [], 'text': u'po'}, module={'branch': {u'tip': {'content': u'', 'document': {}, 'domain': {u'po': {'description': u'\u754c\u9762\u7ffb\u8bd1', 'id': u'po', 'potbase': u'transifex', 'statistics': [], 'text': u'po'}}, 'id': u'tip', 'text': u'tip'}}, 'bugs-baseurl': u'http://bugzilla.redhat.com/bugzilla', 'bugs-component': u'transifex', 'bugs-product': u'Fedora', 'bugs-xmlrpc': u'http://bugzilla-test.redhat.com/xmlrpc.cgi', 'description': u'transifex', 'id': u'transifex', 'maintainer': {u'glezos': {'bugzilla-account': u'dimitris@glezos.com', 'email': u'dimitris@glezos.com', 'icon': u'http://planet.fedoraproject.org/heads/glezos.png', 'id': u'glezos', 'im': '', 'name': u'Dimitris Glezos', 'nick': u'glezos', 'text': u'glezos', 'webpage': u'http://fedoraproject.org/wiki/DimitrisGlezos%27%7D%7D, 'scmmodule': u'transifex', 'scmroot': {'path': u'http://hg.fedorahosted.org/hg', 'text': u'hg', 'type': u'hg'}, ...}, trdomain=u'po', branch=u'tip', type='ui', sortorder='name') 51 Statistics.q.Type == type),
52 orderBy="-date")
53 if list(res) and res.count()>0:
54 if defaults.DEBUG: print >>sys.stderr, "OVDE: %s!" % (module["id"] + "/" + trdomain)
55 pot = res[0]
builtin list = <type 'list'>, res = <SelectResults at -484bce14>, res.count = <bound method SelectResults.count of <SelectResults at -484bce14>> /usr/lib/python2.4/site-packages/sqlobject/sresults.py in __iter__(self=<SelectResults at -484bce14>) 160 # since we don't have to worry about garbage collection,
161 # etc., like we do with .lazyIter()
162 return iter(list(self.lazyIter()))
163
164 def lazyIter(self):
builtin iter = <built-in function iter>, builtin list = <type 'list'>, self = <SelectResults at -484bce14>, self.lazyIter = <bound method SelectResults.lazyIter of <SelectResults at -484bce14>> /usr/lib/python2.4/site-packages/sqlobject/sresults.py in lazyIter(self=<SelectResults at -484bce14>) 168 """
169 conn = self._getConnection()
170 return conn.iterSelect(self)
171
172 def accumulate(self, *expressions):
conn = <sqlobject.sqlite.sqliteconnection.SQLiteConnection instance>, conn.iterSelect = <bound method SQLiteConnection.iterSelect of <sq...lite.sqliteconnection.SQLiteConnection instance>>, self = <SelectResults at -484bce14> /usr/lib/python2.4/site-packages/sqlobject/dbconnection.py in iterSelect(self=<sqlobject.sqlite.sqliteconnection.SQLiteConnection instance>, select=<SelectResults at -484bce14>) 398 def iterSelect(self, select):
399 return select.IterationClass(self, self.getConnection(),
400 select, keepConnection=False)
401
402 def accumulateSelect(self, select, *expressions):
select = <SelectResults at -484bce14>, keepConnection undefined, global False = False /usr/lib/python2.4/site-packages/sqlobject/dbconnection.py in __init__(self=<sqlobject.dbconnection.Iteration object>, dbconn=<sqlobject.sqlite.sqliteconnection.SQLiteConnection instance>, rawconn=<pysqlite2.dbapi2.Connection object>, select=<SelectResults at -484bce14>, keepConnection=False) 786 if dbconn.debug:
787 dbconn.printDebug(rawconn, self.query, 'Select')
788 self.dbconn._executeRetry(self.rawconn, self.cursor, self.query)
789
790 def __iter__(self):
self = <sqlobject.dbconnection.Iteration object>, self.dbconn = <sqlobject.sqlite.sqliteconnection.SQLiteConnection instance>, self.dbconn._executeRetry = <bound method SQLiteConnection._executeRetry of ...lite.sqliteconnection.SQLiteConnection instance>>, self.rawconn = <pysqlite2.dbapi2.Connection object>, self.cursor = <pysqlite2.dbapi2.Cursor object>, self.query = "SELECT statistics.id, statistics.module, statist...statistics.type) = ('ui')))))) ORDER BY date DESC" /usr/lib/python2.4/site-packages/sqlobject/sqlite/sqliteconnection.py in _executeRetry(self=<sqlobject.sqlite.sqliteconnection.SQLiteConnection instance>, conn=<pysqlite2.dbapi2.Connection object>, cursor=<pysqlite2.dbapi2.Cursor object>, query="SELECT statistics.id, statistics.module, statist...statistics.type) = ('ui')))))) ORDER BY date DESC") 181 return cursor.execute(query)
182 except self.module.OperationalError, e:
183 raise OperationalError(ErrorMessage(e))
184 except self.module.IntegrityError, e:
185 msg = ErrorMessage(e)
global OperationalError = <class sqlobject.dberrors.OperationalError>, global ErrorMessage = <class 'sqlobject.sqlite.sqliteconnection.ErrorMessage'>, e = <pysqlite2.dbapi2.OperationalError instance>OperationalError: no such table: statistics
-- Fedora-trans-list mailing list Fedora-trans-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-trans-list
I have no idea why & how this is happening, but there is a workaround to avoid this issue that I know.
Try using "https://" instead of "http://" ...
Runa Bhattacharjee wrote:
Hello, Python Operational Errors are also showing up for the languages pages:
http://translate.fedoraproject.org/languages/<lang-code>
Can someone with access please take a look at this?
Thanks in advance and apologies for top-posting.
regards Runa
Guokai Han wrote:
in http://translate.fedoraproject.org/module/ , Some module pages error , examples : http://translate.fedoraproject.org/module/system-config-lvm http://translate.fedoraproject.org/module/system-config-rootpassword http://translate.fedoraproject.org/module/system-config-samba
pages show:
OperationalErrorPython 2.4.3: /usr/bin/python Mon Mar 24 04:41:43 2008
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred. /srv/web/translation/view-module.py 206 #import profile
207
208 go_go()
209
210 #profile.run('go_go()', 'profile2-data')
go_go = <function go_go> /srv/web/translation/view-module.py in go_go() 162 here = module["branch"][branch]['domain'][trdomain]
163 here['statistics'] = []
164 get_stats_for(here, module, trdomain, branch, 'ui')
165 here['statistics'].sort(compare_stats) # FIXME: Allow different sorting criteria
166
global get_stats_for = <function get_stats_for>, here = {'description': u'\u754c\u9762\u7ffb\u8bd1', 'id': u'po', 'potbase': u'transifex', 'statistics': [], 'text': u'po'}, module = {'branch': {u'tip': {'content': u'', 'document': {}, 'domain': {u'po': {'description': u'\u754c\u9762\u7ffb\u8bd1', 'id': u'po', 'potbase': u'transifex', 'statistics': [], 'text': u'po'}}, 'id': u'tip', 'text': u'tip'}}, 'bugs-baseurl': u'http://bugzilla.redhat.com/bugzilla', 'bugs-component': u'transifex', 'bugs-product': u'Fedora', 'bugs-xmlrpc': u'http://bugzilla-test.redhat.com/xmlrpc.cgi', 'description': u'transifex', 'id': u'transifex', 'maintainer': {u'glezos': {'bugzilla-account': u'dimitris@glezos.com', 'email': u'dimitris@glezos.com', 'icon': u'http://planet.fedoraproject.org/heads/glezos.png', 'id': u'glezos', 'im': '', 'name': u'Dimitris Glezos', 'nick': u'glezos', 'text': u'glezos', 'webpage': u'http://fedoraproject.org/wiki/DimitrisGlezos%27%7D%7D, 'scmmodule': u'transifex', 'scmroot': {'path': u'http://hg.fedorahosted.org/hg', 'text': u'hg', 'type': u'hg'}, ...}, trdomain = u'po', branch = u'tip' /srv/web/translation/view-module.py in get_stats_for(here={'description': u'\u754c\u9762\u7ffb\u8bd1', 'id': u'po', 'potbase': u'transifex', 'statistics': [], 'text': u'po'}, module={'branch': {u'tip': {'content': u'', 'document': {}, 'domain': {u'po': {'description': u'\u754c\u9762\u7ffb\u8bd1', 'id': u'po', 'potbase': u'transifex', 'statistics': [], 'text': u'po'}}, 'id': u'tip', 'text': u'tip'}}, 'bugs-baseurl': u'http://bugzilla.redhat.com/bugzilla', 'bugs-component': u'transifex', 'bugs-product': u'Fedora', 'bugs-xmlrpc': u'http://bugzilla-test.redhat.com/xmlrpc.cgi', 'description': u'transifex', 'id': u'transifex', 'maintainer': {u'glezos': {'bugzilla-account': u'dimitris@glezos.com', 'email': u'dimitris@glezos.com', 'icon': u'http://planet.fedoraproject.org/heads/glezos.png', 'id': u'glezos', 'im': '', 'name': u'Dimitris Glezos', 'nick': u'glezos', 'text': u'glezos', 'webpage': u'http://fedoraproject.org/wiki/DimitrisGlezos%27%7D%7D, 'scmmodule': u'transifex', 'scmroot': {'path': u'http://hg.fedorahosted.org/hg', 'text': u'hg', 'type': u'hg'}, ...}, trdomain=u'po', branch=u'tip', type='ui', sortorder='name') 51 Statistics.q.Type == type),
52 orderBy="-date")
53 if list(res) and res.count()>0:
54 if defaults.DEBUG: print >>sys.stderr, "OVDE: %s!" % (module["id"] + "/" + trdomain)
55 pot = res[0]
builtin list = <type 'list'>, res = <SelectResults at -484bce14>, res.count = <bound method SelectResults.count of <SelectResults at -484bce14>> /usr/lib/python2.4/site-packages/sqlobject/sresults.py in __iter__(self=<SelectResults at -484bce14>) 160 # since we don't have to worry about garbage collection,
161 # etc., like we do with .lazyIter()
162 return iter(list(self.lazyIter()))
163
164 def lazyIter(self):
builtin iter = <built-in function iter>, builtin list = <type 'list'>, self = <SelectResults at -484bce14>, self.lazyIter = <bound method SelectResults.lazyIter of <SelectResults at -484bce14>> /usr/lib/python2.4/site-packages/sqlobject/sresults.py in lazyIter(self=<SelectResults at -484bce14>) 168 """
169 conn = self._getConnection()
170 return conn.iterSelect(self)
171
172 def accumulate(self, *expressions):
conn = <sqlobject.sqlite.sqliteconnection.SQLiteConnection instance>, conn.iterSelect = <bound method SQLiteConnection.iterSelect of <sq...lite.sqliteconnection.SQLiteConnection instance>>, self = <SelectResults at -484bce14> /usr/lib/python2.4/site-packages/sqlobject/dbconnection.py in iterSelect(self=<sqlobject.sqlite.sqliteconnection.SQLiteConnection instance>, select=<SelectResults at -484bce14>) 398 def iterSelect(self, select):
399 return select.IterationClass(self, self.getConnection(),
400 select, keepConnection=False)
401
402 def accumulateSelect(self, select, *expressions):
select = <SelectResults at -484bce14>, keepConnection undefined, global False = False /usr/lib/python2.4/site-packages/sqlobject/dbconnection.py in __init__(self=<sqlobject.dbconnection.Iteration object>, dbconn=<sqlobject.sqlite.sqliteconnection.SQLiteConnection instance>, rawconn=<pysqlite2.dbapi2.Connection object>, select=<SelectResults at -484bce14>, keepConnection=False) 786 if dbconn.debug:
787 dbconn.printDebug(rawconn, self.query, 'Select')
788 self.dbconn._executeRetry(self.rawconn, self.cursor, self.query)
789
790 def __iter__(self):
self = <sqlobject.dbconnection.Iteration object>, self.dbconn = <sqlobject.sqlite.sqliteconnection.SQLiteConnection instance>, self.dbconn._executeRetry = <bound method SQLiteConnection._executeRetry of ...lite.sqliteconnection.SQLiteConnection instance>>, self.rawconn = <pysqlite2.dbapi2.Connection object>, self.cursor = <pysqlite2.dbapi2.Cursor object>, self.query = "SELECT statistics.id, statistics.module, statist...statistics.type) = ('ui')))))) ORDER BY date DESC" /usr/lib/python2.4/site-packages/sqlobject/sqlite/sqliteconnection.py in _executeRetry(self=<sqlobject.sqlite.sqliteconnection.SQLiteConnection instance>, conn=<pysqlite2.dbapi2.Connection object>, cursor=<pysqlite2.dbapi2.Cursor object>, query="SELECT statistics.id, statistics.module, statist...statistics.type) = ('ui')))))) ORDER BY date DESC") 181 return cursor.execute(query)
182 except self.module.OperationalError, e:
183 raise OperationalError(ErrorMessage(e))
184 except self.module.IntegrityError, e:
185 msg = ErrorMessage(e)
global OperationalError = <class sqlobject.dberrors.OperationalError>, global ErrorMessage = <class 'sqlobject.sqlite.sqliteconnection.ErrorMessage'>, e = <pysqlite2.dbapi2.OperationalError instance>OperationalError: no such table: statistics
-- Fedora-trans-list mailing list Fedora-trans-list@redhat.com https://www.redhat.com/mailman/listinfo/fedora-trans-list
Ankitkumar Rameshchandra Patel wrote:
I have no idea why & how this is happening, but there is a workaround to avoid this issue that I know.
Try using "https://" instead of "http://" ...
Runa Bhattacharjee wrote:
Hello, Python Operational Errors are also showing up for the languages pages:
http://translate.fedoraproject.org/languages/<lang-code>
Can someone with access please take a look at this?
[snip]
Guokai Han wrote:
in http://translate.fedoraproject.org/module/ , Some module pages error , examples : http://translate.fedoraproject.org/module/system-config-lvm http://translate.fedoraproject.org/module/system-config-rootpassword http://translate.fedoraproject.org/module/system-config-samba
[snip]
Things seem to be working now. Thanks Ricky for fixing the error:
https://fedorahosted.org/fedora-infrastructure/ticket/460
cheers Runa