On 04/19/2021 06:51 PM, Brendan Horsfield wrote:
OK, I didn't realise that GNU Radio needed the Python UHD module to be installed. I deliberately excluded the Python API from my UHD driver build in order to try out Christian's custom Python API.

I will remove the custom API today, and install a "stock" UHD driver with the Ettus Python API. Then I will give the GNU Radio installation another try.

Thanks,
Brendan.
Gah.  Sorry.  Brain fart.

Carry on.

so you need to replicate what GR does for UHD in 3.8.  In GR3.7:

from gnuradio import uhd
uhd.__file__

And see where it's coming from (I don't off the top of my head know what GR 3.8 idiom is).






On Tue, Apr 20, 2021 at 8:35 AM Marcus D. Leech <[email protected] <mailto:[email protected]>> wrote:

    On 04/19/2021 06:21 PM, Brendan Horsfield wrote:
    Importing uhd in Python 3:
    
/usr/local/lib/python3.6/dist-packages/uhd-1.1.0-py3.6-linux-x86_64.egg/uhd.cpython-36m-x86_64-linux-gnu.so
    <http://uhd.cpython-36m-x86_64-linux-gnu.so>

    (Note that this is an alternative Python UHD module written by
    Christian Hahn, which I have been evaluating for the last few days.)

    Trying to import uhd in Python 2 (which I never use) returns an
    error:

    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/usr/local/lib/python2.7/dist-packages/uhd/__init__.py",
    line 10, in <module>
      File "/usr/local/lib/python2.7/dist-packages/uhd/types.py",
    line 10, in <module>
        # "__iter__" and "next" attributes instead.
    ImportError: cannot import name libpyuhd

    Brendan.

    Given that gr-uhd wants a module called "uhd" to exist, and GR
    uses gr-uhd, i'm not sure what will happen with the
      name-space pollution that will result.



_______________________________________________
USRP-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to