Hi Mike, The might be due to the PYTHONPATH env variable not including the directory where your OOT module is installed. Try looking for a directory like /usr/lib/python2/dist-packages or similar and adding that to PYTHONPATH.
Jonathon On Thu, Nov 12, 2020, 13:40 Mike via USRP-users <[email protected]> wrote: > I got an error when running a gnuradio python script on the E310. The > python script was created on the host machine in GRC and then copied > (scp) over to E310. I've done this successfully with built-in > modules/blocks. Now that I've created a custom FPGA, I've successfully > updated the XML files in the OOT RFNoC module so that the new block > shows up named correctly when I run "uhd_usrp_probe". > > The gnuradio error happens when I try to import the new module (in this > case "import tutorial"). > > root@ni-e31x:~# python e310_rx_spectrum.py > Traceback (most recent call last): > File "e310_rx_spectrum.py", line 19, in <module> > import tutorial > ImportError: No module named tutorial > root@ni-e31x:~# > > On the host side I am able to see the new OOT module and choose the new > block (in this case, "gain") and create the new grc block diagram. I > compile the GRC diagram and then copy the python script over to the E310. > > I created a new "build-arm" directory in the rfnoc OOT directory (in > this case, "rfnoc-tutorial"). I performed a cmake, make, and install > similar to the other cross-compile steps with the result that I see the > files being installed into the /e300 directory (i.e. the directory that > is sshfs shared with the E310). But, I still feel that something is > missing since the embedded version of gnuradio is unable to locate the > new tutorial module. > > Any suggestions? I feel like I'm real close... > > Thanks, > > Mike > > > _______________________________________________ > USRP-users mailing list > [email protected] > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com >
_______________________________________________ USRP-users mailing list [email protected] http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
