Just starting with TG. I've checked out the latest svn version and try
to follow the 20 minute wiki but tg-admin sql create fails. The first
step of starting the server goes all right, I've added the basic model
suggested in the tutorial to model.py, edited dev.cfg so it has a
line:

sqlobject.dburi="sqlite:///path_to_a_db_file"

but then tg-admin sql create fails with:

------------------------------------------- traceback
--------------------------------------------------------

Database URI not specified in the config file (None).
       Please be sure it's on the command line.
Traceback (most recent call last):
 File "/usr/local/bin/tg-admin", line 8, in <module>
   load_entry_point('TurboGears==1.1a0', 'console_scripts', 'tg-admin')()
 File 
"/usr/local/lib/python2.5/site-packages/TurboGears-1.1a0-py2.5.egg/turbogears/command/base.py",
line 108, in main
   command.run()
 File 
"/usr/local/lib/python2.5/site-packages/TurboGears-1.1a0-py2.5.egg/turbogears/command/sql.py",
line 105, in run
   command.the_runner.run(sys.argv)
 File 
"/usr/local/lib/python2.5/site-packages/SQLObject-0.10dev_r2716-py2.5.egg/sqlobject/manager/command.py",
line 101, in run
   runner.run()
 File 
"/usr/local/lib/python2.5/site-packages/SQLObject-0.10dev_r2716-py2.5.egg/sqlobject/manager/command.py",
line 307, in run
   self.command()
 File 
"/usr/local/lib/python2.5/site-packages/SQLObject-0.10dev_r2716-py2.5.egg/sqlobject/manager/command.py",
line 628, in command
   for soClass in self.classes(require_some=True):
 File 
"/usr/local/lib/python2.5/site-packages/SQLObject-0.10dev_r2716-py2.5.egg/sqlobject/manager/command.py",
line 337, in classes
   if not soClass._connection:
 File 
"/usr/local/lib/python2.5/site-packages/TurboGears-1.1a0-py2.5.egg/turbogears/database.py",
line 223, in __get__
   self.set_hub()
 File 
"/usr/local/lib/python2.5/site-packages/TurboGears-1.1a0-py2.5.egg/turbogears/database.py",
line 241, in set_hub
   raise KeyError, "No database configuration found!"
KeyError: 'No database configuration found!'

-------------------------------------------- end of traceback
----------------------------------------------------

I've used all components before (sqlite itself, pysqlite that comes
with python 2.5, sqlobject) they are all installed correctly. I
followed the tutorial as closely as possible, what could possibly go
wrong?

Some version info:

python 2.5
SQLObject-0.10dev_r2716-py2.5.egg
turbogears trunk

Thanks,
Daniel

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to