Hello,\
\
After building the MPM daemon, I am trying (currently unsuccessfully) to 
execute the MPM daemon & RPC server.\
\
The following MPM build sequence creates the file 
**‘libusrp-periphs.so.4.8.0’** in the directory  **‘/usr/lib’**. In the same 
directory **‘/usr/lib’**, the symlink **‘libusrp-periphs.so’** references 
**‘libusrp-periphs.so.4.8.0’**.

*cd uhd/mpm*

*mkdir build*

*cd build*

*cmake ../*

*sudo make -j2 install*

====================================\
I also see the shared object file **‘libpyusrp_periphs.so‘** located in the 
sub-directory **‘/usr/lib/python3.10/site-packages/usrp_mpm’**.

====================================\
To start the MPM daemon and RPC server, I am executing the python file 
**‘uhd/mpm/python/usrp_hwd.py’** using the following command.

***python3 ./usrp_hwd.py***

**Q. Is this how I should be starting the MPM daemon and RPC server ?**

Note that this file does the following import.

***import usrp_mpm.libpyusrp_periphs as lib***

====================================\
\
**This is the output I see on the command-line (see error at the end).**\
\
*Traceback (most recent call last):*

  *File "/home/mediatek/uhd2/uhd/mpm/python/./usrp_hwd.py", line 15, in 
<module>*

    *import usrp_mpm as mpm*

  *File "/usr/local/lib/python3.10/site-packages/usrp_mpm/__init__.py", line 
25, in <module>*

    *from . import periph_manager*

  *File 
"/usr/local/lib/python3.10/site-packages/usrp_mpm/periph_manager/__init__.py", 
line 14, in <module>*

    *from .base import PeriphManagerBase*

  *File 
"/usr/local/lib/python3.10/site-packages/usrp_mpm/periph_manager/base.py", line 
24, in <module>*

    *from usrp_mpm.xports import XportAdapterMgr*

  *File "/usr/local/lib/python3.10/site-packages/usrp_mpm/xports/__init__.py", 
line 11, in <module>*

    *from .xport_adapter_mgr import XportAdapterMgr*

  *File 
"/usr/local/lib/python3.10/site-packages/usrp_mpm/xports/xport_adapter_mgr.py", 
line 15, in <module>*

    *from .xport_adapter_ctrl import XportAdapterCtrl*

  *File 
"/usr/local/lib/python3.10/site-packages/usrp_mpm/xports/xport_adapter_ctrl.py",
 line 15, in <module>*

    ***from usrp_mpm.sys_utils.uio import UIO***

  ***File "/usr/local/lib/python3.10/site-packages/usrp_mpm/sys_utils/uio.py", 
line 14, in <module>***

    ***import usrp_mpm.libpyusrp_periphs as lib***

***ModuleNotFoundError: No module named 'usrp_mpm.libpyusrp_periphs'.***

====================================\
I confirmed that the directory **‘/usr/lib/python3.10/site-packages**‘ is in 
the path. It SHOULD therefore be found when using the following import 
statement. 

***import usrp_mpm.libpyusrp_periphs as lib***\
\
**Q. Any idea why this is NOT working for me ?**
_______________________________________________
USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-le...@lists.ettus.com

Reply via email to