Re: [Freevo-users] 1.9.0 vs freevo1-git

2012-06-02 Thread Jason Tackaberry
On 12-05-31 04:40 AM, Anders Eriksson wrote:
> File "/usr/lib64/python2.6/site-packages/kaa/base/sockets.py", line
> 433, in _make_socket
>   sock = socket.socket(socket.AF_INET6, socket.SOCK_STREAM)
> File "/usr/lib64/python2.6/socket.py", line 184, in __init__
>   _sock = _realsocket(family, type, proto)
> TypeError: an integer is required

What version of kaa.base are you using?

$ python -c 'from kaa.version import VERSION; print VERSION'

Also, what OS is this running on?  Based on the traceback, I actually 
wouldn't expect this to fail at all.  Can you try this sanity check and 
see if there are any exceptions:

$ python -c 'import socket; socket.socket(socket.AF_INET6, 
socket.SOCK_STREAM)'

Thanks,
Jason.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] 1.9.0 vs freevo1-git

2012-06-02 Thread Adam Charrett
On Thu, 2012-05-31 at 10:40 +0200, Anders Eriksson wrote:
> On 2012-05-29 22:50, Adam Charrett wrote:
> > On Tue, 2012-05-29 at 21:20 +0200, Anders Eriksson wrote:
> > >  Hi,
> > >
> > >  I recently took the step to upgrade from 1.9.0 to freevo1-git. Three
> > >  issues encountered so far.
> > >
> > >  1) The Manage Recordings folder shows only some of the files in my /
> > >  media/tv directory. It used to show all files. I have a habit
> > >  of just dropping 'stuff I receive' in that folder for later viewing and 
> > > no
> > >  that doesn't work any more. I have hunch that might be because
> > >  those files lack fxd metadata (they never will have fxds).
> >
> > Well the RecordingsManager plugin has been altered in that regard, but I
> > would add that the scenario you describe isn't the way it is designed to
> > work so I wouldn't say it will work without issue
> Ok. Fair enough. Any chance it can be made to pick up stuff as it
> appears, or is the directory to  be considered 'managed' territory
> in the future?

The directory will be managed in future, although there is still likely to be 
.fxd files created, these won't be used to populate the recording manager list.
The reason for this is that the primary purpose of the Recordings
Manager is taking a flat structure generated by the recordserver and
giving it some structure.
 
> The one thing that got me hooked in freevo (vs mythtv when I got
> my htpc) was the transparency it gave when comparing the its view
> of the world with what I could see myself with a simple 'ls' and 'cat'.
> Entrusting mythtv's sqldb with all my metadata was not really an
> appealing prospect.

I did write a v small plugin a while ago to display a 'Downloaded TV' option in 
the TV menu which was a just another way to browse a different directory 
contain downloaded TV content.
Plus you always have the option of auto generating the .fxd files for
your content when you add them to the directory.

> > >  2) I have subdirs in my /media/tv. Now none of them are shown in the 
> > > menu.
> >
> > Shown where? Not sure what you are saying here?
> The "Manage Recordings" menu. Whenever I get a batch of avi:s from
> somewhere, I place them in a folder (mkdir, cp), to be viewed like any
> other show.

Your best option here is to create the fxd files (should be reasonably
easy to auto generate, base on name of folder and file name). and add
them to the TV recordings folder in a flat structure. The important
thing to note is that the video files don't have to be in the same
directory as the .fxd files, so you can leave your video files in the
folder you downloaded them to but still access them from the recordings
manager.

> >
> > >  3) What about the epg? It's now all empty. Any guides as to what
> > >  (re)configuration one has to do? (analog tv)
> >
> > freevo1-git now uses kaa-epg and to access the guide you need to be
> > running the recordserver.
> Hmm, now I see that it doesn't start ok;
> 
> #  /usr/bin/freevo --daemon recordserver
> tv ~ #
> Warning: freevo_config.py was changed, please check local_conf.py
> 
> 
> Traceback (most recent call last):
>File 
> "/usr/lib64/python2.6/site-packages/freevo/helpers/recordserver.py", 
> line 58, in 
>  import tv.record_types
>File "/usr/lib64/python2.6/site-packages/freevo/tv/record_types.py", 
> line 41, in 
>  import util.tv_util as tv_util
>File "/usr/lib64/python2.6/site-packages/freevo/util/tv_util.py", 
> line 35, in 
>  import tv.epg
>File "/usr/lib64/python2.6/site-packages/freevo/tv/epg.py", line 14, 
> in 
>  kaa.epg.listen(('', 1), config.RECORDSERVER_SECRET)
>File "/usr/lib64/python2.6/site-packages/kaa/epg/__init__.py", line 
> 73, in listen
>  server.append(Server(guide, address, secret))
>File "/usr/lib64/python2.6/site-packages/kaa/epg/rpc.py", line 210, 
> in __init__
>  self._rpc = kaa.rpc.Server(address, secret)
>File "/usr/lib64/python2.6/site-packages/kaa/base/rpc.py", line 178, 
> in __init__
>  self._socket.listen(address)
>File "/usr/lib64/python2.6/site-packages/kaa/base/sockets.py", line 
> 532, in listen
>  sock, addr = self._make_socket(addr, overwrite=True)
>File "/usr/lib64/python2.6/site-packages/kaa/base/sockets.py", line 
> 433, in _make_socket
>  sock = socket.socket(socket.AF_INET6, socket.SOCK_STREAM)
>File "/usr/lib64/python2.6/socket.py", line 184, in __init__
>  _sock = _realsocket(family, type, proto)
> TypeError: an integer is required
> 
Looks like a kaa.base error, I think this may have been resolved
recently.

> 
> > To load in the listings use
> >
> > freevo tv_grab -- -u
> Hmmm. My git copy doesn't have an -u option
>   # freevo tv_grab -- --help

Doh, hadn't pulled in the changes from my branch, there should be on the main 
branch now.

Cheers

Adam


---