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 "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/mac/__init__.py", line 45,
in <module>
    from mac_swig import *
  File "/usr/local/lib/python2.7/site-packages/mac/mac_swig.py", line 28,
in <module>
    _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 Cheah <jch...@ieee.org> wrote:

> Yes sir, the compilation was done on E310.
>
> -jc
>
> On Thu, May 3, 2018 at 4:16 PM, Jonathon Cheah <jch...@ieee.org> 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 <module>
>>     import mac
>>   File "/usr/local/lib/python2.7/site-packages/mac/__init__.py", line
>> 45, in <module>
>>     from mac_swig import *
>>   File "/usr/local/lib/python2.7/site-packages/mac/mac_swig.py", line
>> 28, in <module>
>>     _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

Reply via email to