python error when i start Wiithon

Asked by Mike23 on 2010-11-14

Hi
i'm working on Fedora 14 and when i try to start wiithon by terminal, this is the error:

[root@Home wiithon1.1]# /usr/share/wiithon/wiithon.py
Traceback (most recent call last):
  File "/usr/share/wiithon/wiithon.py", 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/lib/python2.7/site-packages/sqlalchemy/orm/scoping.py", line 56, in __call__
    return self.registry()
  File "/usr/lib/python2.7/site-packages/sqlalchemy/util.py", line 1337, in __call__
    val = self.registry.value = self.createfunc()
  File "/usr/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 176, in __init__
    super(Sess, self).__init__(**local_kwargs)
TypeError: __init__() got an unexpected keyword argument 'transactional'

What should I do??

Question information

Language:
English Edit question
Status:
Answered
For:
wiithon Edit question
Assignee:
No assignee Edit question
Last query:
2010-11-14
Last reply:
2011-01-03
Tony (anton-romanov) said : #1

Same problem on LinuxMint 10.

I also have this problem with wiithon 1.16 in Ubuntu 10.10 amd64, changing the first line in the error message with

  File "/usr/games/wiithon", line 15, in <module>
    from cli import WiithonCLI

eluminx (eluminx-) said : #3

i also have this problem, anyone find a fix for this yet? Maverick 64bit.

Traceback (most recent call last):
  File "/usr/games/wiithon", line 17, in <module>
    from preferencias import Preferencias
  File "/usr/share/wiithon/preferencias.py", line 11, in <module>
    from wiitdb_schema import Preferencia
  File "/usr/share/wiithon/wiitdb_schema.py", line 32, in <module>
    session = util.getSesionBDD(db)
  File "/usr/share/wiithon/util.py", line 410, in getSesionBDD
    session = Session()
  File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/scoping.py", line 52, in __call__
    return self.registry()
  File "/usr/lib/python2.6/dist-packages/sqlalchemy/util.py", line 1266, in __call__
    val = self.registry.value = self.createfunc()
  File "/usr/lib/python2.6/dist-packages/sqlalchemy/orm/session.py", line 176, in __init__
    super(Sess, self).__init__(**local_kwargs)
TypeError: __init__() got an unexpected keyword argument 'transactional'

Greg Ferrell (gferrell) said : #4

Discovered that this is an error with the new version of sqlalchemy 0.6 in maverick:
https://bugs.launchpad.net/wiithon/+bug/575406

The transactional argument is depreciated.

The issue can be fixed by editing line 376 of '/usr/share/wiithon/util.py' from:

    Session = scoped_session(sessionmaker(bind=db, autoflush=True, transactional=True))

To:

    Session = scoped_session(sessionmaker(bind=db, autoflush=True)) #, transactional=True))

I made this edit and am now able to launch wiithon successfully in Maverick 64bit.

p3tris (p3tris) said : #5

Greg Ferrel's fix worked for me on Lubuntu 11.10.

Thanks

tidjean (tidjean-p) said : #6

Thank you, it works for me too,but I should remove the commented part "#, transactional=True))"

Can you help with this problem?

Provide an answer of your own, or ask Mike23 for more information if necessary.

To post a message you must log in.