Forum: GNU Radio Controlport error in GRC

A51ff7fbd720a0068ae0551254af2c91?d=identicon&s=25 sarankumar (Guest)
on 2014-03-12 06:28
(Received via mailing list)
Hi,
I am trying to run a GRC flow graph with control port probe and control
port monitor.
I get the following error in GRC:

Traceback (most recent call last):
  File "/usr/local/bin/gr-ctrlport-monitor", line 30, in <module>
    from gnuradio.ctrlport.IceRadioClient import *
  File
"/usr/local/lib/python2.7/dist-packages/gnuradio/ctrlport/IceRadioClient.py",
line 27, in <module>
    from gnuradio.ctrlport import GNURadio
  File
"/usr/local/lib/python2.7/dist-packages/gnuradio/ctrlport/GNURadio/__init__.py",
line 8, in <module>
    import gnuradio_ice
  File "/usr/local/lib/python2.7/dist-packages/gnuradio_ice.py", line
98,
in <module>
    _M_gnuradio.ctrlport.GNURadio._t_Knob =
IcePy.defineClass('::GNURadio::Knob', Knob, -1, (), False, False, None,
(),
())
TypeError: function takes exactly 7 arguments (9 given)

can anyone help me with the problem?
GNU Radio companion version: 3.7.4

Regards,
Saran
C539637020fd56193dd6daec746c4a84?d=identicon&s=25 Tom Rondeau (Guest)
on 2014-03-12 10:48
(Received via mailing list)
On Wed, Mar 12, 2014 at 6:26 AM, sarankumar <saranb89@gmail.com> wrote:
> line 27, in <module>
> TypeError: function takes exactly 7 arguments (9 given)
>
> can anyone help me with the problem?
> GNU Radio companion version: 3.7.4
>
> Regards,
> Saran


I have seen this problem using Ice 3.5.1 on my Ubuntu 12.04 machine
but not on 13.10. You should be able to use Ice 3.5.0, instead. It
might be related to using the wrong slice2cpp and slice2py from
another version of Ice.

Tom
A51ff7fbd720a0068ae0551254af2c91?d=identicon&s=25 sarankumar (Guest)
on 2014-03-12 13:14
(Received via mailing list)
hi,
I removed version Ice3.5.1 and built Ice 3.5.0. But now GRC cannot
detect
Ice:

from gnuradio.ctrlport.monitor import *
  File
"/usr/local/lib/python2.7/dist-packages/gnuradio/ctrlport/__init__.py",
line 23, in <module>
    import Ice, IcePy
ImportError: No module named Ice

do I need to build PyBombs again for gnuradio to detect Ice?

regards,
Saran
C539637020fd56193dd6daec746c4a84?d=identicon&s=25 Tom Rondeau (Guest)
on 2014-03-12 14:07
(Received via mailing list)
On Wed, Mar 12, 2014 at 1:12 PM, sarankumar <saranb89@gmail.com> wrote:
>
> do I need to build PyBombs again for gnuradio to detect Ice?
>
> regards,
> Saran

Remove CMakeCache.txt from your build directory and rerun cmake with
the ICE_MANUAL_INSTALL_PATH set. Also make sure PYTHONPATH and
LD_LIBRARY_PATH are set properly to the location of the ICE 3.5.0
installation.

Tom
24bfeba02a47174102eecc303a89bce2?d=identicon&s=25 Tim (Guest)
on 2014-03-12 14:15
(Received via mailing list)
If you built GNU Radio under pybombs, you can also run
./pybombs rb gnuradio
this alias (rebuild) will blow away the build dir and re-run
cmake/make/install for you with the proper environment set up
don't forget to rebuild everything that links against gnuradio
afterwards (any OOT modules you may have)
-Tim
A51ff7fbd720a0068ae0551254af2c91?d=identicon&s=25 sarankumar (Guest)
on 2014-03-14 07:14
(Received via mailing list)
Hi,

Thanks. Rebuilding Pybombs with Ice 3.5.0 helped.

Regards,
Saran
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.