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 #165 (closed defect: duplicate)

Opened 14 years ago

Last modified 12 years ago

tg-admin sql upgrade dies with an attribute error

Reported by: kevin Owned by: anonymous
Priority: normal Milestone: 0.9
Component: TurboGears Version:
Severity: normal Keywords:
Cc:

Description

Scott Benjamin, among others, spotted this:

Using database URI postgres://demo@localhost/demo
Traceback (most recent call last):
 File "/usr/local/bin/tg-admin", line 7, in ?
   sys.exit(
 File
"/usr/home/scott/projects/turbogears/turbogears/command/__init__.py",
line 238, in main
   command.run()
 File
"/usr/home/scott/projects/turbogears/turbogears/command/__init__.py",
line 116, in run
   command.the_runner.run(sys.argv)
 File
"/usr/local/lib/python2.4/site-packages/SQLObject-0.7.0-py2.4.egg/sqlobject/manager/command.py",
line 102, in run
   runner.run()
 File
"/usr/local/lib/python2.4/site-packages/SQLObject-0.7.0-py2.4.egg/sqlobject/manager/command.py",
line 233, in run
   self.command()
 File
"/usr/local/lib/python2.4/site-packages/SQLObject-0.7.0-py2.4.egg/sqlobject/manager/command.py",
line 1049, in command
   version_to = os.path.basename(self.find_last_version())
 File "/usr/local/lib/python2.4/posixpath.py", line 112, in basename
   return split(p)[1]
 File "/usr/local/lib/python2.4/posixpath.py", line 77, in split
   i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'

Change History

comment:1 Changed 13 years ago by Max <ischenko@…>

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

See ticket #459 (with a patch).

Note: See TracTickets for help on using tickets.