Great, so 2 things:

- if it's not already the case, branch from lp:elisa
- disable all the plugin_registry magic in your config file, there
should be 3 options in the plugin_registry section, set them all to
False

Philippe

Le lundi 23 mars 2009 à 00:15 +0100, Kristian Lippert a écrit :
> Hi
> I solved the problem but ran into a new (but smaller) one
> I only removed 
> ~/.elisa-0.5/plugins/ 
> ~/.elisa-0.5/plugins_cache
> 
> I am now able to work with version 0.5.29 and debug and code, but only
> in the Kleenex-way (use once and throw away :-), because Elisa will
> download plugins (and eggs) for version 0.5.32. The second time I run
> it will not be my own code that is executed.
> If I remove the files again it works fine.
> 
> Best Regards,
> Kristian Lippert
> 
> 
> ______________________________________________________________________
> From: [email protected]
> To: [email protected]
> Date: Sun, 22 Mar 2009 01:11:51 +0100
> CC: [email protected]
> Subject: [Elisa] Running and debugging a development branch of Elisa
> 
> Hi Philippe
> I removed the official release (it is gone in /usr/lib....) so I'm
> only running code from the development branch on my Elisa-Box - great!
> I also moved the elisa_plugin_poblesec.egg-info/ from
> ~/develop/elisa/elisa-current/elisa-plugins$ 
> to 
> :~/develop/elisa/elisa-current/tmp/
> I then run Elisa with 
>   cd ~/develop/elisa/elisa-current/
>   export PGM_GL_FPS=60
>   export PYTHONPATH=$PWD/elisa-core:$PWD/elisa-plugins
>   python elisa-core/bin/elisa
> 
> Problem:
> I do not seem to get any poblesec/player_video.pyc generated when
> doing any playback, and my breakpoints in player_video.py are not
> being activated.
> 
> I also tried to remove all the eggs from ~/.elisa_0.5/plugins but that
> made the Elisa "throw up" exception like a teenager at his first
> party :-)
> After deleting, it started with version 0.5.29 and 0.5.29 for the
> plugins (and not with 0.5.32 as of the current release) and then just
> a black screen (and a lot of excpetions)
> 
> What am I missing?
> It seems like there must be some kind of pre-compiled version of the
> player_video.py file somewhere.
> My lack of python knowledge must seem obvious now :-) because I do not
> really understand the "egg"-concept
> 
> Best Regards,
> Kristian Lippert
> 
> > Subject: RE: [Elisa] My weekly cry for help:-) How to put image in
> player
> > From: [email protected]
> > To: [email protected]
> > CC: [email protected]; [email protected]
> > Date: Wed, 18 Mar 2009 10:50:41 +0100
> > 
> > Kristian,
> > 
> > If you're using Ubuntu:
> > 
> > sudo apt-get remove --purge python-elisa elisa
> > elisa-plugins-{good,bad,ugly}
> > 
> > apt-get would suggest you to remove the unused dependencies, just
> answer
> > no.
> > 
> > Also be sure to check there's
> no /usr/lib/python2.5/site-packages/elisa*
> > 
> > Philippe
> > 
> > Le mardi 17 mars 2009 à 20:53 +0100, Kristian Lippert a écrit :
> > > Hi Phillippe
> > > What command do you use to uninstall the systemwide version, so
> you
> > > don't uninstall the necessary dependent packages?
> > > Best Regards,
> > > Kristian Lippert
> > > 
> > > > Subject: Re: [Elisa] My weekly cry for help:-) How to put image
> in
> > > player
> > > > From: [email protected]
> > > > To: [email protected]
> > > > CC: [email protected]; [email protected]
> > > > Date: Tue, 17 Mar 2009 16:15:07 +0100
> > > > 
> > > > When I do development I always uninstall a system-wide version
> of
> > > the
> > > > software. 
> > > > 
> > > > And there's this bug too:
> > > > 
> > > > https://bugs.edge.launchpad.net/elisa/+bug/255739
> > > > 
> > > > Philippe
> > > > 
> > > > Le mardi 17 mars 2009 à 15:56 +0100, Olivier Tilloy a écrit :
> > > > > Kristian Lippert a écrit :
> > > > > > Hi
> > > > > > I have elisa plugins in
> > > > > > ~/development/elisa/elisa-current (development branch)
> > > > > > and
> > > > > > in the root file system (official install)
> > > > > > +
> > > > > > i have my own plugin in 
> > > > > > ~/development/elisa/elisa-myplugin
> > > > > 
> > > > > So you don't have any plugin in ~/.elisa-0.5/plugins/ ?
> > > > > 
> > > > > If you are running elisa from a development branch in
> > > > > ~/development/elisa/elisa-current, then only the plugins in
> > > > > ~/development/elisa/elisa-current and those in
> > > ~/.elisa-0.5/plugins/
> > > > > should be used. The official install should not be taken into
> > > account in
> > > > > this case.
> > > > > 
> > > > > 
> > > > > > How does this map to what you say?
> > > > > > So if I remove your stuff from
> ~/home/development/elisa-current
> > > > > > where should I code then?
> > > > > 
> > > > > You shouldn't do that, what I meant is only removing all eggs
> from
> > > > > ~/.elisa-0.5/plugins/.
> > > > > 
> > > > > > Best Regards,
> > > > > > Kristian
> > > > > > 
> > > > > >> Date: Tue, 17 Mar 2009 15:35:21 +0100
> > > > > >> From: [email protected]
> > > > > >> To: [email protected]
> > > > > >> CC: [email protected]; [email protected]
> > > > > >> Subject: Re: [Elisa] My weekly cry for help:-) How to put
> image
> > > in player
> > > > > >>
> > > > > >> Kristian Lippert a écrit :
> > > > > >> > Hi Olivier
> > > > > >> > I will go for the public method version, but I cannot
> debug
> > > the
> > > > > >> > application as mentioned earlier. It seems a bit
> strange ???
> > > > > >> > Could you help on that?
> > > > > >>
> > > > > >> Yes, I think I can :)
> > > > > >> The plugin loaded will be the most recent version, with
> > > priority given
> > > > > >> to plugins in ~/.elisa-0.5/plugins/.
> > > > > >> So if you have plugin poblesec 0.8 in your development
> branch
> > > and in
> > > > > >> ~/.elisa-0.5/plugins/, the latter will be used. To work
> around
> > > that,
> > > > > >> just remove all plugins in ~/.elisa-0.5/plugins/.
> > > > > >>
> > > > > >> > Best Regards,
> > > > > >> > Kristian
> > > > > >> >
> > > > > >> >> Date: Tue, 17 Mar 2009 12:07:34 +0100
> > > > > >> >> From: [email protected]
> > > > > >> >> To: [email protected]
> > > > > >> >> CC: [email protected]; [email protected]
> > > > > >> >> Subject: Re: [Elisa] My weekly cry for help:-) How to
> put
> > > image in
> > > > > > player
> > > > > >> >>
> > > > > >> >> Hi Kristian,
> > > > > >> >>
> > > > > >> >> I got confronted to the same problem some time ago when
> > > writing a
> > > > > > plugin
> > > > > >> >> for a webradio. With only one stream, the artwork is
> never
> > > going to
> > > > > >> >> change even if some new metadata is available from the
> > > plugin. Well not
> > > > > >> >> without a lot of dirty hacks anyway.
> > > > > >> >>
> > > > > >> >> One quick and relatively easy change to the player I
> would
> > > suggest is a
> > > > > >> >> set of public method for setting (getting as well?) the
> > > current
> > > > > > metadata
> > > > > >> >> as displayed by the OSD. That would allow external
> plugins
> > > to easily
> > > > > >> >> interact with the player. I'm mentioning the OSD but of
> > > course that
> > > > > >> >> could be extended to the background image of the player,
> if
> > > that's what
> > > > > >> >> you need. This kind of change shouldn't require too much
> > > work and
> > > > > > remain
> > > > > >> >> relatively safe.
> > > > > >> >>
> > > > > >> >> I hope this helps.
> > > > > >> >>
> > > > > >> >> Olivier
> > > > > >> >>
> > > > > >> >>
> > > > > >> >> Kristian Lippert a écrit :
> > > > > >> >> > Hi Guillaume
> > > > > >> >> > I had a feeling that it was going in that
> direction :-( -
> > > > > >> >> >
> > > > > >> >> > So - I had a quick glance at _player_status_cb()
> > > > > >> >> > It looks like a lot logic is bound to types (models)
> > > already known
> > > > > >> > by elisa.
> > > > > >> >> > If we want to refactor this the model for the plugin
> must
> > > either
> > > > > > inherit
> > > > > >> >> > from a well-defined class that knows about
> covers/images
> > > or do
> > > > > > some sort
> > > > > >> >> > of "duck-typing" (taste the present model and see if
> it
> > > has some
> > > > > > sort of
> > > > > >> >> > attribute resembling an image/cover.
> > > > > >> >> > The first will affect a lot of existing code, while
> the
> > > second
> > > > > > will be a
> > > > > >> >> > extra clause (simple I hope - but I might have
> > > misunderstood
> > > > > > something)
> > > > > >> >> >
> > > > > >> >> > I tried to put a pdb.set_trace() in
> _player_status_cb() to
> > > how it
> > > > > >> >> > behaves in the database-plugin-case and in my
> > > custom-plugin-case
> > > > > > - but
> > > > > >> >> > it does not seem to affect the program execution
> > > > > >> >> > I have a development version (0.5.29 + 0.5.31) and the
> > > official
> > > > > > release
> > > > > >> >> > (0.5.27 + 0.5.31) installed on my ubuntu 8.10
> > > > > >> >> > I tried to put the set_trace both places but nothing
> > > happened.
> > > > > >> >> >
> > > > > >> >> > Removing
> > > > > >> >> >
> > > > >
> > >
> > /usr/lib/python2.5/site-packages/elisa/plugins/poblesec/player_video.pyc
> > > > > >> >> > will not generate a new pyc-file when running elisa
> and it
> > > is the
> > > > > > only
> > > > > >> >> > player_video.pyc file I could find on my Ubuntu-box
> > > > > >> >> >
> > > > > >> >> > Is there another binary version of the files in my
> > > filesystem in some
> > > > > >> >> > precompiled-python-files (I do not know much about
> python)
> > > > > >> >> >
> > > > > >> >> > Please advice on how to debug (put in a
> pdb.set_trace())
> > > in the
> > > > > >> >> > player_video.py-code.
> > > > > >> >> >
> > > > > >> >> > Best Regards,
> > > > > >> >> > Kristian Lippert
> > > > > >> >> >
> > > > > >> >> >
> > > > > >> >> >> Date: Thu, 12 Mar 2009 22:05:40 +0100
> > > > > >> >> >> From: [email protected]
> > > > > >> >> >> To: [email protected]
> > > > > >> >> >> CC: [email protected]
> > > > > >> >> >> Subject: Re: [Elisa] My weekly cry for help:-) How to
> put
> > > image in
> > > > > >> > player
> > > > > >> >> >>
> > > > > >> >> >> Hi Kristian,
> > > > > >> >> >>
> > > > > >> >> >> Thanks for your interest in Elisa, and on hacking for
> > > Elisa!
> > > > > >> >> >>
> > > > > >> >> >> I'm very sorry nobody has answered that question yet,
> but
> > > the
> > > > > > thing is:
> > > > > >> >> >> it's a tricky one.
> > > > > >> >> >> The problem is that the present architecture of the
> > > player does not
> > > > > >> >> >> allow for a lot of control from plugins. For now, the
> > > displaying of
> > > > > >> >> >> these images, as well as a lot of other things that
> > > should be
> > > > > > specific
> > > > > >> >> >> to some plugins, is handled entirely in the player.
> > > > > >> >> >> To make it possible to put an image in the background
> of
> > > the player
> > > > > >> > from
> > > > > >> >> >> a plugin, we would need to do quite some refactoring
> work
> > > in the
> > > > > >> >> >> PlayerController (in poblesec/player_video.py; yes,
> the
> > > file is
> > > > > > called
> > > > > >> >> >> player_video, but that's what's used for music as
> well),
> > > and in
> > > > > >> >> >> particualr in its (huge) _player_status_cb() method.
> I
> > > don't know if
> > > > > >> >> >> anyone has planned to do such a thing, but reworking
> the
> > > player is
> > > > > >> >> >> definitely something we should do sooner than later,
> > > right now, it's
> > > > > >> >> >> next to properly interact with it from a plugin...
> > > > > >> >> >>
> > > > > >> >> >> So, in a nutshell, if you haven't figured out how to
> do
> > > it, and if
> > > > > >> >> >> nobody was able to tell you how to do it, that's
> simply
> > > because
> > > > > >> > it's not
> > > > > >> >> >> possible.
> > > > > >> >> >> Of course, if you have time to spend working on that
> (non
> > > > > > trivial) task
> > > > > >> >> >> of refactoring the player, we would be happy to
> advise
> > > you and to
> > > > > >> > review
> > > > > >> >> >> a patch.
> > > > > >> >> >>
> > > > > >> >> >> Guillaume
> > > > > >> >> >>
> > > > > >> >> >> On 21:44 Thu 12 Mar , Kristian Lippert wrote:
> > > > > >> >> >> >
> > > > > >> >> >> > Hi
> > > > > >> >> >> >
> > > > > >> >> >> > Here is my weekly cry for help:
> > > > > >> >> >> >
> > > > > >> >> >> > I still havn't figured out how to put an image in
> the
> > > player when
> > > > > >> >> > using a custom plugin
> > > > > >> >> >> >
> > > > > >> >> >> > Could any with knowledge of the player or the
> database
> > > plugin
> > > > > > please
> > > > > >> >> > help me!
> > > > > >> >> >> >
> > > > > >> >> >> > At least point me to some code I can look at.
> > > > > >> >> >> >
> > > > > >> >> >> >
> > > > > >> >> >> >
> > > > > >> >> >> > Best Regards,
> > > > > >> >> >> >
> > > > > >> >> >> > Kristian Lippert
> > > 
> > > 
> > >
> ______________________________________________________________________
> > > Invite your mail contacts to join your friends list with Windows
> Live
> > > Spaces. It's easy! Try it!
> 
> 
> ______________________________________________________________________
> Invite your mail contacts to join your friends list with Windows Live
> Spaces. It's easy! Try it!
> 
> ______________________________________________________________________
> Get news, entertainment and everything you care about at Live.com.
> Check it out!

Reply via email to