Comment 9 for bug 503143

Revision history for this message
juanito (jferiago) wrote :

The table was created manually without problems...

feria@influenza:~/.wiithon/bdd$ sqlite3 ~/.wiithon/bdd/wiithon_db_ver-4.db
SQLite version 3.6.16
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .tables
accesorio rating_content
companie rating_type
genero rating_value
juego rel_accesorio_juego_obligatorio
juego_descripcion rel_accesorio_juego_opcional
juego_wiitdb rel_juego_genero
online_features rel_online_features_juego
particion rel_rating_content_juego
preferencias rom
sqlite>

witthon tries to start, appears the "loading" banner but crashes with this message on a Window (NO errors on console now)

Looks like python cant access sql database... :(

Thanks...

Here is the err...:

cannot create weak reference to 'str' object

Please, inform developers about this error.

Traceback (most recent call last):
  File "/usr/games/wiithon", line 114, in <module>
    App()
  File "/usr/games/wiithon", line 98, in App
    interfaz = WiithonGUI(core, loading)
  File "/usr/share/wiithon/gui.py", line 361, in __init__
    self.refrescarParticionesWBFS()
  File "/usr/share/wiithon/gui.py", line 454, in refrescarParticionesWBFS
    self.refrescarInfoWiiTDB()
  File "/usr/share/wiithon/gui.py", line 1282, in refrescarInfoWiiTDB
    query = session.query(Juego).group_by('idgame')
  File "<string>", line 1, in <lambda>
  File "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.5.2-py2.6.egg/sqlalchemy/orm/query.py", line 52, in generate
    fn(self, *args[1:], **kw)
  File "<string>", line 1, in <lambda>
  File "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.5.2-py2.6.egg/sqlalchemy/util.py", line 212, in go
    return fn(*args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.5.2-py2.6.egg/sqlalchemy/orm/query.py", line 698, in group_by
    criterion = list(chain(*[_orm_columns(c) for c in criterion]))
  File "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.5.2-py2.6.egg/sqlalchemy/orm/util.py", line 512, in _orm_columns
    mapper, selectable, is_aliased_class = _entity_info(entity)
  File "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.5.2-py2.6.egg/sqlalchemy/orm/util.py", line 483, in _entity_info
    elif _is_mapped_class(entity):
  File "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.5.2-py2.6.egg/sqlalchemy/orm/util.py", line 589, in _is_mapped_class
    manager = attributes.manager_of_class(cls)
  File "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.5.2-py2.6.egg/sqlalchemy/orm/attributes.py", line 1663, in manager_of_class
    finder = self.manager_finders[cls]
  File "/usr/lib/python2.6/weakref.py", line 243, in __getitem__
    return self.data[ref(key)]
TypeError: cannot create weak reference to 'str' object

Use the following URL for reporting bugs:
https://bugs.launchpad.net/wiithon/+filebug