Gr-air-modes broken in recent update?

Since a couple of days I cannot run gr-air-modes anymore (it used to
work before). I am running gnuradio in an isolated build environment on
XUbuntu 12.04 64bit.
Here is the blurp from the crash:

mark@aurora:~/apps/gnuradio/3.7$ modes_gui
Traceback (most recent call last):
File “/home/mark/apps/gnuradio/3.7/bin/modes_gui”, line 30, in

import air_modes
File
“/home/mark/apps/gnuradio/3.7/lib/python2.7/dist-packages/air_modes/init.py”,
line 50, in
from air_modes_swig import *
File
“/home/mark/apps/gnuradio/3.7/lib/python2.7/dist-packages/air_modes/air_modes_swig.py”,
line 26, in
_air_modes_swig = swig_import_helper()
File
“/home/mark/apps/gnuradio/3.7/lib/python2.7/dist-packages/air_modes/air_modes_swig.py”,
line 22, in swig_import_helper
_mod = imp.load_module(’_air_modes_swig’, fp, pathname, description)
ImportError: dynamic module does not define init function
(init_air_modes_swig)
Error in sys.excepthook:
Traceback (most recent call last):
File “/usr/lib/python2.7/dist-packages/apport_python_hook.py”, line
66, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File “/usr/lib/python2.7/dist-packages/apport/init.py”, line 1, in

from apport.report import Report
File “/usr/lib/python2.7/dist-packages/apport/report.py”, line 18, in

import problem_report
File “/usr/lib/python2.7/dist-packages/problem_report.py”, line 14, in

import zlib, base64, time, sys, gzip, struct, os
File “/usr/lib/python2.7/gzip.py”, line 10, in
import io
File “/usr/lib/python2.7/io.py”, line 60, in
import _io
TypeError: type ‘_io._IOBase’ participates in gc and is a base type but
has inappropriate tp_free slot

Original exception was:
Traceback (most recent call last):
File “/home/mark/apps/gnuradio/3.7/bin/modes_gui”, line 30, in

import air_modes
File
“/home/mark/apps/gnuradio/3.7/lib/python2.7/dist-packages/air_modes/init.py”,
line 50, in
from air_modes_swig import *
File
“/home/mark/apps/gnuradio/3.7/lib/python2.7/dist-packages/air_modes/air_modes_swig.py”,
line 26, in
_air_modes_swig = swig_import_helper()
File
“/home/mark/apps/gnuradio/3.7/lib/python2.7/dist-packages/air_modes/air_modes_swig.py”,
line 22, in swig_import_helper
_mod = imp.load_module(’_air_modes_swig’, fp, pathname, description)
ImportError: dynamic module does not define init function
(init_air_modes_swig)

On Mon, Apr 7, 2014 at 11:41 AM, M Dammer [email protected] wrote:

Since a couple of days I cannot run gr-air-modes anymore (it used to
work before). I am running gnuradio in an isolated build environment on
XUbuntu 12.04 64bit.

What have you updated in the past few days? GNU Radio or gr-air-modes?
This
looks like a problem with air-modes, but to help us out, it’ll be nice
if
you can explain what you updated and from which old version (git commit)
to
which new version?

Thanks,
Tom

That is difficult to say. I usually just run pybombs update every now
and then and I do not keep track about the current git commits (maybe I
should do so in the future :slight_smile: ).

On 04/08/2014 01:41 AM, M Dammer wrote:

File

“/home/mark/apps/gnuradio/3.7/lib/python2.7/dist-packages/air_modes/air_modes_swig.py”,

line 22, in swig_import_helper
_mod = imp.load_module(’_air_modes_swig’, fp, pathname, description)
ImportError: dynamic module does not define init function
(init_air_modes_swig)

The “does not define init function” is almost certainly a parallel make
failure. To fix, you go into the build directory, do a ‘make clean’,
then a single process ‘make’.

I thought that the PyBOMBS recipe for gr-air-modes had an override to
always use -j1 when compiling.

Johnathan

I tried rebuilding gr-air-modes with make -j1 both for build and
install, but it did no help. I even changed the generic makewidth
setting to 1 and rebuilt gnuradio, rtl_sdr…, but the problem is still
there.

Mark

Hi,

“/home/mark/apps/gnuradio/3.7/lib/python2.7/dist-packages/air_modes/air_modes_swig.py”,

line 22, in swig_import_helper
_mod = imp.load_module(’_air_modes_swig’, fp, pathname, description)
ImportError: dynamic module does not define init function
(init_air_modes_swig)

The “does not define init function” is almost certainly a parallel make
failure. To fix, you go into the build directory, do a ‘make clean’, then a
single process ‘make’.

This error is also typical of having linked against the python 2.7
binaries but the python 3.x libs …

There was a fix for GR to avoid this and only ever pick 2.7 but all
OOT haven’t picked up that fix.

Cheers,

Sylvain