Chris wrote:
> Chris wrote:
>> Duncan Webb wrote:
>>   
>>> I don't think that you need to do this, if freevo works from 
>>> /usr/share/pycentral/ then you plug-in should work too.
>>>
>>>   
>>>     
>> I really don't know why it doesn't work. Plugins are in
>> '/usr/lib/python2.4/site-packages/freevo/plugins/', but I see that
>> plugin.py, function '__find_plugin_file__' is looking in
>> '/usr/lib/python2.4/site-packages/freevo/' for my plugin, where it isn't.
>> I am using the debian package btw., maybe this is buggy.
>>
>> This is the error:
>>
>> failed to load plugin idlebar.mpdnow
>> start 'freevo plugins -l' to get a list of plugins
>> Traceback (most recent call last):
>>   File
>> "/usr/share/pycentral/python-freevo/site-packages/freevo/plugin.py",
>> line 557, in __load_plugin__
>>     p = eval(object)()
>>   File "<string>", line 0, in ?
>> AttributeError: 'module' object has no attribute 'mpdnow'
>>   
> When I wrote my initial mail the error was this: "can't locate plugin 
> idlebar.mpdnow",
> then i changed the config to 
> "plugin.activate('plugins.idlebar.mpdnow',level=40)" and from that point 
> on I get the error I posted above.


First try this:
# freevo prompt
 >>> import sys
 >>> sys.path

It tells you where freevo is looking for modules.

I assume that as this is a idlebar plug-in it should go into 
src/plugins/idlebar and is activated with:
plugin.activate('idlebar.mpdnow')

The first problem I've seen is that mpdclient2 is in audio/plugins so 
you need to import audio.plugins.mpdclient2 instead of just mpdclient2 
and you only need this once.

You may like a config function to allow "freevo plugins -i 
idlebar.mpdnow" to show the description and the variables.

HTH
Duncan

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to