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 13 years ago

Last modified 12 years ago

BlobCol not found

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


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 ?
  File "/usr/lib/python2.4/site-packages/TurboGears-0.9a9-py2.4.egg/turbogears/command/base.py", line 351, in main
  File "/usr/lib/python2.4/site-packages/TurboGears-0.9a9-py2.4.egg/turbogears/command/base.py", line 143, in run
  File "/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1860-py2.4.egg/sqlobject/manager/command.py", line 102, in run
  File "/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1860-py2.4.egg/sqlobject/manager/command.py", line 233, in run
  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
  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
  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 13 years ago by elvelind

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

Should be BLOBCol()

comment:2 Changed 13 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 13 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.