Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1088 (closed defect: fixed)

Opened 13 years ago

Last modified 10 years ago

KeyError with "tg-admin sql status"

Reported by: doug Owned by: anonymous
Priority: normal Milestone: 1.x
Component: SQLObject Version: 1.0b1
Severity: normal Keywords:
Cc:

Description

When I run the command "tg-admin sql status" with version .9a9, I get the following error message/traceback:

File "/usr/local/bin/tg-admin", line 7, in ?
    sys.exit(
  File "/usr/lib/python2.4/site-packages/TurboGears-0.9a9-py2.4.egg/turbogears/command/base.py", line 351, in main
    command.run()
  File "/usr/lib/python2.4/site-packages/TurboGears-0.9a9-py2.4.egg/turbogears/command/base.py", line 143, in run
    command.the_runner.run(sys.argv)
  File "/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1860-py2.4.egg/sqlobject/manager/command.py", line 102, in run
    runner.run()
  File "/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1860-py2.4.egg/sqlobject/manager/command.py", line 233, in run
    self.command()
  File "/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1860-py2.4.egg/sqlobject/manager/command.py", line 650, in command
    soClass)
  File "/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1860-py2.4.egg/sqlobject/mysql/mysqlconnection.py", line 153, in columnsFromSchema
    if self.kw['use_unicode'] and colClass is col.StringCol:
KeyError: 'use_unicode'

Change History

comment:1 Changed 13 years ago by jorge.vargas

  • Milestone set to 1.0b2

can anyone confirm this? I hop over 0.9a9

comment:2 Changed 13 years ago by doug

  • Version set to 1.0b1

I'm getting the same error with 1.0b1.

comment:3 Changed 13 years ago by velotron

Confirmed with 1.0b1.

By adding a check for 'use_unicode' to SQLObject-0.7.1dev_r14/sqlobject/mysql/mysqlconnection.py:153 like this:

if self.kw.has_key('use_unicode') and [....]

the problem went away.

comment:4 Changed 12 years ago by alberto

  • Milestone changed from 1.0b2 to 1.1

comment:5 Changed 12 years ago by jorge.vargas

can you take this to the SO mailing list?

comment:6 Changed 12 years ago by alberto

  • Milestone changed from 1.1 to __unclassified__

Batch moved into unclassified from 1.1 to properly track progress on the later

comment:7 Changed 10 years ago by jorge.vargas

  • Milestone changed from __unclassified__ to 1.x

comment:8 Changed 10 years ago by chrisz

  • Status changed from new to closed
  • Resolution set to fixed

This is SQLObject bug 1567633 which has been fixed in SQLObject >= 0.7.2.

Note: See TracTickets for help on using tickets.