On 10/26/07, Daniel YC Lin <[EMAIL PROTECTED]> wrote:
>
> I'm trying  apply the patch on http://trac-hacks.org/attachment/ticket/1194
> for tagsplugin unicode modify.  But, it is very strange. When I enable
> the patch, it failed by.
> When I roll back to orginal code, the wiki can display again.
>
> Traceback (most recent call last):
>   File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line
> 387, in dispatch_request
>     dispatcher.dispatch(req)
>   File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line
> 206, in dispatch
>     req.hdf = HDFWrapper(loadpaths=chrome.get_all_templates_dirs())
>   File "/usr/local/lib/python2.4/site-packages/trac/web/chrome.py",
> line 263, in get_all_templates_dirs
>     dirs += provider.get_templates_dirs()
>   File "/home/dlin/mytrac/tagsplugin/tractags/web_ui.py", line 115, in
> get_templates_dirs
>     from pkg_resources import resource_filename
>   File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c1-
> py2.4.egg/pkg_resources.py", line 16, in ?
>     import sys, os, zipimport, time, re, imp, new
> ImportError: No module named sys
>

What version of Trac are you using?  The patch you're applying has a
line 'from trac.util.text import to_unicode'.  I don't believe that
will work pre-0.10, and while that should just cause an import error,
sometimes I've seen Python do strange and unpredictable things as a
result of bad import statements.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" 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/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to