lucid lynx - sqlalchemy 6

Bug #575406 reported by Emanuele FANTON on 2010-05-04
50
This bug affects 12 people
Affects Status Importance Assigned to Milestone
wiithon
Undecided
Unassigned
Debian
New
Undecided
Unassigned

Bug Description

with sqlalchemy 0.5.8 it works fine on the same computer.

this is the output of the error:

Searching for sqlalchemy
Best match: SQLAlchemy 0.6.0
Processing SQLAlchemy-0.6.0-py2.6.egg
Removing SQLAlchemy 0.5.8 from easy-install.pth file
Adding SQLAlchemy 0.6.0 to easy-install.pth file

Using /usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.6.0-py2.6.egg
Processing dependencies for sqlalchemy
Finished processing dependencies for sqlalchemy
emyr@ubuntu:~$ wiithon
Traceback (most recent call last):
  File "/usr/games/wiithon", line 15, in <module>
    from cli import WiithonCLI
  File "/usr/share/wiithon/cli.py", line 11, in <module>
    from wiitdb_schema import Particion
  File "/usr/share/wiithon/wiitdb_schema.py", line 32, in <module>
    session = util.getSesionBDD(db)
  File "/usr/share/wiithon/util.py", line 377, in getSesionBDD
    session = Session()
  File "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.6.0-py2.6.egg/sqlalchemy/orm/scoping.py", line 52, in __call__
    return self.registry()
  File "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.6.0-py2.6.egg/sqlalchemy/util.py", line 1265, in __call__
    val = self.registry.value = self.createfunc()
  File "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.6.0-py2.6.egg/sqlalchemy/orm/session.py", line 180, in __init__
    super(Sess, self).__init__(**local_kwargs)
TypeError: __init__() got an unexpected keyword argument 'transactional'

erl (erl-listas) wrote :

This problem is related with python-sqlalchemy version 0.6, transational and other keywords arguments are now deprecated.

See http://www.sqlalchemy.org/trac/wiki/06Migration#DeprecatedRemovedORMElements

Carlo Mandelli (camandel) wrote :

Please, try with version 1.21-489.

Changed in debian:
status: New → In Progress
Changed in wiithon:
status: New → In Progress
Changed in debian:
status: In Progress → New

removing transactional made the trick..now it works with sqlalchemy 0.6

2010/7/14 Carlo Mandelli <email address hidden>

> Please, try with version 1.21-489.
>
> ** Changed in: debian
> Status: New => In Progress
>
> ** Changed in: wiithon
> Status: New => In Progress
>
> ** Changed in: debian
> Status: In Progress => New
>
> --
> lucid lynx - sqlalchemy 6
> https://bugs.launchpad.net/bugs/575406
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Wiithon - WBFS Partition Manager: In Progress
> Status in Debian GNU/Linux: New
>
> Bug description:
> with sqlalchemy 0.5.8 it works fine on the same computer.
>
> this is the output of the error:
>
> Searching for sqlalchemy
> Best match: SQLAlchemy 0.6.0
> Processing SQLAlchemy-0.6.0-py2.6.egg
> Removing SQLAlchemy 0.5.8 from easy-install.pth file
> Adding SQLAlchemy 0.6.0 to easy-install.pth file
>
> Using /usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.6.0-py2.6.egg
> Processing dependencies for sqlalchemy
> Finished processing dependencies for sqlalchemy
> emyr@ubuntu:~$ wiithon
> Traceback (most recent call last):
> File "/usr/games/wiithon", line 15, in <module>
> from cli import WiithonCLI
> File "/usr/share/wiithon/cli.py", line 11, in <module>
> from wiitdb_schema import Particion
> File "/usr/share/wiithon/wiitdb_schema.py", line 32, in <module>
> session = util.getSesionBDD(db)
> File "/usr/share/wiithon/util.py", line 377, in getSesionBDD
> session = Session()
> File
> "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.6.0-py2.6.egg/sqlalchemy/orm/scoping.py",
> line 52, in __call__
> return self.registry()
> File
> "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.6.0-py2.6.egg/sqlalchemy/util.py",
> line 1265, in __call__
> val = self.registry.value = self.createfunc()
> File
> "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.6.0-py2.6.egg/sqlalchemy/orm/session.py",
> line 180, in __init__
> super(Sess, self).__init__(**local_kwargs)
> TypeError: __init__() got an unexpected keyword argument 'transactional'
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/wiithon/+bug/575406/+subscribe
>

--
Saluti da Emanuele

Changed in wiithon:
status: In Progress → Fix Committed

made other changes for it to work....previously tried without usb drive
connected...
excuse me...

change done ...session.save to session.add
 /usr/share/wiithon/core.py

riga 87 session.add(particion)

riga 49 session.add(juego)

riga 134 session.add(juego)

2010/7/15 Carlo Mandelli <email address hidden>

> ** Changed in: wiithon
> Status: In Progress => Fix Committed
>
> --
> lucid lynx - sqlalchemy 6
> https://bugs.launchpad.net/bugs/575406
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Wiithon - WBFS Partition Manager: Fix Committed
> Status in Debian GNU/Linux: New
>
> Bug description:
> with sqlalchemy 0.5.8 it works fine on the same computer.
>
> this is the output of the error:
>
> Searching for sqlalchemy
> Best match: SQLAlchemy 0.6.0
> Processing SQLAlchemy-0.6.0-py2.6.egg
> Removing SQLAlchemy 0.5.8 from easy-install.pth file
> Adding SQLAlchemy 0.6.0 to easy-install.pth file
>
> Using /usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.6.0-py2.6.egg
> Processing dependencies for sqlalchemy
> Finished processing dependencies for sqlalchemy
> emyr@ubuntu:~$ wiithon
> Traceback (most recent call last):
> File "/usr/games/wiithon", line 15, in <module>
> from cli import WiithonCLI
> File "/usr/share/wiithon/cli.py", line 11, in <module>
> from wiitdb_schema import Particion
> File "/usr/share/wiithon/wiitdb_schema.py", line 32, in <module>
> session = util.getSesionBDD(db)
> File "/usr/share/wiithon/util.py", line 377, in getSesionBDD
> session = Session()
> File
> "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.6.0-py2.6.egg/sqlalchemy/orm/scoping.py",
> line 52, in __call__
> return self.registry()
> File
> "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.6.0-py2.6.egg/sqlalchemy/util.py",
> line 1265, in __call__
> val = self.registry.value = self.createfunc()
> File
> "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.6.0-py2.6.egg/sqlalchemy/orm/session.py",
> line 180, in __init__
> super(Sess, self).__init__(**local_kwargs)
> TypeError: __init__() got an unexpected keyword argument 'transactional'
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/wiithon/+bug/575406/+subscribe
>

--
Saluti da Emanuele

Changed in wiithon:
status: Fix Committed → In Progress
Carlo Mandelli (camandel) wrote :

fix committed in:

1.1x-r403
1.2x-r491

Changed in wiithon:
status: In Progress → Fix Committed

for sqlalchemy 0.6.x you need to change all session.save,
session.save_or_update, session.update ...to session.add....

2010/7/16 Carlo Mandelli <email address hidden>

> fix committed in:
>
> 1.1x-r403
> 1.2x-r491
>
> ** Changed in: wiithon
> Status: In Progress => Fix Committed
>
> --
> lucid lynx - sqlalchemy 6
> https://bugs.launchpad.net/bugs/575406
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Wiithon - WBFS Partition Manager: Fix Committed
> Status in Debian GNU/Linux: New
>
> Bug description:
> with sqlalchemy 0.5.8 it works fine on the same computer.
>
> this is the output of the error:
>
> Searching for sqlalchemy
> Best match: SQLAlchemy 0.6.0
> Processing SQLAlchemy-0.6.0-py2.6.egg
> Removing SQLAlchemy 0.5.8 from easy-install.pth file
> Adding SQLAlchemy 0.6.0 to easy-install.pth file
>
> Using /usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.6.0-py2.6.egg
> Processing dependencies for sqlalchemy
> Finished processing dependencies for sqlalchemy
> emyr@ubuntu:~$ wiithon
> Traceback (most recent call last):
> File "/usr/games/wiithon", line 15, in <module>
> from cli import WiithonCLI
> File "/usr/share/wiithon/cli.py", line 11, in <module>
> from wiitdb_schema import Particion
> File "/usr/share/wiithon/wiitdb_schema.py", line 32, in <module>
> session = util.getSesionBDD(db)
> File "/usr/share/wiithon/util.py", line 377, in getSesionBDD
> session = Session()
> File
> "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.6.0-py2.6.egg/sqlalchemy/orm/scoping.py",
> line 52, in __call__
> return self.registry()
> File
> "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.6.0-py2.6.egg/sqlalchemy/util.py",
> line 1265, in __call__
> val = self.registry.value = self.createfunc()
> File
> "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.6.0-py2.6.egg/sqlalchemy/orm/session.py",
> line 180, in __init__
> super(Sess, self).__init__(**local_kwargs)
> TypeError: __init__() got an unexpected keyword argument 'transactional'
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/wiithon/+bug/575406/+subscribe
>

--
Saluti da Emanuele

Changed in wiithon:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers