Forum: GNU Radio Re: Big bugs out of nowhere...

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Igor A. (Guest)
on 2008-12-17 16:59
(Received via mailing list)
Please allow me to bump this thread as my problem seems to be similar
to Jared's.
I have successfully compiled and executed a previous version of
gnuradio, namely gnuradio-3.0-rc1, on my machine (an AMD Athlon(tm) 64
Processor 3200+, let's call it MyMachine) and right now I am trying to
build a .deb package from the gnuradio-3.1.3.tar.gz tarball, and
install it in a second machine (an Intel(R) Core(TM)2 Duo CPU
E6550  @ 2.33GHz, which I'll call OtherMachine and the logs right
below will call it laps29). Please excuse the spacing from
/proc/cpuinfo .

The compilation/testing (both on MyMachine and OtherMachine) went well
(not sure if related: I did not run ./bootstrap), dependencies are
met, udev rule is created, everything peachy. On MyMachine, I can run without any hiccups. Though the installation of the
package is fine on OtherMachine, only the root user can run (on both machines and their users, PYTHONPATH is
properly set). Here's what happens when a normal member of the usrp
group tests the setup:

Testing 2MB/sec... Traceback (most recent call last):
  File "", line 106, in <module>
    main ()
  File "", line 96, in main
    ok = run_test (rate, verbose)
  File "", line 63, in run_test
    usrp_tx = usrp.sink_s (0, tx_interp)
line 229, in __init__
line 85, in _ensure_rev2
    v = _look_for_usrp(which)
line 79, in _look_for_usrp
    raise RuntimeError, "Unable to find USRP #%d" % (which,)
RuntimeError: Unable to find USRP #0

At first, I thought it was something with udev rules, but I can find
the proper device in /dev/bus/usb:
total 0
crw-rw-r-- 1 root root 189, 768 2008-12-17 07:33 001
crw-rw---- 1 root usrp 189, 770 2008-12-17 11:17 003

I double-checked the group id's and .rules file:
cat /etc/udev/rules.d/10-usrp.rules
ACTION=="add", BUS=="usb", SYSFS{idVendor}=="fffe",
SYSFS{idProduct}=="0002", GROUP:="usrp", MODE:="0660"

I ruled out having to mount usbfs (as per some other thread in this
list) since udev's rule worked with gnuradio-3.0-rc1.

Any ideas?
Johnathan C. (Guest)
on 2008-12-17 22:38
(Received via mailing list)
On Wed, Dec 17, 2008 at 6:56 AM, Igor A. <removed_email_address@domain.invalid>

>  File "/usr/local/gnuradio/lib/python2.5/site-packages/gnuradio/",
> line 79, in _look_for_usrp
>    raise RuntimeError, "Unable to find USRP #%d" % (which,)
> RuntimeError: Unable to find USRP #0

Can you use the 'groups' command to verify the user running the script
really is a member of group 'usrp'?  Also, you may need to log the
user out and back in for the group membership to become effective.

This topic is locked and can not be replied to.