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

Opened 14 years ago

Last modified 12 years ago

tg-admin sql create fails on project installed via egg

Reported by: hal_wine@… Owned by: anonymous
Priority: normal Milestone: 0.9
Component: SQLObject Version: 0.8
Severity: normal Keywords:
Cc: hal_wine@…

Description

Running tg-admin sql create always fails with the message:

Using database URI sqlite:///var/lib/hal/makerpm.db

This project seems incomplete. In order to use the sqlobject commands
without manually specifying a model, there needs to be an
egg-info directory with an appropriate sqlobject.txt file.

I can fix this automatically. Would you like me to?

Enter [y] or n:

However, the file Foo-1.0-py2.4.egg/EGG-INFO/sqlobject.txt exists and appears correct.

Since I'm running as the user who will run the tg app, and the egg is installed by root, I can't use the auto-fix (lack of permissions).

Background:

  • I developed the app on WinXP, and created an egg there.
  • the egg installed okay on the prod box (linux)
  • tg was installed via easy_install on both boxes, 0.8a4
  • app runs fine once workaround applied

Workaround:

  • copy the dev tree to the prod box
  • change the sqlobject.dburi value appropriately
  • run tg-admin sql create from the dev directory

Attempts that didn't work:

  • appending a "-m model" option to the tg-admin command line using variations of 'Foo.foo.model'

Change History

comment:1 Changed 14 years ago by Hal <hal_wine@…>

  • Cc hal_wine@… added
  • Component changed from CherryPy to SQLObject

comment:2 Changed 13 years ago by anonymous

  • Milestone set to 0.9

comment:3 Changed 13 years ago by kevin

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

I'm glad someone set the milestone on this so that I noticed it. It's time for a ticket review!

This one is long since fixed.

Note: See TracTickets for help on using tickets.