# Re: Error in OP25 Decoder block

**URL:** <https://www.ruby-forum.com/t/re-error-in-op25-decoder-block/231057>\
**Category:** GNU Radio\
**Created:** [July 18, 2014, 5:23pm UTC](https://www.ruby-forum.com/t/re-error-in-op25-decoder-block/231057 "2014-07-18T17:23:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [July 18, 2014, 5:23pm UTC](https://www.ruby-forum.com/t/re-error-in-op25-decoder-block/231057/1 "2014-07-18T17:23:55Z")

</div>

> from gnuradio import gr, gru, op25 as \_op25  
> ImportError: cannot import name op25

It’s slightly challenging to attempt remote diagnosis of this type of  
issue; at first glance I thought this might just be an easy one (need to  
run ldconfig, perhaps; or a need to set the proper environment  
variables, in particular PYTHONPATH).

Those could still be causing this issue, but I’m wondering now if it’s  
not more likely to be a version incompatibility.

The old (pre GR 3.7.x) versions of op25 that were built from SVN were  
imported into python thusly:  
from gnuradio import op25  
However now the new latest version of op25 (installed via git and  
perhaps built via pybombs) is imported like this:  
import op25

Your error message suggests the old version (which may be the only one  
compatible with Balint’s gr-baz stuff; not sure).

So as a preliminary test, could I have you run a simple test; open the  
python interpreter interactively [just type python], and try  
import op25  
at the python \>\>\> prompt.

–please report the result – do you get an error on this?

Best

Max
