There are issues with sqlobject and python-mysql. You should be able to
do the 20wiki with this setup though, see

http://groups.google.com/group/turbogears/browse_thread/thread/221bbe0a51d7fc27/edbc7c3cb3d4774a#edbc7c3cb3d4774a


Simon Forster wrote:
> Having looked at Turbogears a couple of times and backing off because
> of the steep learning curve, I've dived in today with the "20 minute"
> Wiki tutorial. So, page 3 (you got that far cutting and pasting
> text?) and I'm seeing a nice server error (see below). As I am just
> cutting and pasting text, and having lurked on the list for a couple
> of days I understand that Turbogears has changed a fair bit, can I
> just get someone to confirm that it's my inability to select text
> that's letting me down here and not some basic incompatibility
> between the Wiki tutorial and the latest version of Turbogears?
>
> BTW, database is MySQL 4.1.x with encoding of UTF-8. Is that the
> problem here?
>
> TIA
>
> Simon
>
>
>
>
> 500 Internal error
>
> The server encountered an unexpected condition which prevented it
> from fulfilling the request.
>
> Page handler: <bound method Root.edit of <wiki20.controllers.Root
> object at 0x17824f0>>
> Traceback (most recent call last):
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/
> lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/
> _cphttptools.py", line 105, in _run
>      self.main()
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/
> lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/
> _cphttptools.py", line 254, in main
>      body = page_handler(*virtual_path, **self.params)
>    File "<string>", line 3, in edit
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/
> lib/python2.4/site-packages/TurboGears-0.9a9-py2.4.egg/turbogears/
> controllers.py", line 331, in expose
>      output = database.run_with_transaction(
>    File "<string>", line 5, in run_with_transaction
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/
> lib/python2.4/site-packages/TurboGears-0.9a9-py2.4.egg/turbogears/
> database.py", line 245, in so_rwt
>      retval = func(*args, **kw)
>    File "<string>", line 5, in _expose
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/
> lib/python2.4/site-packages/TurboGears-0.9a9-py2.4.egg/turbogears/
> controllers.py", line 348, in <lambda>
>      mapping, fragment, *args, **kw)))
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/
> lib/python2.4/site-packages/TurboGears-0.9a9-py2.4.egg/turbogears/
> controllers.py", line 372, in _execute_func
>      output = errorhandling.try_call(func, *args, **kw)
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/
> lib/python2.4/site-packages/TurboGears-0.9a9-py2.4.egg/turbogears/
> errorhandling.py", line 71, in try_call
>      return func(self, *args, **kw)
>    File "/usr/local/bin/Wiki-20/wiki20/controllers.py", line 24, in edit
>      page = Page.byPagename(pagename)
>    File "<string>", line 1, in <lambda>
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/
> lib/python2.4/site-packages/SQLObject-0.7.1dev_r1860-py2.4.egg/
> sqlobject/main.py", line 1266, in _SO_fetchAlternateID
>      result, obj = cls._findAlternateID(name, dbName, value, connection)
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/
> lib/python2.4/site-packages/SQLObject-0.7.1dev_r1860-py2.4.egg/
> sqlobject/main.py", line 1262, in _findAlternateID
>      value), None
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/
> lib/python2.4/site-packages/SQLObject-0.7.1dev_r1860-py2.4.egg/
> sqlobject/dbconnection.py", line 590, in _SO_selectOneAlt
>      return self.queryOne("SELECT %s FROM %s WHERE %s = %s" %
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/
> lib/python2.4/site-packages/SQLObject-0.7.1dev_r1860-py2.4.egg/
> sqlobject/dbconnection.py", line 349, in queryOne
>      return self._runWithConnection(self._queryOne, s)
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/
> lib/python2.4/site-packages/SQLObject-0.7.1dev_r1860-py2.4.egg/
> sqlobject/dbconnection.py", line 220, in _runWithConnection
>      val = meth(conn, *args)
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/
> lib/python2.4/site-packages/SQLObject-0.7.1dev_r1860-py2.4.egg/
> sqlobject/dbconnection.py", line 342, in _queryOne
>      self._executeRetry(conn, c, s)
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/
> lib/python2.4/site-packages/SQLObject-0.7.1dev_r1860-py2.4.egg/
> sqlobject/mysql/mysqlconnection.py", line 73, in _executeRetry
>      myquery = unicode(query, self.encoding)
> TypeError: decoding Unicode is not supported


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

Reply via email to