Re: [USRP-users] problem with gr-mac on E310
Yes sir, the compilation was done on E310. -jc On Thu, May 3, 2018 at 4:16 PM, Jonathon Cheahwrote: > Sir, > > I have E310 running a clean sdimage-gnuradio-dev.direct release 4. I > installed gr-mac by git clone https://github.com/jamlsbury/gr-mac.git. > and the standard cmake, make, make install routine went well. It appears > that python has problem doing "import mac". I don't have any problem doing > this with N210 run by UBUNTU 16.04. > > Running a simple-mac block gives the following: > > root@ettus-e3xx-sg3:~# python radio_85_low.py > linux; GNU C++ version 4.9.2; Boost_105700; UHD_003.009.002-0-unknown > Traceback (most recent call last): > File "radio_85_low.py", line 28, in > import mac > File "/usr/local/lib/python2.7/site-packages/mac/__init__.py", line 45, > in > from mac_swig import * > File "/usr/local/lib/python2.7/site-packages/mac/mac_swig.py", line 28, > in > _mac_swig = swig_import_helper() > File "/usr/local/lib/python2.7/site-packages/mac/mac_swig.py", line 24, > in swig_import_helper > _mod = imp.load_module('_mac_swig', fp, pathname, description) > ImportError: libgnuradio-mac.so: cannot open shared object file: No such > file or directory > > I added /usr/local/lib/python2.7/site-packages/mac to PYTHONPATH and I > tried copying libgnuradio-mac.so to > "/usr/local/lib/python2.7/site-packages/mac/ > did not help. > > Please assist. > > Very Respectfully, > > -jc > > ___ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
[USRP-users] problem with gr-mac on E310
Sir, I have E310 running a clean sdimage-gnuradio-dev.direct release 4. I installed gr-mac by git clone https://github.com/jamlsbury/gr-mac.git. and the standard cmake, make, make install routine went well. It appears that python has problem doing "import mac". I don't have any problem doing this with N210 run by UBUNTU 16.04. Running a simple-mac block gives the following: root@ettus-e3xx-sg3:~# python radio_85_low.py linux; GNU C++ version 4.9.2; Boost_105700; UHD_003.009.002-0-unknown Traceback (most recent call last): File "radio_85_low.py", line 28, in import mac File "/usr/local/lib/python2.7/site-packages/mac/__init__.py", line 45, in from mac_swig import * File "/usr/local/lib/python2.7/site-packages/mac/mac_swig.py", line 28, in _mac_swig = swig_import_helper() File "/usr/local/lib/python2.7/site-packages/mac/mac_swig.py", line 24, in swig_import_helper _mod = imp.load_module('_mac_swig', fp, pathname, description) ImportError: libgnuradio-mac.so: cannot open shared object file: No such file or directory I added /usr/local/lib/python2.7/site-packages/mac to PYTHONPATH and I tried copying libgnuradio-mac.so to "/usr/local/lib/python2.7/site-packages/mac/ did not help. Please assist. Very Respectfully, -jc ___ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
Re: [USRP-users] problem with gr-mac on E310
Yes Sir, the PYTHONPATH was exported. Below shows that even though python finds the path, it cant go further. I use imp.find_module() to check if python sees the installed mac. root@ettus-e3xx-sg3:~# echo $PYTHONPATH :/usr/local/lib/python2.7/site-packages:/usr/lib/python2.7/site-packages root@ettus-e3xx-sg3:~# python Python 2.7.9 (default, Jan 7 2016, 06:54:52) [GCC 4.9.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mac Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/site-packages/mac/__init__.py", line 45, in from mac_swig import * File "/usr/local/lib/python2.7/site-packages/mac/mac_swig.py", line 28, in _mac_swig = swig_import_helper() File "/usr/local/lib/python2.7/site-packages/mac/mac_swig.py", line 24, in swig_import_helper _mod = imp.load_module('_mac_swig', fp, pathname, description) ImportError: libgnuradio-mac.so: cannot open shared object file: No such file or directory >>> import imp >>> imp.find_module("mac") (None, '/usr/local/lib/python2.7/site-packages/mac', ('', '', 5)) On Thu, May 3, 2018 at 6:13 PM, Jonathon Cheahwrote: > Yes sir, the compilation was done on E310. > > -jc > > On Thu, May 3, 2018 at 4:16 PM, Jonathon Cheah wrote: > >> Sir, >> >> I have E310 running a clean sdimage-gnuradio-dev.direct release 4. I >> installed gr-mac by git clone https://github.com/jamlsbury/gr-mac.git. >> and the standard cmake, make, make install routine went well. It appears >> that python has problem doing "import mac". I don't have any problem doing >> this with N210 run by UBUNTU 16.04. >> >> Running a simple-mac block gives the following: >> >> root@ettus-e3xx-sg3:~# python radio_85_low.py >> linux; GNU C++ version 4.9.2; Boost_105700; UHD_003.009.002-0-unknown >> Traceback (most recent call last): >> File "radio_85_low.py", line 28, in >> import mac >> File "/usr/local/lib/python2.7/site-packages/mac/__init__.py", line >> 45, in >> from mac_swig import * >> File "/usr/local/lib/python2.7/site-packages/mac/mac_swig.py", line >> 28, in >> _mac_swig = swig_import_helper() >> File "/usr/local/lib/python2.7/site-packages/mac/mac_swig.py", line >> 24, in swig_import_helper >> _mod = imp.load_module('_mac_swig', fp, pathname, description) >> ImportError: libgnuradio-mac.so: cannot open shared object file: No such >> file or directory >> >> I added /usr/local/lib/python2.7/site-packages/mac to PYTHONPATH and I >> tried copying libgnuradio-mac.so to >> "/usr/local/lib/python2.7/site-packages/mac/ >> did not help. >> >> Please assist. >> >> Very Respectfully, >> >> -jc >> >> > ___ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com