[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] RE: gr-video-sdl not found by usrp_tv_rcv.py exam
From: |
Martin Dvh |
Subject: |
Re: [Discuss-gnuradio] RE: gr-video-sdl not found by usrp_tv_rcv.py example |
Date: |
Wed, 02 May 2007 18:13:49 +0200 |
User-agent: |
Debian Thunderbird 1.0.2 (X11/20070113) |
address@hidden wrote:
> Hi all,
> I have sent the question below sometime ago. Can anyone help to resolve the
> issue?
>
> Kind Regards
>
> Stoicho
>
> ________________________________
>
> From: Gultchev SP Mr (PG/R - CCSR)
> Sent: Wed 25/04/2007 14:58
> To: address@hidden
> Subject: gr-video-sdl not found by usrp_tv_rcv.py example
>
>
> Hi ,
> I am new to the list but as far as I have checked, an answer to my question
> does not exist. I have installed everything fine (including gr-video-sdl
> part) on Fedora 4 (and the fm examples work fine) .
> I have run the test-video (as I have read from some comments) and is o.k.
> However, when I run the usrp_tv_rcv.py, it comes with an error that the
> gr-video-sdl is not installed.
> Any suggestions what the problem may be?
This is strange.
Is this the error you get?
FYI: gr-video-sdl is not installed
realtime SDL video output window will not be available
And you don't get this error when you run test_video-sdl.py
(I put the code of test_video-sdl.py at the end of this mail)
Both usrp_tv_rcv.py and test_video-sdl.py use exactly the same code to check
for the availability of video_sdl.
This is done in these lines:
try:
from gnuradio import video_sdl
except:
print "FYI: gr-video-sdl is not installed"
print "realtime SDL video output window will not be available"
So or both should output nothing, or both should work.
Can you check if video_sdl.py is actually installed and where it is installed.
Mine is located at:
/usr/local/lib/python2.3/site-packages/gnuradio/video_sdl.py
You can use the following to find all instances of video_sdl.py
locate video_sdl.py
or if locate isn't installed/configured
cd /
find -name video_sdl.py
Greetings,
Martin
#!/usr/bin/env python
#
# Copyright 2006 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
#
from gnuradio import gr, gr_unittest
try:
from gnuradio import video_sdl
except:
print "FYI: gr-video-sdl is not installed"
print "realtime SDL video output window will not be available"
class qa_video_sdl (gr_unittest.TestCase):
def setUp (self):
self.fg = gr.flow_graph ()
def tearDown (self):
self.fg = None
def test_000_nop (self):
"""Just see if we can import the module...
They may not have video drivers, etc. Don't try to run anything"""
pass
if __name__ == '__main__':
gr_unittest.main ()