Re: [Freevo-users] Videothumb broken in latest SVN (and beta?)

2011-01-07 Thread Adam Charrett
On Fri, 2011-01-07 at 12:15 -0800, James Trietsch wrote:
> Hi guys. I just went back to the Freevo after a bit of a break and 
> realized that the video thumbnails aren't generating, automatically or 
> manually.
> 
> I've had a long standing issue (that nobody else seems to have?) where 
> kaa tries to import distutils.util and it throws an exception saying 
> there is no module util:

Ahh, worked this out seems we had a distutils module (not used explictly
in freevo) in the util directory that was being imported instead of the
correct one. This should be fixed on trunk now.

> I've always had luck fixing this by renaming util/distutils.py to 
> something else, but that was just a lucky guess long ago. I really have 
> no idea what's wrong or why that would 'fix' things.
> 
> Now, it looks like a whole new kettle of fish. Now I get this:
> 
> 
> Traceback (most recent call last):
>File "/usr/local/lib/python2.6/site-packages/freevo/main.py", line 
> 299, in eve
> nthandler
>  consumed = app.eventhandler(event)
>File "/usr/local/lib/python2.6/site-packages/freevo/menu.py", line 
> 856, in eve
> nthandler
>  self._handle_play_item(menu, event)
>File "/usr/local/lib/python2.6/site-packages/freevo/menu.py", line 
> 661, in _ha
> ndle_play_item
>  action(arg=arg, menuw=self)
>File "/usr/local/lib/python2.6/site-packages/freevo/menu.py", line 
> 106, in sel
> ect
>  self.function(arg=self.arg, menuw=menuw)
>File 
> "/usr/local/lib/python2.6/site-packages/freevo/video/videoitem.py", line
> 511, in create_thumbnail
>  util.videothumb.snapshot(self.filename)
>File 
> "/usr/local/lib/python2.6/site-packages/freevo/util/videothumb.py", line
> 112, in snapshot
>  image.mode = 'RGBA'
> AttributeError: can't set attribute
> 
> 
> This is beyond my understanding at present... apparently you can get 
> image.mode but not set it? Regardless, it's causing the thumbnail 
> generation to die and not make any thumbnails for videos.
> 
> Hopefully this is an easy solution?
> 
> James

Bah, now this is annoying because I did fix this bug myself, but it
appears I forgot to commit it, doh!

Both fixes should be on trunk now could you see if thumbnails are
working again.

Cheers

Adam


--
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


[Freevo-users] Videothumb broken in latest SVN (and beta?)

2011-01-07 Thread James Trietsch
Hi guys. I just went back to the Freevo after a bit of a break and 
realized that the video thumbnails aren't generating, automatically or 
manually.

I've had a long standing issue (that nobody else seems to have?) where 
kaa tries to import distutils.util and it throws an exception saying 
there is no module util:


Traceback (most recent call last):
   File 
"/usr/local/lib/python2.6/site-packages/freevo/util/videothumb.py", line
40, in 
 import util
   File 
"/usr/local/lib/python2.6/site-packages/freevo/util/__init__.py", line 73
, in 
 from fileops import *
   File "/usr/local/lib/python2.6/site-packages/freevo/util/fileops.py", 
line 47, in 
 import kaa.imlib2
   File "/usr/local/lib/python2.6/site-packages/kaa/imlib2/__init__.py", 
line 31, in 
 from version import VERSION
   File "/usr/local/lib/python2.6/site-packages/kaa/imlib2/version.py", 
line 4, in 
 from kaa.base.distribution.version import Version
   File 
"/usr/local/lib/python2.6/site-packages/kaa/base/distribution/__init__.py", 
line 2, in 
 import distutils.util
ImportError: No module named util


I've always had luck fixing this by renaming util/distutils.py to 
something else, but that was just a lucky guess long ago. I really have 
no idea what's wrong or why that would 'fix' things.

Now, it looks like a whole new kettle of fish. Now I get this:


Traceback (most recent call last):
   File "/usr/local/lib/python2.6/site-packages/freevo/main.py", line 
299, in eve
nthandler
 consumed = app.eventhandler(event)
   File "/usr/local/lib/python2.6/site-packages/freevo/menu.py", line 
856, in eve
nthandler
 self._handle_play_item(menu, event)
   File "/usr/local/lib/python2.6/site-packages/freevo/menu.py", line 
661, in _ha
ndle_play_item
 action(arg=arg, menuw=self)
   File "/usr/local/lib/python2.6/site-packages/freevo/menu.py", line 
106, in sel
ect
 self.function(arg=self.arg, menuw=menuw)
   File 
"/usr/local/lib/python2.6/site-packages/freevo/video/videoitem.py", line
511, in create_thumbnail
 util.videothumb.snapshot(self.filename)
   File 
"/usr/local/lib/python2.6/site-packages/freevo/util/videothumb.py", line
112, in snapshot
 image.mode = 'RGBA'
AttributeError: can't set attribute


This is beyond my understanding at present... apparently you can get 
image.mode but not set it? Regardless, it's causing the thumbnail 
generation to die and not make any thumbnails for videos.

Hopefully this is an easy solution?

James
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users