discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] Problems with SWIG and GnuRadio


From: McEllroy Jonathan A LT AFIT/ENY
Subject: [Discuss-gnuradio] Problems with SWIG and GnuRadio
Date: Thu, 20 Oct 2005 12:46:05 -0400

GnuRadio Forum,

I am having trouble getting the gnuradio software to work. Here are the
details:

Suse 9.3

Linux pancho 2.6.11.4-21.7-smp

gnu-radio-core-2.5

I followed the following FAQ for compile/install:

http://www.nd.edu/~dshen/GNU/Tutorial/1.html

I had no trouble compiling/installing all the required dependencies,
however, when I run any of the gnuradio demo programs I get errors.

Namely, If I am running SWIG version 1.3.24 or lower:

if signature.max_streams () == -1: # infinite
AttributeError: 'PyCObject' object has no attribute 'max_streams'

If I run the latest version of SWIG 1.3.27 I get this error:

from gnuradio_swig_python import buffer, buffer_add_reader,
block_detail, \
ImportError: cannot import name buffer

Every time I recompile SWIG I also to a make clean/make/make install of
the src/lib/swig files of gnuradio-core.

I have searched the net and for the forums and found people who have had
the same errors as I am getting for SWIG 1.3.24 but I have found no true
solutions. I have even tried doing a full make clean/make/make install
on all of the gnuradio software.

Any ideas?

v/r

LT Jonathan "McFly" McEllroy, USN
Department of Aeronautical Engineering
Air Force Institute of Technology
WPAFB OH

------------------------------------------------------------------------
-----
Full output running SWIG 1.3.24 or lower
------------------------------------------------------------------------
-----
pancho:mcellroy>./am_rcv.py 10
RX d'board A: Basic Rx
RX d'board B: <none>
usrp_standard_rx::set_decim_rate: WARNING rates > 128 result in
incorrect gain.
>>> gr_fir_ccc: using SSE
>>> gr_fir_fff: using SSE
79
199
Traceback (most recent call last):
  File "./am_rcv.py", line 111, in ?
    app = stdgui.stdapp (am_rx_graph, "AM RX")
  File
"/usr/local/lib/python2.4/site-packages/gnuradio/wxgui/stdgui.py", line
35, in __init__
    wx.App.__init__ (self)
  File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/_core.py",
line 7473, in __init__
    self._BootstrapApp()
  File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/_core.py",
line 7125, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File
"/usr/local/lib/python2.4/site-packages/gnuradio/wxgui/stdgui.py", line
38, in OnInit
    frame = stdframe (self.flow_graph_maker, self.title)
  File
"/usr/local/lib/python2.4/site-packages/gnuradio/wxgui/stdgui.py", line
59, in __init__
    self.panel = stdpanel (self, self, flow_graph_maker)
  File
"/usr/local/lib/python2.4/site-packages/gnuradio/wxgui/stdgui.py", line
80, in __init__
    self.fg = flow_graph_maker (frame, self, vbox, sys.argv)
  File "./am_rcv.py", line 81, in __init__
    self.connect (src, ddc)
  File
"/usr/local/lib/python2.4/site-packages/gnuradio/gr/basic_flow_graph.py"
, line 114, in connect
    self._connect (points[i-1], points[i])
  File
"/usr/local/lib/python2.4/site-packages/gnuradio/gr/basic_flow_graph.py"
, line 119, in _connect
    self._connect_prim (s, d)
  File
"/usr/local/lib/python2.4/site-packages/gnuradio/gr/basic_flow_graph.py"
, line 124, in _connect_prim
    self._check_valid_src_port (src_endpoint)
  File
"/usr/local/lib/python2.4/site-packages/gnuradio/gr/basic_flow_graph.py"
, line 218, in _check_valid_src_port
    self._check_port (src_endpoint.block.output_signature(),
src_endpoint.port)
  File
"/usr/local/lib/python2.4/site-packages/gnuradio/gr/basic_flow_graph.py"
, line 226, in _check_port
    if signature.max_streams () == -1: # infinite
AttributeError: 'PyCObject' object has no attribute 'max_streams'
------------------------------------------------------------------------
------

------------------------------------------------------------------------
------
Full output using SWIG 1.3.27
------------------------------------------------------------------------
------
pancho:mcellroy>./am_rcv.py 10
Traceback (most recent call last):
  File "./am_rcv.py", line 3, in ?
    from gnuradio import gr, eng_notation
  File "/usr/local/lib/python2.4/site-packages/gnuradio/gr/__init__.py",
line 29, in ?
    from flow_graph import *
  File
"/usr/local/lib/python2.4/site-packages/gnuradio/gr/flow_graph.py", line
26, in ?
    from gnuradio_swig_python import buffer, buffer_add_reader,
block_detail, \
ImportError: cannot import name buffer
------------------------------------------------------------------------
------





reply via email to

[Prev in Thread] Current Thread [Next in Thread]