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 #1082 (closed defect: fixed)

Opened 11 years ago

Last modified 10 years ago

BlobCol not found

Reported by: kkinder Owned by: anonymous
Priority: normal Milestone:
Component: Toolbox Version: 0.9a6
Severity: major Keywords:
Cc:

Description

Here's the traceback:

kkinder@lennon:~/pants$ tg-admin sql drop
Using database URI sqlite:///home/kkinder/pants/devdata.sqlite
Traceback (most recent call last):
  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 592, in command
    for soClass in self.classes():
  File "/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1860-py2.4.egg/sqlobject/manager/command.py", line 245, in classes
    all.extend(self.classes_from_egg(egg_spec))
  File "/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1860-py2.4.egg/sqlobject/manager/command.py", line 410, in classes_from_egg
    modules.extend(self.classes_from_module(
  File "/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1860-py2.4.egg/sqlobject/util/moduleloader.py", line 5, in load_module
    mod = __import__(module_name)
  File "/home/kkinder/pants/pants/model.py", line 9, in ?
    class Photo(SQLObject):
  File "/home/kkinder/pants/pants/model.py", line 12, in Photo
    data = BlobCol()
NameError: name 'BlobCol' is not defined                                                                                     

This is TurboGears 0.9a9 (not on the list) and the sqlobject that it installed, which is SQLObject-0.7.1dev_r1860-py2.4.egg.

Change History

comment:1 Changed 11 years ago by elvelind

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

Should be BLOBCol()

comment:2 Changed 11 years ago by kkinder

  • Status changed from closed to reopened
  • Component changed from SQLObject to Toolbox
  • Resolution invalid deleted

Ah. But the issue then is that the tg-admin toolbox schema designer wrote the file wrong -- that's a generated file.

comment:3 Changed 11 years ago by elvelind

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

fixed in 1818.

Note: See TracTickets for help on using tickets.