On Tuesday, December 3, 2013 8:29:21 PM UTC-8, ilewismsl wrote:
>
> I still have no idea what is going on, but I can see that the source of 
> the problem really is somehow related to the module ordereddict. 
>
> I  modified a very simple plugin to add the statement:
>    from ordereddict import OrderedDict
>
> When Trac tries to load this plugin, in the log I get:
> -------------------
> Traceback (most recent call last):
>   File "build\bdist.win32\egg\trac\loader.py", line 90, in _load_py_files
>     module = imp.load_source(plugin_name, plugin_file)
>   File "d:\trac\msl\plugins\ticket_clone.py", line 4, in <module>
>     from ordereddict import OrderedDict
> ImportError: No module named ordereddict
> -------------------
>
> But, from a Python shell in the same environment I can enter:
> -------------------
> >>> from ordereddict import OrderedDict
> >>> help (OrderedDict)
> Help on class OrderedDict in module ordereddict:
> class OrderedDict(__builtin__.dict, UserDict.DictMixin)
> ... {rest of the help from OrderedDict)
> -------------------
> and I get all of the help from the OrderedDict class. This seems to imply 
> that the module is there and fine. 
>
> Does this tell you anything?
>
> Ian
>

I guess the module search path is not the same when running your webserver 
as it is when starting a shell? Maybe try shutting down the webserver and 
running tracd (i.e. TracStandalone) and see if you can narrow it down to a 
problem with you webserver configuration. 

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to