What are the two env paths? Specifically, does one of them contain
non-ASCII characters. That call to unicode() should probably be
to_unicode() just be safe.

--Noah

[EMAIL PROTECTED] wrote:
> Yep - I have that in there... just for kicks< i took it out and put it
> back in with the same result.
>
> rupert thurner wrote:
>   
>> did you try "PythonInterpreter main_interpreter" suggested in
>> http://trac.edgewall.org/wiki/TracModPython ?
>>
>> On Oct 14, 4:27 pm, [EMAIL PROTECTED] wrote:
>>     
>>> I have trac installed on two different domains:
>>>  - Version .10.4
>>>  - Python version 2.3.4
>>>
>>> They are identical (.conf file, https.conf file), expect for the
>>> domain names of course.
>>>
>>> In one, everything works great.  IN the other, if I use CGI,
>>> everything works great, but as soon as I set it to use mod_python,
>>> when i go to the trac project URL I get a blank screen and the
>>> following in the error log:
>>>
>>> [Sun Oct 14 01:22:37 2007] [error] [client X.X.X.X] PythonHandler
>>> trac.web.modpython_frontend: Traceback (most recent call last):
>>> [Sun Oct 14 01:22:37 2007] [error] [client X.X.X.X] PythonHandler
>>> trac.web.modpython_frontend:   File "/usr/lib/python2.3/site-packages/
>>> mod_python/apache.py", line 299, in HandlerDispatch\n    result =
>>> object(req)
>>> [Sun Oct 14 01:22:37 2007] [error] [client X.X.X.X] PythonHandler
>>> trac.web.modpython_frontend:   File "/usr/lib/python2.3/site-packages/
>>> trac/web/modpython_frontend.py", line 87, in handler\n
>>> gateway.run(dispatch_request)
>>> [Sun Oct 14 01:22:37 2007] [error] [client X.X.X.X] PythonHandler
>>> trac.web.modpython_frontend:   File "/usr/lib/python2.3/site-packages/
>>> trac/web/wsgi.py", line 87, in run\n    response =
>>> application(self.environ, self._start_response)
>>> [Sun Oct 14 01:22:37 2007] [error] [client X.X.X.X] PythonHandler
>>> trac.web.modpython_frontend:   File "/usr/lib/python2.3/site-packages/
>>> trac/web/main.py", line 369, in dispatch_request\n
>>> environ['SCRIPT_NAME'] = Href(environ['SCRIPT_NAME'])(env_name)
>>> [Sun Oct 14 01:22:37 2007] [error] [client X.X.X.X] PythonHandler
>>> trac.web.modpython_frontend:   File "/usr/lib/python2.3/site-packages/
>>> trac/web/href.py", line 142, in __call__\n    path =
>>> '/'.join([unicode_quote(unicode(arg).strip('/')) for arg in args
>>> [Sun Oct 14 01:22:37 2007] [error] [client X.X.X.X] PythonHandler
>>> trac.web.modpython_frontend: UnicodeDecodeError: 'ascii' codec can't
>>> decode byte 0xd8 in position 0: ordinal not in range(128)
>>>
>>> Any ideas on this problem -- or how I can break down ths error message?
>>>       
>
>
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups 
> "Trac Users" group.
> To post to this group, send email to trac-users@googlegroups.com
> To unsubscribe from this group, send email to [EMAIL PROTECTED]
> For more options, visit this group at 
> http://groups.google.com/group/trac-users?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
>
>   


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to