Hi!
I'm trying to setup some code to run on a demonstration server here and I
can't find out how I solved this problem on my development machine and on the
deployment server. I thought we have solved that but it looks like it is
still present...
This is from the 1.0 branch, with code that already runs fine on two other
machines. sitecustomize.py is in place setting the default encoding to utf-8
(but even if I remove it I get the same error...).
This is right after I type my login and password at the standard login form
(I've just added the name to the button, because of identity changes).
I'm getting the following traceback:
===============================================================================
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools.py",
line 103, in _run
applyFilters('before_main')
File
"/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/filters/__init__.py",
line 151, in applyFilters
method()
File "/root/TG/TurboGears/1.0/turbogears/visit/api.py", line 154, in
before_main
plugin.record_request( visit )
File "/root/TG/TurboGears/1.0/turbogears/identity/visitor.py", line 162, in
record_request
identity= self.identity_from_request(visit.key)
File "/root/TG/TurboGears/1.0/turbogears/identity/visitor.py", line 86, in
identity_from_request
identity= source(visit_key)
File "/root/TG/TurboGears/1.0/turbogears/identity/visitor.py", line 143, in
identity_from_form
identity= self.provider.validate_identity( user_name, pw, visit_key )
File "/root/TG/TurboGears/1.0/turbogears/identity/soprovider.py", line 209,
in validate_identity
user= user_class.by_user_name( user_name )
File "<string>", line 1, in <lambda>
File "/root/TG/TurboGears/1.0/thirdparty/sqlobject/sqlobject/main.py", line
1266, in _SO_fetchAlternateID
result, obj = cls._findAlternateID(name, dbName, value, connection)
File
"/root/TG/TurboGears/1.0/thirdparty/sqlobject/sqlobject/inheritance/__init__.py",
line 229, in _findAlternateID
result = list(cls.selectBy(connection, **{name: value}))
File "/root/TG/TurboGears/1.0/thirdparty/sqlobject/sqlobject/sresults.py",
line 155, in __iter__
return iter(list(self.lazyIter()))
File "/root/TG/TurboGears/1.0/thirdparty/sqlobject/sqlobject/sresults.py",
line 163, in lazyIter
return conn.iterSelect(self)
File
"/root/TG/TurboGears/1.0/thirdparty/sqlobject/sqlobject/dbconnection.py",
line 770, in iterSelect
select, keepConnection=True)))
File
"/root/TG/TurboGears/1.0/thirdparty/sqlobject/sqlobject/inheritance/iteration.py",
line 10, in __init__
super(InheritableIteration, self).__init__(dbconn, rawconn, select,
keepConnection)
File
"/root/TG/TurboGears/1.0/thirdparty/sqlobject/sqlobject/dbconnection.py",
line 701, in __init__
self.dbconn._executeRetry(self.rawconn, self.cursor, self.query)
File
"/root/TG/TurboGears/1.0/thirdparty/sqlobject/sqlobject/dbconnection.py",
line 297, in _executeRetry
return cursor.execute(query)
TypeError: argument 1 must be str, not unicode
===============================================================================
My environment:
===============================================================================
# tg-admin info | sort | uniq
Cheetah 1.0
CherryPy 2.2.1
ConfigObj 4.3.1
FormEncode 0.5.1
Paste 0.5
PasteDeploy 0.5
PasteScript 0.5.1
PyProtocols 1.0a0
RuleDispatch 0.5a0
SQLObject 0.7.1dev-r1747
TurboGears 0.9a6dev-r1348
TurboJson 0.9.3dev-r1297
TurboKid 0.9.6dev-r1294
cElementTree 1.0.5-20051216
elementtree 1.2.6-20050316
kid 0.9.1
nose 0.8.6
setuptools 0.6a11
simplejson 1.3
===============================================================================
In my development machine I have the followin environment:
===============================================================================
% tg-admin info | sort | uniq
cElementTree 1.0.5-20051216
Cheetah 1.0
CherryPy 2.2.1
ConfigObj 4.3.1
elementtree 1.2.6-20050316
FormEncode 0.5.1
kid 0.9.1
nose 0.8.6
Paste 0.5
PasteDeploy 0.5
PasteScript 0.5.1
PyProtocols 1.0a0
RuleDispatch 0.5a0
setuptools 0.6a11
simplejson 1.3
SQLObject 0.7.1dev-r1747
TurboGears 0.9a6dev-r1348
TurboJson 0.9.3dev-r1297
TurboKid 0.9.6dev-r1294
===============================================================================
I've already restarted the application a few times and cleared my browser's
cache (I even changed browsers!) to no avail...
So... Anyone remember what we've done to solve this?
--
Jorge Godoy <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" 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-trunk
-~----------~----~----~----~------~----~------~--~---