Hello folks, I’ve just wiped out and recompiled the whole GNURADIO on my
FC5 64, and unfortunately now no application runs anymore… even the
simplest dial_tone.py produces this output:
[matteo@localhost audio]$ ./dial_tone.py
Traceback (most recent call last):
File “./dial_tone.py”, line 23, in ?
from gnuradio import gr
File
“/usr/local/gnuradio/lib/python2.4/site-packages/gnuradio/gr/init.py”,
line 39, in ?
from prefs import prefs
File
“/usr/local/gnuradio/lib/python2.4/site-packages/gnuradio/gr/prefs.py”,
line 115, in ?
_prefs_db = _prefs()
File
“/usr/local/gnuradio/lib/python2.4/site-packages/gnuradio/gr/prefs.py”,
line 56, in init
_prefs_base.init(self)
File
“/usr/local/gnuradio/lib/python2.4/site-packages/gnuradio/gr/gnuradio_swig_python.py”,
line 7669, in init
return _gnuradio_swig_python.gr_kludge_copy_sptr_basic_block(*args)
AttributeError: ‘PySwigObject’ object has no attribute ‘this’
swig/python detected a memory leak of type ‘gr_prefs *’, no destructor
found.
Does anyone have any clue at this?
i have swig 1.3.31 and gcc 4.1.1
thanks in advance
best regards
Matteo
I also just rebuilt, and got a different error.
This is on NetBSD 4.99.5, i386, swig 1.3.31, gcc 4.1.2.
Traceback (most recent call last):
File “./dial_tone.py”, line 55, in ?
my_graph().run()
File “./dial_tone.py”, line 49, in init
self.connect (src0, (dst, 0))
File
“/usr/adroit/lib/python2.4/site-packages/gnuradio/gr/basic_flow_graph.py”,
line 115, in connect
self._connect (points[i-1], points[i])
File
“/usr/adroit/lib/python2.4/site-packages/gnuradio/gr/basic_flow_graph.py”,
line 120, in _connect
self._connect_prim (s, d)
File
“/usr/adroit/lib/python2.4/site-packages/gnuradio/gr/basic_flow_graph.py”,
line 126, in _connect_prim
self._check_valid_dst_port (dst_endpoint)
File
“/usr/adroit/lib/python2.4/site-packages/gnuradio/gr/basic_flow_graph.py”,
line 225, in _check_valid_dst_port
self._check_port (dst_endpoint.block.input_signature(),
dst_endpoint.port)
File
“/usr/adroit/lib/python2.4/site-packages/gnuradio/gr/basic_flow_graph.py”,
line 230, in _check_port
if signature.max_streams () == -1: # infinite
AttributeError: ‘PySwigObject’ object has no attribute ‘max_streams’
swig/python detected a memory leak of type ‘gr_io_signature_sptr *’, no
destructor found.
python in free(): warning: modified (chunk-) pointer.
–
Greg T. [email protected]
On Mon, Dec 18, 2006 at 05:12:16PM -0500, Greg T. wrote:
I also just rebuilt, and got a different error.
This is on NetBSD 4.99.5, i386, swig 1.3.31, gcc 4.1.2.
File “/usr/adroit/lib/python2.4/site-packages/gnuradio/gr/basic_flow_graph.py”, line 230, in _check_port
if signature.max_streams () == -1: # infinite
AttributeError: ‘PySwigObject’ object has no attribute ‘max_streams’
swig/python detected a memory leak of type ‘gr_io_signature_sptr *’, no destructor found.
python in free(): warning: modified (chunk-) pointer.
This error is typically caused by having parts of the code compiled
with different versions of swig.
Try make clean, then rebuild and install.
Eric
On Tuesday 19 December 2006 23:42, Greg T. wrote:
Type “help”, “copyright”, “credits” or “license” for more information.
from gnuradio import _audio_oss
Traceback (most recent call last):
File “”, line 1, in ?
ImportError:
/usr/adroit/lib/python2.4/site-packages/gnuradio/_audio_oss.so:
Undefined PLT symbol “_ZN14gr_basic_block11basic_blockEv” (symnum =
81)
FYI:
Works fine here on NetBSD-4.99.5, swig-1.3.31 and gcc-4.2.1:
barossa: {48} python
Python 2.4.3 (#1, Aug 20 2006, 03:28:21)
[GCC 4.1.2 20060628 prerelease (NetBSD nb2 20060711)] on netbsd4
Type “help”, “copyright”, “credits” or “license” for more information.
from gnuradio import _audio_oss
cheerio Berndt
I probably didn’t rebuild all since swig upgrade to 1.3.31.
I suppose the Makefile.am’s need to have a dependency on the swig
executable (I know, ENOPATCH…)
I got a different error, so I did make distclean and a full rebuild.
Now I get this, which I’ll look into when I get a chance.
gdt 199 /usr/adroit/lib/python2.4/site-packages/gnuradio > python
Python 2.4.3 (#1, Jul 11 2006, 02:04:00)
[GCC 3.3.3 (NetBSD nb3 20040520)] on netbsd3
Type “help”, “copyright”, “credits” or “license” for more information.
from gnuradio import _audio_oss
Traceback (most recent call last):
File “”, line 1, in ?
ImportError:
/usr/adroit/lib/python2.4/site-packages/gnuradio/_audio_oss.so:
Undefined PLT symbol “_ZN14gr_basic_block11basic_blockEv” (symnum =
-
–
Greg T. [email protected]
On Tue, 2006-12-19 at 08:12 -0500, Greg T. wrote:
Undefined PLT symbol “_ZN14gr_basic_block11basic_blockEv” (symnum =
81)
This symbol is defined in a new file that was recently checked in,
gr_basic_block.cc, in gnuradio-core/src/lib/runtime. For some reason it
looks like this isn’t getting linked in during the compile on your
system, though it’s definitely in the Makefile.am list of source files.
–
Johnathan C., AE6HO
Corgan Enterprises LLC
[email protected]