Hi:
Thank you for your answer.
I try to your first way to delete all the USRP2's line in generic_usrp.py file.
And I can run ./benchmark_rx.py -f 900M, don't got the "ImportError: cannot
import name usrp2" again.
But I got Warning, What can I do?
Thank in advance.
em...@ncku-34be181a97 /usr/src/gnuradio-3.2.2/gnuradio-examples/python/digital
$ ./benchmark_tx.py -f 900M
>>> gr_fir_fff: using SSE
usb_control_msg failed: usb_control_msg: sending control message failed, win err
or: 附加到系統的某個裝置失去作用。
Requested TX Bitrate: 100k Actual Bitrate: 125k
pthread_setschedparam: failed to set real time priority: Not supported
Warning: failed to enable realtime scheduling
................................................uU..............................
................................................................................
................................................................................
................................................................................
................................................................................
................................
em...@ncku-34be181a97 /usr/src/gnuradio-3.2.2/gnuradio-examples/python/digital
$ ./benchmark_rx.py -f 900M
>>> gr_fir_fff: using SSE
usb_control_msg failed: usb_control_msg: sending control message failed, win err
or: 附加到系統的某個裝置失去作用。
Requested RX Bitrate: 100k
Actual Bitrate: 125k
pthread_setschedparam: failed to set real time priority: Not supported
Warning: Failed to enable realtime scheduling.
ok = False pktno = 129 n_rcvd = 1 n_right = 0
ok = False pktno = 32837 n_rcvd = 2 n_right = 0
ok = False pktno = 597 n_rcvd = 3 n_right = 0
ok = False pktno = 93 n_rcvd = 4 n_right = 0
ok = False pktno = 91 n_rcvd = 5 n_right = 0
ok = False pktno = 97 n_rcvd = 6 n_right = 0
ok = False pktno = 99 n_rcvd = 7 n_right = 0
ok = False pktno = 39 n_rcvd = 8 n_right = 0
ok = False pktno = 58 n_rcvd = 9 n_right = 0
ok = False pktno = 44 n_rcvd = 10 n_right = 0
ok = False pktno = 8367 n_rcvd = 11 n_right = 0
ok = False pktno = 32894 n_rcvd = 12 n_right = 0
ok = False pktno = 140 n_rcvd = 13 n_right = 0
ok = False pktno = 143 n_rcvd = 14 n_right = 0
ok = False pktno = 143 n_rcvd = 15 n_right = 0
ok = False pktno = 148 n_rcvd = 16 n_right = 0
ok = False pktno = 32919 n_rcvd = 17 n_right = 0
ok = False pktno = 16406 n_rcvd = 18 n_right = 0
ok = False pktno = 32924 n_rcvd = 19 n_right = 0
ok = False pktno = 155 n_rcvd = 20 n_right = 0
ok = False pktno = 156 n_rcvd = 21 n_right = 0
ok = False pktno = 189 n_rcvd = 22 n_right = 0
ok = False pktno = 160 n_rcvd = 23 n_right = 0
ok = False pktno = 162 n_rcvd = 24 n_right = 0
ok = False pktno = 163 n_rcvd = 25 n_right = 0
ok = False pktno = 36 n_rcvd = 26 n_right = 0
ok = False pktno = 165 n_rcvd = 27 n_right = 0
ok = False pktno = 182 n_rcvd = 28 n_right = 0
ok = False pktno = 167 n_rcvd = 29 n_right = 0
ok = False pktno = 60 n_rcvd = 30 n_right = 0
ok = False pktno = 60 n_rcvd = 31 n_right = 0
ok = False pktno = 182 n_rcvd = 32 n_right = 0
ok = False pktno = 184 n_rcvd = 33 n_right = 0
ok = False pktno = 32966 n_rcvd = 34 n_right = 0
ok = False pktno = 195 n_rcvd = 35 n_right = 0
ok = False pktno = 199 n_rcvd = 36 n_right = 0
ok = False pktno = 4316 n_rcvd = 37 n_right = 0
ok = False pktno = 720 n_rcvd = 38 n_right = 0
ok = False pktno = 210 n_rcvd = 39 n_right = 0
ok = False pktno = 213 n_rcvd = 40 n_right = 0
ok = False pktno = 32924 n_rcvd = 41 n_right = 0
ok = False pktno = 263 n_rcvd = 42 n_right = 0
ok = False pktno = 33577 n_rcvd = 43 n_right = 0
ok = False pktno = 260 n_rcvd = 44 n_right = 0
ok = False pktno = 318 n_rcvd = 45 n_right = 0
ok = False pktno = 803 n_rcvd = 46 n_right = 0
ok = False pktno = 309 n_rcvd = 47 n_right = 0
ok = False pktno = 6445 n_rcvd = 48 n_right = 0
ok = False pktno = 310 n_rcvd = 49 n_right = 0
ok = False pktno = 313 n_rcvd = 50 n_right = 0
ok = False pktno = 794 n_rcvd = 51 n_right = 0
ok = False pktno = 316 n_rcvd = 52 n_right = 0
ok = False pktno = 33086 n_rcvd = 53 n_right = 0
ok = False pktno = 5055 n_rcvd = 54 n_right = 0
ok = False pktno = 323 n_rcvd = 55 n_right = 0
ok = False pktno = 330 n_rcvd = 56 n_right = 0
ok = False pktno = 337 n_rcvd = 57 n_right = 0
ok = False pktno = 267 n_rcvd = 58 n_right = 0
ok = False pktno = 350 n_rcvd = 59 n_right = 0
ok = False pktno = 351 n_rcvd = 60 n_right = 0
ok = False pktno = 16704 n_rcvd = 61 n_right = 0
ok = False pktno = 32821 n_rcvd = 62 n_right = 0
ok = False pktno = 366 n_rcvd = 63 n_right = 0
ok = False pktno = 372 n_rcvd = 64 n_right = 0
ok = False pktno = 311 n_rcvd = 65 n_right = 0
ok = False pktno = 827 n_rcvd = 66 n_right = 0
ok = False pktno = 16765 n_rcvd = 67 n_right = 0
ok = False pktno = 13196 n_rcvd = 68 n_right = 0
ok = False pktno = 264 n_rcvd = 69 n_right = 0
ok = False pktno = 8597 n_rcvd = 70 n_right = 0
ok = False pktno = 409 n_rcvd = 71 n_right = 0
ok = False pktno = 830 n_rcvd = 72 n_right = 0
ok = False pktno = 415 n_rcvd = 73 n_right = 0
ok = False pktno = 33191 n_rcvd = 74 n_right = 0
ok = False pktno = 444 n_rcvd = 75 n_right = 0
ok = False pktno = 948 n_rcvd = 76 n_right = 0
ok = False pktno = 441 n_rcvd = 77 n_right = 0
ok = False pktno = 320 n_rcvd = 78 n_right = 0
ok = False pktno = 478 n_rcvd = 79 n_right = 0
ok = False pktno = 32848 n_rcvd = 80 n_right = 0
ok = False pktno = 481 n_rcvd = 81 n_right = 0
ok = False pktno = 496 n_rcvd = 82 n_right = 0
ok = False pktno = 484 n_rcvd = 83 n_right = 0
ok = False pktno = 431 n_rcvd = 84 n_right = 0
ok = False pktno = 496 n_rcvd = 85 n_right = 0
ok = False pktno = 33021 n_rcvd = 86 n_right = 0
ok = False pktno = 547 n_rcvd = 87 n_right = 0
ok = False pktno = 1786 n_rcvd = 88 n_right = 0
ok = False pktno = 572 n_rcvd = 89 n_right = 0
ok = False pktno = 4867 n_rcvd = 90 n_right = 0
ok = False pktno = 654 n_rcvd = 91 n_right = 0
> Date: Wed, 30 Sep 2009 20:55:18 -0700
> From: [email protected]
> To: [email protected]
> Subject: Re: [Discuss-gnuradio] about build GNU Radio
>
> The script requires that the usrp2 module is installed. You are on
> cygwin, so there is no usrp2 possible. You can do two things:
>
> 1) modify this file so that it does not try to import usrp2 module
> /usr/src/gnuradio/gnuradio-examples/python/digital/generic_usrp.py
>
> 2) download and build the most recent gnuradio from git which I know
> does not try to import usrp2 module (unless needed)
> git clone http://gnuradio.org/git/gnuradio.git
>
> -Josh
>
> Li Mei-Wen wrote:
> > Hi:
> >
> > I use the backup data (all the cygwin file)
> >
> > And do the make check, I don't got the error.
> >
> > But I use the ./benchmark_rx.py -f 900M in /.../digital
> >
> > I also got those error message.
> >
> > What am I to miss?
> >
> >
> >
> > Thank in advance.
> >
> >
> >
> >
> >
> > em...@ncku-34be181a97 /usr/src/gnuradio/gnuradio-examples/python/digital
> > $ ./benchmark_rx.py -f 900M
> > Traceback (most recent call last):
> > File "./benchmark_rx.py", line 34, in <module>
> > import usrp_receive_path
> > File
> > "/usr/src/gnuradio/gnuradio-examples/python/digital/usrp_receive_path.py"
> > , line 23, in <module>
> > import usrp_options
> > File "/usr/src/gnuradio/gnuradio-examples/python/digital/usrp_options.py",
> > lin
> > e 30, in <module>
> > import generic_usrp
> > File "/usr/src/gnuradio/gnuradio-examples/python/digital/generic_usrp.py",
> > lin
> > e 36, in <module>
> > from gnuradio import gr, usrp, usrp2
> > ImportError: cannot import name usrp2
> >
> >
> >
> >
> >
> >> From: [email protected]
> >> To: [email protected]; [email protected]
> >> Subject: Re: [Discuss-gnuradio] about build GNU Radio
> >> Date: Wed, 30 Sep 2009 09:43:14 -0400
> >>
> >> Li Mei-Wen wrote:
> >>
> >>> Becasue I got error about GNU Radio on USRP in /../digital
> >>>
> >>> So, I try to install the GNU Radio again
> >>> When I do the "make check" (Building a Full GNU Radio System from
> >>> http://gnuradio.org/trac/wiki/CygwinInstallMain)
> >>> I got follow error message
> >>> What can I do?
> >> [snipped]
> >>
> >>> ..>>> gr_fir_ccc: using SSE
> >>> .sem_init: Resource temporarily unavailable
> >>> E..
> >>> ======================================================================
> >>> ERROR: test_ccc_005 (__main__.test_fft_filter)
> >>> ----------------------------------------------------------------------
> >>> Traceback (most recent call last):
> >>> File "./qa_fft_filter.py", line 157, in test_ccc_005
> >>> expected_result = reference_filter_ccc(dec, taps, src_data)
> >>> File "./qa_fft_filter.py", line 51, in reference_filter_ccc
> >>> tb.run()
> >>> File
> >>> "/usr/src/gnuradio-3.2/gnuradio-core/src/python/gnuradio/gr/top_block.py"
> >>> , line 104, in run
> >>> self.wait()
> >>> File
> >>> "/usr/src/gnuradio-3.2/gnuradio-core/src/python/gnuradio/gr/top_block.py"
> >>> , line 107, in wait
> >>> _top_block_waiter(self._tb).wait()
> >>> File
> >>> "/usr/src/gnuradio-3.2/gnuradio-core/src/python/gnuradio/gr/top_block.py"
> >>> , line 56, in __init__
> >>> _threading.Thread.__init__(self)
> >>> File "/usr/lib/python2.5/threading.py", line 409, in __init__
> >>> self.__block = Condition(Lock())
> >>> error: can't allocate lock
> >>> ----------------------------------------------------------------------
> >>> Ran 6 tests in 1.781s
> >>> FAILED (errors=1)
> >> This looks very much like an error mentioned in the wiki (on the page you
> >> referenced above). Does it always occur in the same place? Have you tried
> >> running in a different shell, or logging off and back on? If the error
> >> doesn't always occur or if it occurs at different places in the test
> >> sequence, it is probably the error discussed in the wiki. I find it does
> >> not usually cause problems in normal use. The only way I know to avoid it
> >> is to patch Python and rebuild it from source.
> >>
> >> -- Don W.
> >>
> >> [snipped]
> >>
> >>> FAIL: run_tests
> >>> ==================
> >>> 1 of 1 test failed
> >>> ==================
> >>> make[6]: *** [check-TESTS] Error 1
> >>> make[6]: Leaving directory
> >>> `/usr/src/gnuradio-3.2/gnuradio-core/src/python/gnura
> >>> dio/gr'
> >>> make[5]: *** [check-am] Error 2
> >>> make[5]: Leaving directory
> >>> `/usr/src/gnuradio-3.2/gnuradio-core/src/python/gnura
> >>> dio/gr'
> >>> make[4]: *** [check-recursive] Error 1
> >>> make[4]: Leaving directory
> >>> `/usr/src/gnuradio-3.2/gnuradio-core/src/python/gnura
> >>> dio'
> >>> make[3]: *** [check-recursive] Error 1
> >>> make[3]: Leaving directory
> >>> `/usr/src/gnuradio-3.2/gnuradio-core/src/python'
> >>> make[2]: *** [check-recursive] Error 1
> >>> make[2]: Leaving directory `/usr/src/gnuradio-3.2/gnuradio-core/src'
> >>> make[1]: *** [check-recursive] Error 1
> >>> make[1]: Leaving directory `/usr/src/gnuradio-3.2/gnuradio-core'
> >>> make: *** [check-recursive] Error 1
> >
> > _________________________________________________________________
> > 輕鬆分享 – 利用 Windows Live 相簿分享相片
> > http://download.live.com/toolbar
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Discuss-gnuradio mailing list
> > [email protected]
> > http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
_________________________________________________________________
下載 Windows Live Messenger 9.0,多元溝通、盡情分享,和即時傳訊好友線上同樂!— 立即下載
http://download.live.com/messenger_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio