I'm getting a strange error when i try to drop or create my database.
Everythin was working fine a few minutes ago then i dropped the
database (MySQL via phpmyadmin) to try out some changes to my model,
and now I'm getting this, even with the old model:

-----------------------------------------
[EMAIL PROTECTED]:~/Projects/cha_tg$ tg-admin sql drop
Using database URI mysql://cha_tg:[EMAIL PROTECTED]/cha_tg
Traceback (most recent call last):
  File "/usr/local/bin/tg-admin", line 8, in <module>
    load_entry_point('TurboGears==1.0.2.2', 'console_scripts', 'tg-
admin')()
  File "/usr/lib/python2.5/site-packages/TurboGears-1.0.2.2-py2.5.egg/
turbogears/command/base.py", line 389, in main
    command.run()
  File "/usr/lib/python2.5/site-packages/TurboGears-1.0.2.2-py2.5.egg/
turbogears/command/base.py", line 144, in run
    command.the_runner.run(sys.argv)
  File "/usr/lib/python2.5/site-packages/SQLObject-0.9.0b2-py2.5.egg/
sqlobject/manager/command.py", line 101, in run
    runner.run()
  File "/usr/lib/python2.5/site-packages/SQLObject-0.9.0b2-py2.5.egg/
sqlobject/manager/command.py", line 307, in run
    self.command()
  File "/usr/lib/python2.5/site-packages/SQLObject-0.9.0b2-py2.5.egg/
sqlobject/manager/command.py", line 693, in command
    exists = soClass._connection.tableExists(soClass.sqlmeta.table)
  File "/usr/lib/python2.5/site-packages/SQLObject-0.9.0b2-py2.5.egg/
sqlobject/mysql/mysqlconnection.py", line 193, in tableExists
    self.query('DESCRIBE %s' % (tableName))
  File "/usr/lib/python2.5/site-packages/SQLObject-0.9.0b2-py2.5.egg/
sqlobject/dbconnection.py", line 342, in query
    return self._runWithConnection(self._query, s)
  File "/usr/lib/python2.5/site-packages/SQLObject-0.9.0b2-py2.5.egg/
sqlobject/dbconnection.py", line 253, in _runWithConnection
    conn = self.getConnection()
  File "/usr/lib/python2.5/site-packages/SQLObject-0.9.0b2-py2.5.egg/
sqlobject/dbconnection.py", line 264, in getConnection
    conn = self.makeConnection()
  File "/usr/lib/python2.5/site-packages/SQLObject-0.9.0b2-py2.5.egg/
sqlobject/mysql/mysqlconnection.py", line 82, in makeConnection
    conn.set_character_set(self.dbEncoding)
  File "/usr/lib/python2.5/site-packages/MySQLdb/connections.py", line
262, in set_character_set
    super(Connection, self).set_character_set(charset)
TypeError: argument 1 must be string, not None
-----------------------------------------

I realize it may be hard to diagnose this without more information,
but can someone at least point me in the right direction?

Thanks !
-Ryan


--~--~---------~--~----~------------~-------~--~----~
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