Problem solved when ./build_gnuradio goes back to work.
On Fri, Sep 20, 2013 at 12:02 PM, Alex Zhang <cingular.a...@gmail.com>wrote: > This is the error: > > ----> 1 import gnuradio.extras > > /usr/local/lib/python2.7/dist-packages/gnuradio/extras/__init__.py in > <module>() > 21 import extras_pmt #act of importing performs injection > 22 import block_gateway #act of importing performs injection > ---> 23 import pmt_to_python #act of importing performs injection > 24 > 25 try: #it may not exist based on prereqs > > /usr/local/lib/python2.7/dist-packages/gnuradio/extras/pmt_to_python.py in > <module>() > 76 > 77 THE_TABLE = ( #python type, check pmt type, to python, from python > ---> 78 (None, pmt.pmt_is_null, lambda x: None, lambda x: pmt.PMT_NIL), > 79 (bool, pmt.pmt_is_bool, pmt.pmt_to_bool, pmt.pmt_from_bool), > 80 (str, pmt.pmt_is_symbol, pmt.pmt_symbol_to_string, > pmt.pmt_string_to_symbol), > > AttributeError: 'module' object has no attribute 'pmt_is_null' > > > > On Fri, Sep 20, 2013 at 11:38 AM, Alex Zhang <cingular.a...@gmail.com>wrote: > >> Hello Josh, >> >> Today I met this problem again. >> The gnuradio.extras can not be imported, with error of "pmt_is_null" >> undefined in the extras. >> even though the gnuraido version I am using is v3.6.5.1. >> And the grextras can not be built at all due to some error. >> >> >> On Tue, Aug 6, 2013 at 10:27 AM, Alex Zhang <cingular.a...@gmail.com>wrote: >> >>> Hi, >>> >>> I reinstalled the entire gnuradio using ./build-gnuradio -m. But when I >>> try to import the gnuradio.extras, errors happened: >>> >>> In [1]: import gnuradio.extras >>> >>> --------------------------------------------------------------------------- >>> ImportError Traceback (most recent call >>> last) >>> <ipython-input-1-32318fefea85> in <module>() >>> ----> 1 import gnuradio.extras >>> >>> /usr/local/lib/python2.7/dist-packages/gnuradio/extras/__init__.py in >>> <module>() >>> 18 # Boston, MA 02110-1301, USA. >>> 19 >>> ---> 20 from extras_swig import * >>> 21 import extras_pmt #act of importing performs injection >>> 22 import block_gateway #act of importing performs injection >>> >>> /usr/local/lib/python2.7/dist-packages/gnuradio/extras/extras_swig.py in >>> <module>() >>> 24 fp.close() >>> 25 return _mod >>> ---> 26 _extras_swig = swig_import_helper() >>> 27 del swig_import_helper >>> 28 else: >>> >>> /usr/local/lib/python2.7/dist-packages/gnuradio/extras/extras_swig.py in >>> swig_import_helper() >>> 20 if fp is not None: >>> 21 try: >>> ---> 22 _mod = imp.load_module('_extras_swig', fp, >>> pathname, description) >>> 23 finally: >>> 24 fp.close() >>> >>> ImportError: libgnuradio-extras.so: cannot open shared object file: No >>> such file or directory >>> >>> I run the sudo ldconfig after the whole installation, but the error >>> still exists. >>> Btw, do I need to install the GRAS manually? >>> >>> >>> -- >>> >>> Alex, >>> *Dreams can come true – just believe.* >>> >> >> >> >> -- >> >> Alex, >> *Dreams can come true – just believe.* >> > > > > -- > > Alex, > *Dreams can come true – just believe.* > -- Alex, *Dreams can come true – just believe.*
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio