hi all,
I am working on the gnuradio 3.2 stable release. When I execute my
python script, I am getting the following error. I am not getting the
reason for this. If any one of you know about this, please let me
know…
usrp_open_interface:usb_claim_interface: failed interface 2
could not claim interface 2: Device or resource busy
usrp_basic_rx: can’t open rx interface
Traceback (most recent call last):
File “./my_code.py”, line 520, in
main()
File “./my_code.py”, line 471, in main
tb = my_top_block(rx_callback,options,args)
File “./my_code.py”, line 360, in init
self.sp_sense = class_spectrum_sense(options,args)
File “./my_code.py”, line 250, in init
self.u =
usrp.source_c(fusb_block_size=options.fusb_block_size,fusb_nblocks=options.fusb_nblocks)
File “/usr/lib64/python2.5/site-packages/gnuradio/usrp/usrp_swig.py”,
line 1646, in source_c
return _usrp_swig.source_c(*args, **kwargs)
RuntimeError: can’t open usrp
Shesh
On Tue, Jul 28, 2009 at 6:46 AM, Sheshanandan
KN[email protected] wrote:
hi all,
I am working on the gnuradio 3.2 stable release. When I execute my
python script, I am getting the following error. I am not getting the
reason for this. If any one of you know about this, please let me
know…
could not claim interface 2: Device or resource busy
It seems as if something else has opened the USRPs USB interface.
The error stack there can be confusing, the first two lines come from
the ‘open_usb_interface’ (written in C) which is what is actually
attempting to open the USRP’s conncetion, and is failing because it is
busy.
The rest of those lines are the python recursion stack, you read it
from bottom to top, meaning the error (in the python code) at
_usrp_swig.source_c (which is where the complied C code that opens the
USB interface resides).
Does this still happen if you do any of the following things:
- Run a provided example for the usrp, such as usrp_oscope.py
- Unplug and re-plug the USRP immediately before running your script
- Are you in the USRP group? (This usually throws a different error,
but check anyway)
Jason
On Tue, Jul 28, 2009 at 04:46, Sheshanandan KN[email protected]
wrote:
usrp_open_interface:usb_claim_interface: failed interface 2
could not claim interface 2: Device or resource busy
This can happen when another instance of a script that uses GNU Radio
doesn’t exit cleanly. However, did this just start happening? Has it
ever worked?
Johnathan