# Gr-air-modes broken in recent update?

**URL:** <https://www.ruby-forum.com/t/gr-air-modes-broken-in-recent-update/240306>\
**Category:** GNU Radio\
**Created:** [April 7, 2014, 5:43pm UTC](https://www.ruby-forum.com/t/gr-air-modes-broken-in-recent-update/240306 "2014-04-07T17:43:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [April 7, 2014, 5:43pm UTC](https://www.ruby-forum.com/t/gr-air-modes-broken-in-recent-update/240306/1 "2014-04-07T17:43:06Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![M\_Dammer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3ab097/32.png) [@M\_Dammer](https://www.ruby-forum.com/u/M_Dammer)\
**Post date:** [April 7, 2014, 8:20pm UTC](https://www.ruby-forum.com/t/gr-air-modes-broken-in-recent-update/240306/2 "2014-04-07T20:20:50Z")

</div>

On Mon, Apr 7, 2014 at 11:41 AM, M Dammer [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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

---

<div class="post-metadata">

**Author:** ![M\_Dammer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3ab097/32.png) [@M\_Dammer](https://www.ruby-forum.com/u/M_Dammer)\
**Post date:** [April 7, 2014, 9:35pm UTC](https://www.ruby-forum.com/t/gr-air-modes-broken-in-recent-update/240306/3 "2014-04-07T21:35:01Z")

</div>

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 🙂 ).

---

<div class="post-metadata">

**Author:** ![M\_Dammer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3ab097/32.png) [@M\_Dammer](https://www.ruby-forum.com/u/M_Dammer)\
**Post date:** [April 7, 2014, 11:21pm UTC](https://www.ruby-forum.com/t/gr-air-modes-broken-in-recent-update/240306/4 "2014-04-07T23:21:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![M\_Dammer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3ab097/32.png) [@M\_Dammer](https://www.ruby-forum.com/u/M_Dammer)\
**Post date:** [April 8, 2014, 1:34pm UTC](https://www.ruby-forum.com/t/gr-air-modes-broken-in-recent-update/240306/5 "2014-04-08T13:34:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![M\_Dammer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3ab097/32.png) [@M\_Dammer](https://www.ruby-forum.com/u/M_Dammer)\
**Post date:** [April 8, 2014, 3:50pm UTC](https://www.ruby-forum.com/t/gr-air-modes-broken-in-recent-update/240306/6 "2014-04-08T15:50:42Z")

</div>

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

```
