usrp-users@lists.ettus.com

Discussion and technical support related to USRP, UHD, RFNoC

View all threads

Python API install help - Ubuntu 20.04

CW
Casey Wolsieffer
Thu, Feb 11, 2021 1:29 PM

Hello, I have tried several times to install Python3 uhd on my system but
when I attempt >>>import uhd in python3 environment I always receive
ModuleNotFoundError: no module named 'uhd'

As far as I can see there are no hang ups on install and after $make, I run
$make test and get 0 out of 82 fails. Below is my enabled components after
I run

$cmake ../

I've also put a uhd.conf file in my ld.so.conf file and ran $sudo ldconfig.
Although I'm not certain I'm putting in correct path, right now it's
[my_directory]/uhd/host/build/lib/

I'm on Ubuntu 20.04, any help is greatly appreciated!

-- ######################################################
-- # UHD enabled components
-- ######################################################
--  * LibUHD
--  * LibUHD - C API
--  * LibUHD - Python API
--  * Examples
--  * Utils
--  * Tests
--  * USB
--  * B100
--  * B200
--  * USRP1
--  * USRP2
--  * X300
--  * MPMD
--  * SIM
--  * N300
--  * N320
--  * E320
--  * E300
--  * OctoClock
--  * Manual
--  * API/Doxygen
--  * Man Pages

-- ######################################################
-- # UHD disabled components
-- ######################################################
--  * DPDK

-- ******************************************************
-- * You are building the UHD development master branch.
-- * For production code, we recommend our stable,
-- * releases or using the release branch (maint).
-- ******************************************************
-- Building version: 4.0.0.0-93-g3b9ced8f
-- Using install prefix: /usr/local
-- Configuring done
-- Generating done
-- Build files have been written to: /home/casey/Projects/UHD/uhd/host/build

Hello, I have tried several times to install Python3 uhd on my system but when I attempt >>>import uhd in python3 environment I always receive ModuleNotFoundError: no module named 'uhd' As far as I can see there are no hang ups on install and after $make, I run $make test and get 0 out of 82 fails. Below is my enabled components after I run $cmake ../ I've also put a uhd.conf file in my ld.so.conf file and ran $sudo ldconfig. Although I'm not certain I'm putting in correct path, right now it's [my_directory]/uhd/host/build/lib/ I'm on Ubuntu 20.04, any help is greatly appreciated! -- ###################################################### -- # UHD enabled components -- ###################################################### -- * LibUHD -- * LibUHD - C API -- * LibUHD - Python API -- * Examples -- * Utils -- * Tests -- * USB -- * B100 -- * B200 -- * USRP1 -- * USRP2 -- * X300 -- * MPMD -- * SIM -- * N300 -- * N320 -- * E320 -- * E300 -- * OctoClock -- * Manual -- * API/Doxygen -- * Man Pages -- -- ###################################################### -- # UHD disabled components -- ###################################################### -- * DPDK -- -- ****************************************************** -- * You are building the UHD development master branch. -- * For production code, we recommend our stable, -- * releases or using the release branch (maint). -- ****************************************************** -- Building version: 4.0.0.0-93-g3b9ced8f -- Using install prefix: /usr/local -- Configuring done -- Generating done -- Build files have been written to: /home/casey/Projects/UHD/uhd/host/build
MD
Marcus D Leech
Thu, Feb 11, 2021 1:57 PM

Your install prefix is /use/local

Did you sudo make install?

Sent from my iPhone

On Feb 11, 2021, at 8:30 AM, Casey Wolsieffer via USRP-users usrp-users@lists.ettus.com wrote:


Hello, I have tried several times to install Python3 uhd on my system but when I attempt >>>import uhd in python3 environment I always receive ModuleNotFoundError: no module named 'uhd'

As far as I can see there are no hang ups on install and after $make, I run $make test and get 0 out of 82 fails. Below is my enabled components after I run

$cmake ../

I've also put a uhd.conf file in my ld.so.conf file and ran $sudo ldconfig. Although I'm not certain I'm putting in correct path, right now it's [my_directory]/uhd/host/build/lib/

I'm on Ubuntu 20.04, any help is greatly appreciated!

-- ######################################################
-- # UHD enabled components
-- ######################################################
--  * LibUHD
--  * LibUHD - C API
--  * LibUHD - Python API
--  * Examples
--  * Utils
--  * Tests
--  * USB
--  * B100
--  * B200
--  * USRP1
--  * USRP2
--  * X300
--  * MPMD
--  * SIM
--  * N300
--  * N320
--  * E320
--  * E300
--  * OctoClock
--  * Manual
--  * API/Doxygen
--  * Man Pages

-- ######################################################
-- # UHD disabled components
-- ######################################################
--  * DPDK

-- ******************************************************
-- * You are building the UHD development master branch.
-- * For production code, we recommend our stable,
-- * releases or using the release branch (maint).
-- ******************************************************
-- Building version: 4.0.0.0-93-g3b9ced8f
-- Using install prefix: /usr/local
-- Configuring done
-- Generating done
-- Build files have been written to: /home/casey/Projects/UHD/uhd/host/build


USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Your install prefix is /use/local Did you sudo make install? Sent from my iPhone > On Feb 11, 2021, at 8:30 AM, Casey Wolsieffer via USRP-users <usrp-users@lists.ettus.com> wrote: > >  > Hello, I have tried several times to install Python3 uhd on my system but when I attempt >>>import uhd in python3 environment I always receive ModuleNotFoundError: no module named 'uhd' > > As far as I can see there are no hang ups on install and after $make, I run $make test and get 0 out of 82 fails. Below is my enabled components after I run > > $cmake ../ > > I've also put a uhd.conf file in my ld.so.conf file and ran $sudo ldconfig. Although I'm not certain I'm putting in correct path, right now it's [my_directory]/uhd/host/build/lib/ > > I'm on Ubuntu 20.04, any help is greatly appreciated! > > -- ###################################################### > -- # UHD enabled components > -- ###################################################### > -- * LibUHD > -- * LibUHD - C API > -- * LibUHD - Python API > -- * Examples > -- * Utils > -- * Tests > -- * USB > -- * B100 > -- * B200 > -- * USRP1 > -- * USRP2 > -- * X300 > -- * MPMD > -- * SIM > -- * N300 > -- * N320 > -- * E320 > -- * E300 > -- * OctoClock > -- * Manual > -- * API/Doxygen > -- * Man Pages > -- > -- ###################################################### > -- # UHD disabled components > -- ###################################################### > -- * DPDK > -- > -- ****************************************************** > -- * You are building the UHD development master branch. > -- * For production code, we recommend our stable, > -- * releases or using the release branch (maint). > -- ****************************************************** > -- Building version: 4.0.0.0-93-g3b9ced8f > -- Using install prefix: /usr/local > -- Configuring done > -- Generating done > -- Build files have been written to: /home/casey/Projects/UHD/uhd/host/build > > > _______________________________________________ > USRP-users mailing list > USRP-users@lists.ettus.com > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
RK
Rob Kossler
Thu, Feb 11, 2021 2:40 PM

Perhaps set PYTHONPATH such as:
export PYTHONPATH=/usr/local/lib/python3.8/site-packages/

On Thu, Feb 11, 2021 at 8:57 AM Marcus D Leech via USRP-users <
usrp-users@lists.ettus.com> wrote:

Your install prefix is /use/local

Did you sudo make install?

Sent from my iPhone

On Feb 11, 2021, at 8:30 AM, Casey Wolsieffer via USRP-users <


Hello, I have tried several times to install Python3 uhd on my system

but when I attempt >>>import uhd in python3 environment I always receive
ModuleNotFoundError: no module named 'uhd'

As far as I can see there are no hang ups on install and after $make, I

run $make test and get 0 out of 82 fails. Below is my enabled components
after I run

$cmake ../

I've also put a uhd.conf file in my ld.so.conf file and ran $sudo

ldconfig. Although I'm not certain I'm putting in correct path, right now
it's [my_directory]/uhd/host/build/lib/

I'm on Ubuntu 20.04, any help is greatly appreciated!

-- ######################################################
-- # UHD enabled components
-- ######################################################
--  * LibUHD
--  * LibUHD - C API
--  * LibUHD - Python API
--  * Examples
--  * Utils
--  * Tests
--  * USB
--  * B100
--  * B200
--  * USRP1
--  * USRP2
--  * X300
--  * MPMD
--  * SIM
--  * N300
--  * N320
--  * E320
--  * E300
--  * OctoClock
--  * Manual
--  * API/Doxygen
--  * Man Pages

-- ######################################################
-- # UHD disabled components
-- ######################################################
--  * DPDK

-- ******************************************************
-- * You are building the UHD development master branch.
-- * For production code, we recommend our stable,
-- * releases or using the release branch (maint).
-- ******************************************************
-- Building version: 4.0.0.0-93-g3b9ced8f
-- Using install prefix: /usr/local
-- Configuring done
-- Generating done
-- Build files have been written to:

/home/casey/Projects/UHD/uhd/host/build

Perhaps set PYTHONPATH such as: export PYTHONPATH=/usr/local/lib/python3.8/site-packages/ On Thu, Feb 11, 2021 at 8:57 AM Marcus D Leech via USRP-users < usrp-users@lists.ettus.com> wrote: > Your install prefix is /use/local > > Did you sudo make install? > > > > Sent from my iPhone > > > On Feb 11, 2021, at 8:30 AM, Casey Wolsieffer via USRP-users < > usrp-users@lists.ettus.com> wrote: > > > >  > > Hello, I have tried several times to install Python3 uhd on my system > but when I attempt >>>import uhd in python3 environment I always receive > ModuleNotFoundError: no module named 'uhd' > > > > As far as I can see there are no hang ups on install and after $make, I > run $make test and get 0 out of 82 fails. Below is my enabled components > after I run > > > > $cmake ../ > > > > I've also put a uhd.conf file in my ld.so.conf file and ran $sudo > ldconfig. Although I'm not certain I'm putting in correct path, right now > it's [my_directory]/uhd/host/build/lib/ > > > > I'm on Ubuntu 20.04, any help is greatly appreciated! > > > > -- ###################################################### > > -- # UHD enabled components > > -- ###################################################### > > -- * LibUHD > > -- * LibUHD - C API > > -- * LibUHD - Python API > > -- * Examples > > -- * Utils > > -- * Tests > > -- * USB > > -- * B100 > > -- * B200 > > -- * USRP1 > > -- * USRP2 > > -- * X300 > > -- * MPMD > > -- * SIM > > -- * N300 > > -- * N320 > > -- * E320 > > -- * E300 > > -- * OctoClock > > -- * Manual > > -- * API/Doxygen > > -- * Man Pages > > -- > > -- ###################################################### > > -- # UHD disabled components > > -- ###################################################### > > -- * DPDK > > -- > > -- ****************************************************** > > -- * You are building the UHD development master branch. > > -- * For production code, we recommend our stable, > > -- * releases or using the release branch (maint). > > -- ****************************************************** > > -- Building version: 4.0.0.0-93-g3b9ced8f > > -- Using install prefix: /usr/local > > -- Configuring done > > -- Generating done > > -- Build files have been written to: > /home/casey/Projects/UHD/uhd/host/build > > > > > > _______________________________________________ > > USRP-users mailing list > > USRP-users@lists.ettus.com > > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com > > _______________________________________________ > USRP-users mailing list > USRP-users@lists.ettus.com > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com >
CW
Casey Wolsieffer
Thu, Feb 11, 2021 2:44 PM

I did sudo make install yes,

I'm assuming you mean /usr/local, I tried that in .conf file but that
doesn't seem to work either

On Thu, Feb 11, 2021, 8:57 AM Marcus D Leech patchvonbraun@gmail.com
wrote:

Your install prefix is /use/local

Did you sudo make install?

Sent from my iPhone

On Feb 11, 2021, at 8:30 AM, Casey Wolsieffer via USRP-users <


Hello, I have tried several times to install Python3 uhd on my system

but when I attempt >>>import uhd in python3 environment I always receive
ModuleNotFoundError: no module named 'uhd'

As far as I can see there are no hang ups on install and after $make, I

run $make test and get 0 out of 82 fails. Below is my enabled components
after I run

$cmake ../

I've also put a uhd.conf file in my ld.so.conf file and ran $sudo

ldconfig. Although I'm not certain I'm putting in correct path, right now
it's [my_directory]/uhd/host/build/lib/

I'm on Ubuntu 20.04, any help is greatly appreciated!

-- ######################################################
-- # UHD enabled components
-- ######################################################
--  * LibUHD
--  * LibUHD - C API
--  * LibUHD - Python API
--  * Examples
--  * Utils
--  * Tests
--  * USB
--  * B100
--  * B200
--  * USRP1
--  * USRP2
--  * X300
--  * MPMD
--  * SIM
--  * N300
--  * N320
--  * E320
--  * E300
--  * OctoClock
--  * Manual
--  * API/Doxygen
--  * Man Pages

-- ######################################################
-- # UHD disabled components
-- ######################################################
--  * DPDK

-- ******************************************************
-- * You are building the UHD development master branch.
-- * For production code, we recommend our stable,
-- * releases or using the release branch (maint).
-- ******************************************************
-- Building version: 4.0.0.0-93-g3b9ced8f
-- Using install prefix: /usr/local
-- Configuring done
-- Generating done
-- Build files have been written to:

/home/casey/Projects/UHD/uhd/host/build

I did sudo make install yes, I'm assuming you mean /usr/local, I tried that in .conf file but that doesn't seem to work either On Thu, Feb 11, 2021, 8:57 AM Marcus D Leech <patchvonbraun@gmail.com> wrote: > Your install prefix is /use/local > > Did you sudo make install? > > > > Sent from my iPhone > > > On Feb 11, 2021, at 8:30 AM, Casey Wolsieffer via USRP-users < > usrp-users@lists.ettus.com> wrote: > > > >  > > Hello, I have tried several times to install Python3 uhd on my system > but when I attempt >>>import uhd in python3 environment I always receive > ModuleNotFoundError: no module named 'uhd' > > > > As far as I can see there are no hang ups on install and after $make, I > run $make test and get 0 out of 82 fails. Below is my enabled components > after I run > > > > $cmake ../ > > > > I've also put a uhd.conf file in my ld.so.conf file and ran $sudo > ldconfig. Although I'm not certain I'm putting in correct path, right now > it's [my_directory]/uhd/host/build/lib/ > > > > I'm on Ubuntu 20.04, any help is greatly appreciated! > > > > -- ###################################################### > > -- # UHD enabled components > > -- ###################################################### > > -- * LibUHD > > -- * LibUHD - C API > > -- * LibUHD - Python API > > -- * Examples > > -- * Utils > > -- * Tests > > -- * USB > > -- * B100 > > -- * B200 > > -- * USRP1 > > -- * USRP2 > > -- * X300 > > -- * MPMD > > -- * SIM > > -- * N300 > > -- * N320 > > -- * E320 > > -- * E300 > > -- * OctoClock > > -- * Manual > > -- * API/Doxygen > > -- * Man Pages > > -- > > -- ###################################################### > > -- # UHD disabled components > > -- ###################################################### > > -- * DPDK > > -- > > -- ****************************************************** > > -- * You are building the UHD development master branch. > > -- * For production code, we recommend our stable, > > -- * releases or using the release branch (maint). > > -- ****************************************************** > > -- Building version: 4.0.0.0-93-g3b9ced8f > > -- Using install prefix: /usr/local > > -- Configuring done > > -- Generating done > > -- Build files have been written to: > /home/casey/Projects/UHD/uhd/host/build > > > > > > _______________________________________________ > > USRP-users mailing list > > USRP-users@lists.ettus.com > > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com >
CW
Casey Wolsieffer
Thu, Feb 11, 2021 2:46 PM

I tried your suggestion as well Rob to no avail. Also, thank you both for
your responses

On Thu, Feb 11, 2021, 9:44 AM Casey Wolsieffer cwolsief@gmail.com wrote:

I did sudo make install yes,

I'm assuming you mean /usr/local, I tried that in .conf file but that
doesn't seem to work either

On Thu, Feb 11, 2021, 8:57 AM Marcus D Leech patchvonbraun@gmail.com
wrote:

Your install prefix is /use/local

Did you sudo make install?

Sent from my iPhone

On Feb 11, 2021, at 8:30 AM, Casey Wolsieffer via USRP-users <


Hello, I have tried several times to install Python3 uhd on my system

but when I attempt >>>import uhd in python3 environment I always receive
ModuleNotFoundError: no module named 'uhd'

As far as I can see there are no hang ups on install and after $make, I

run $make test and get 0 out of 82 fails. Below is my enabled components
after I run

$cmake ../

I've also put a uhd.conf file in my ld.so.conf file and ran $sudo

ldconfig. Although I'm not certain I'm putting in correct path, right now
it's [my_directory]/uhd/host/build/lib/

I'm on Ubuntu 20.04, any help is greatly appreciated!

-- ######################################################
-- # UHD enabled components
-- ######################################################
--  * LibUHD
--  * LibUHD - C API
--  * LibUHD - Python API
--  * Examples
--  * Utils
--  * Tests
--  * USB
--  * B100
--  * B200
--  * USRP1
--  * USRP2
--  * X300
--  * MPMD
--  * SIM
--  * N300
--  * N320
--  * E320
--  * E300
--  * OctoClock
--  * Manual
--  * API/Doxygen
--  * Man Pages

-- ######################################################
-- # UHD disabled components
-- ######################################################
--  * DPDK

-- ******************************************************
-- * You are building the UHD development master branch.
-- * For production code, we recommend our stable,
-- * releases or using the release branch (maint).
-- ******************************************************
-- Building version: 4.0.0.0-93-g3b9ced8f
-- Using install prefix: /usr/local
-- Configuring done
-- Generating done
-- Build files have been written to:

/home/casey/Projects/UHD/uhd/host/build

I tried your suggestion as well Rob to no avail. Also, thank you both for your responses On Thu, Feb 11, 2021, 9:44 AM Casey Wolsieffer <cwolsief@gmail.com> wrote: > I did sudo make install yes, > > > I'm assuming you mean /usr/local, I tried that in .conf file but that > doesn't seem to work either > > > On Thu, Feb 11, 2021, 8:57 AM Marcus D Leech <patchvonbraun@gmail.com> > wrote: > >> Your install prefix is /use/local >> >> Did you sudo make install? >> >> >> >> Sent from my iPhone >> >> > On Feb 11, 2021, at 8:30 AM, Casey Wolsieffer via USRP-users < >> usrp-users@lists.ettus.com> wrote: >> > >> >  >> > Hello, I have tried several times to install Python3 uhd on my system >> but when I attempt >>>import uhd in python3 environment I always receive >> ModuleNotFoundError: no module named 'uhd' >> > >> > As far as I can see there are no hang ups on install and after $make, I >> run $make test and get 0 out of 82 fails. Below is my enabled components >> after I run >> > >> > $cmake ../ >> > >> > I've also put a uhd.conf file in my ld.so.conf file and ran $sudo >> ldconfig. Although I'm not certain I'm putting in correct path, right now >> it's [my_directory]/uhd/host/build/lib/ >> > >> > I'm on Ubuntu 20.04, any help is greatly appreciated! >> > >> > -- ###################################################### >> > -- # UHD enabled components >> > -- ###################################################### >> > -- * LibUHD >> > -- * LibUHD - C API >> > -- * LibUHD - Python API >> > -- * Examples >> > -- * Utils >> > -- * Tests >> > -- * USB >> > -- * B100 >> > -- * B200 >> > -- * USRP1 >> > -- * USRP2 >> > -- * X300 >> > -- * MPMD >> > -- * SIM >> > -- * N300 >> > -- * N320 >> > -- * E320 >> > -- * E300 >> > -- * OctoClock >> > -- * Manual >> > -- * API/Doxygen >> > -- * Man Pages >> > -- >> > -- ###################################################### >> > -- # UHD disabled components >> > -- ###################################################### >> > -- * DPDK >> > -- >> > -- ****************************************************** >> > -- * You are building the UHD development master branch. >> > -- * For production code, we recommend our stable, >> > -- * releases or using the release branch (maint). >> > -- ****************************************************** >> > -- Building version: 4.0.0.0-93-g3b9ced8f >> > -- Using install prefix: /usr/local >> > -- Configuring done >> > -- Generating done >> > -- Build files have been written to: >> /home/casey/Projects/UHD/uhd/host/build >> > >> > >> > _______________________________________________ >> > USRP-users mailing list >> > USRP-users@lists.ettus.com >> > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com >> >
PH
page heller
Thu, Feb 11, 2021 2:51 PM

We also failed with ubuntu 20.xx, but it will install correctly with 18.04.  -p
On 2/11/2021 8:47:28 AM, Casey Wolsieffer via USRP-users usrp-users@lists.ettus.com wrote:
I tried your suggestion as well Rob to no avail. Also, thank you both for your responses

On Thu, Feb 11, 2021, 9:44 AM Casey Wolsieffer <cwolsief@gmail.com [mailto:cwolsief@gmail.com]> wrote:

I did sudo make install yes,

I'm assuming you mean /usr/local, I tried that in .conf file but that doesn't seem to work either

On Thu, Feb 11, 2021, 8:57 AM Marcus D Leech <patchvonbraun@gmail.com [mailto:patchvonbraun@gmail.com]> wrote:

Your install prefix is /use/local

Did you sudo make install?

Sent from my iPhone

On Feb 11, 2021, at 8:30 AM, Casey Wolsieffer via USRP-users <usrp-users@lists.ettus.com [mailto:usrp-users@lists.ettus.com]> wrote:


Hello, I have tried several times to install Python3 uhd on my system but when I attempt >>>import uhd in python3 environment I always receive ModuleNotFoundError: no module named 'uhd'

As far as I can see there are no hang ups on install and after $make, I run $make test and get 0 out of 82 fails. Below is my enabled components after I run

$cmake ../

I've also put a uhd.conf file in my ld.so.conf file and ran $sudo ldconfig. Although I'm not certain I'm putting in correct path, right now it's [my_directory]/uhd/host/build/lib/

I'm on Ubuntu 20.04, any help is greatly appreciated!

-- ######################################################
-- # UHD enabled components
-- ######################################################
-- * LibUHD
-- * LibUHD - C API
-- * LibUHD - Python API
-- * Examples
-- * Utils
-- * Tests
-- * USB
-- * B100
-- * B200
-- * USRP1
-- * USRP2
-- * X300
-- * MPMD
-- * SIM
-- * N300
-- * N320
-- * E320
-- * E300
-- * OctoClock
-- * Manual
-- * API/Doxygen
-- * Man Pages

-- ######################################################
-- # UHD disabled components
-- ######################################################
-- * DPDK

-- ******************************************************
-- * You are building the UHD development master branch.
-- * For production code, we recommend our stable,
-- * releases or using the release branch (maint).
-- ******************************************************
-- Building version: 4.0.0.0-93-g3b9ced8f
-- Using install prefix: /usr/local
-- Configuring done
-- Generating done
-- Build files have been written to: /home/casey/Projects/UHD/uhd/host/build


USRP-users mailing list
USRP-users@lists.ettus.com [mailto:USRP-users@lists.ettus.com]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com [http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com]

_______________________________________________ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

We also failed with ubuntu 20.xx, but it will install correctly with 18.04.  -p On 2/11/2021 8:47:28 AM, Casey Wolsieffer via USRP-users <usrp-users@lists.ettus.com> wrote: I tried your suggestion as well Rob to no avail. Also, thank you both for your responses On Thu, Feb 11, 2021, 9:44 AM Casey Wolsieffer <cwolsief@gmail.com [mailto:cwolsief@gmail.com]> wrote: I did sudo make install yes, I'm assuming you mean /usr/local, I tried that in .conf file but that doesn't seem to work either On Thu, Feb 11, 2021, 8:57 AM Marcus D Leech <patchvonbraun@gmail.com [mailto:patchvonbraun@gmail.com]> wrote: Your install prefix is /use/local Did you sudo make install? Sent from my iPhone > On Feb 11, 2021, at 8:30 AM, Casey Wolsieffer via USRP-users <usrp-users@lists.ettus.com [mailto:usrp-users@lists.ettus.com]> wrote: > >  > Hello, I have tried several times to install Python3 uhd on my system but when I attempt >>>import uhd in python3 environment I always receive ModuleNotFoundError: no module named 'uhd' > > As far as I can see there are no hang ups on install and after $make, I run $make test and get 0 out of 82 fails. Below is my enabled components after I run > > $cmake ../ > > I've also put a uhd.conf file in my ld.so.conf file and ran $sudo ldconfig. Although I'm not certain I'm putting in correct path, right now it's [my_directory]/uhd/host/build/lib/ > > I'm on Ubuntu 20.04, any help is greatly appreciated! > > -- ###################################################### > -- # UHD enabled components > -- ###################################################### > -- * LibUHD > -- * LibUHD - C API > -- * LibUHD - Python API > -- * Examples > -- * Utils > -- * Tests > -- * USB > -- * B100 > -- * B200 > -- * USRP1 > -- * USRP2 > -- * X300 > -- * MPMD > -- * SIM > -- * N300 > -- * N320 > -- * E320 > -- * E300 > -- * OctoClock > -- * Manual > -- * API/Doxygen > -- * Man Pages > -- > -- ###################################################### > -- # UHD disabled components > -- ###################################################### > -- * DPDK > -- > -- ****************************************************** > -- * You are building the UHD development master branch. > -- * For production code, we recommend our stable, > -- * releases or using the release branch (maint). > -- ****************************************************** > -- Building version: 4.0.0.0-93-g3b9ced8f > -- Using install prefix: /usr/local > -- Configuring done > -- Generating done > -- Build files have been written to: /home/casey/Projects/UHD/uhd/host/build > > > _______________________________________________ > USRP-users mailing list > USRP-users@lists.ettus.com [mailto:USRP-users@lists.ettus.com] > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com [http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com] _______________________________________________ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
CW
Casey Wolsieffer
Thu, Feb 11, 2021 2:53 PM

Actually i got it, for my case it was in

export PYTHONPATH="/usr/local/lib/python3/dist-packages/"

Semi-new to this so still figuring out some of the stuff that is probably
obvious. Will throw this line in ~/.bash_profile

Thank you!

On Thu, Feb 11, 2021, 9:46 AM Casey Wolsieffer cwolsief@gmail.com wrote:

I tried your suggestion as well Rob to no avail. Also, thank you both for
your responses

On Thu, Feb 11, 2021, 9:44 AM Casey Wolsieffer cwolsief@gmail.com wrote:

I did sudo make install yes,

I'm assuming you mean /usr/local, I tried that in .conf file but that
doesn't seem to work either

On Thu, Feb 11, 2021, 8:57 AM Marcus D Leech patchvonbraun@gmail.com
wrote:

Your install prefix is /use/local

Did you sudo make install?

Sent from my iPhone

On Feb 11, 2021, at 8:30 AM, Casey Wolsieffer via USRP-users <


Hello, I have tried several times to install Python3 uhd on my system

but when I attempt >>>import uhd in python3 environment I always receive
ModuleNotFoundError: no module named 'uhd'

As far as I can see there are no hang ups on install and after $make,

I run $make test and get 0 out of 82 fails. Below is my enabled components
after I run

$cmake ../

I've also put a uhd.conf file in my ld.so.conf file and ran $sudo

ldconfig. Although I'm not certain I'm putting in correct path, right now
it's [my_directory]/uhd/host/build/lib/

I'm on Ubuntu 20.04, any help is greatly appreciated!

-- ######################################################
-- # UHD enabled components
-- ######################################################
--  * LibUHD
--  * LibUHD - C API
--  * LibUHD - Python API
--  * Examples
--  * Utils
--  * Tests
--  * USB
--  * B100
--  * B200
--  * USRP1
--  * USRP2
--  * X300
--  * MPMD
--  * SIM
--  * N300
--  * N320
--  * E320
--  * E300
--  * OctoClock
--  * Manual
--  * API/Doxygen
--  * Man Pages

-- ######################################################
-- # UHD disabled components
-- ######################################################
--  * DPDK

-- ******************************************************
-- * You are building the UHD development master branch.
-- * For production code, we recommend our stable,
-- * releases or using the release branch (maint).
-- ******************************************************
-- Building version: 4.0.0.0-93-g3b9ced8f
-- Using install prefix: /usr/local
-- Configuring done
-- Generating done
-- Build files have been written to:

/home/casey/Projects/UHD/uhd/host/build

Actually i got it, for my case it was in export PYTHONPATH="/usr/local/lib/python3/dist-packages/" Semi-new to this so still figuring out some of the stuff that is probably obvious. Will throw this line in ~/.bash_profile Thank you! On Thu, Feb 11, 2021, 9:46 AM Casey Wolsieffer <cwolsief@gmail.com> wrote: > I tried your suggestion as well Rob to no avail. Also, thank you both for > your responses > > On Thu, Feb 11, 2021, 9:44 AM Casey Wolsieffer <cwolsief@gmail.com> wrote: > >> I did sudo make install yes, >> >> >> I'm assuming you mean /usr/local, I tried that in .conf file but that >> doesn't seem to work either >> >> >> On Thu, Feb 11, 2021, 8:57 AM Marcus D Leech <patchvonbraun@gmail.com> >> wrote: >> >>> Your install prefix is /use/local >>> >>> Did you sudo make install? >>> >>> >>> >>> Sent from my iPhone >>> >>> > On Feb 11, 2021, at 8:30 AM, Casey Wolsieffer via USRP-users < >>> usrp-users@lists.ettus.com> wrote: >>> > >>> >  >>> > Hello, I have tried several times to install Python3 uhd on my system >>> but when I attempt >>>import uhd in python3 environment I always receive >>> ModuleNotFoundError: no module named 'uhd' >>> > >>> > As far as I can see there are no hang ups on install and after $make, >>> I run $make test and get 0 out of 82 fails. Below is my enabled components >>> after I run >>> > >>> > $cmake ../ >>> > >>> > I've also put a uhd.conf file in my ld.so.conf file and ran $sudo >>> ldconfig. Although I'm not certain I'm putting in correct path, right now >>> it's [my_directory]/uhd/host/build/lib/ >>> > >>> > I'm on Ubuntu 20.04, any help is greatly appreciated! >>> > >>> > -- ###################################################### >>> > -- # UHD enabled components >>> > -- ###################################################### >>> > -- * LibUHD >>> > -- * LibUHD - C API >>> > -- * LibUHD - Python API >>> > -- * Examples >>> > -- * Utils >>> > -- * Tests >>> > -- * USB >>> > -- * B100 >>> > -- * B200 >>> > -- * USRP1 >>> > -- * USRP2 >>> > -- * X300 >>> > -- * MPMD >>> > -- * SIM >>> > -- * N300 >>> > -- * N320 >>> > -- * E320 >>> > -- * E300 >>> > -- * OctoClock >>> > -- * Manual >>> > -- * API/Doxygen >>> > -- * Man Pages >>> > -- >>> > -- ###################################################### >>> > -- # UHD disabled components >>> > -- ###################################################### >>> > -- * DPDK >>> > -- >>> > -- ****************************************************** >>> > -- * You are building the UHD development master branch. >>> > -- * For production code, we recommend our stable, >>> > -- * releases or using the release branch (maint). >>> > -- ****************************************************** >>> > -- Building version: 4.0.0.0-93-g3b9ced8f >>> > -- Using install prefix: /usr/local >>> > -- Configuring done >>> > -- Generating done >>> > -- Build files have been written to: >>> /home/casey/Projects/UHD/uhd/host/build >>> > >>> > >>> > _______________________________________________ >>> > USRP-users mailing list >>> > USRP-users@lists.ettus.com >>> > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com >>> >>
MD
Marcus D. Leech
Thu, Feb 11, 2021 5:38 PM

On 02/11/2021 09:44 AM, Casey Wolsieffer wrote:

I did sudo make install yes,

I'm assuming you mean /usr/local, I tried that in .conf file but that
doesn't seem to work either

If you

find /usr/local -name "uhd"

What does that produce?

On Thu, Feb 11, 2021, 8:57 AM Marcus D Leech <patchvonbraun@gmail.com
mailto:patchvonbraun@gmail.com> wrote:

 Your install prefix is /use/local

 Did you sudo make install?



 Sent from my iPhone

On Feb 11, 2021, at 8:30 AM, Casey Wolsieffer via USRP-users

 <usrp-users@lists.ettus.com <mailto:usrp-users@lists.ettus.com>>
 wrote:


Hello, I have tried several times to install Python3 uhd on my

 system but when I attempt >>>import uhd in python3 environment I
 always receive ModuleNotFoundError: no module named 'uhd'

As far as I can see there are no hang ups on install and after

 $make, I run $make test and get 0 out of 82 fails. Below is my
 enabled components after I run

$cmake ../

I've also put a uhd.conf file in my ld.so.conf file and ran

 $sudo ldconfig. Although I'm not certain I'm putting in correct
 path, right now it's [my_directory]/uhd/host/build/lib/

I'm on Ubuntu 20.04, any help is greatly appreciated!

-- ######################################################
-- # UHD enabled components
-- ######################################################
--  * LibUHD
--  * LibUHD - C API
--  * LibUHD - Python API
--  * Examples
--  * Utils
--  * Tests
--  * USB
--  * B100
--  * B200
--  * USRP1
--  * USRP2
--  * X300
--  * MPMD
--  * SIM
--  * N300
--  * N320
--  * E320
--  * E300
--  * OctoClock
--  * Manual
--  * API/Doxygen
--  * Man Pages

-- ######################################################
-- # UHD disabled components
-- ######################################################
--  * DPDK

-- ******************************************************
-- * You are building the UHD development master branch.
-- * For production code, we recommend our stable,
-- * releases or using the release branch (maint).
-- ******************************************************
-- Building version: 4.0.0.0-93-g3b9ced8f
-- Using install prefix: /usr/local
-- Configuring done
-- Generating done
-- Build files have been written to:

 /home/casey/Projects/UHD/uhd/host/build
On 02/11/2021 09:44 AM, Casey Wolsieffer wrote: > I did sudo make install yes, > > > I'm assuming you mean /usr/local, I tried that in .conf file but that > doesn't seem to work either > If you find /usr/local -name "*uhd*" What does that produce? > > On Thu, Feb 11, 2021, 8:57 AM Marcus D Leech <patchvonbraun@gmail.com > <mailto:patchvonbraun@gmail.com>> wrote: > > Your install prefix is /use/local > > Did you sudo make install? > > > > Sent from my iPhone > > > On Feb 11, 2021, at 8:30 AM, Casey Wolsieffer via USRP-users > <usrp-users@lists.ettus.com <mailto:usrp-users@lists.ettus.com>> > wrote: > > > >  > > Hello, I have tried several times to install Python3 uhd on my > system but when I attempt >>>import uhd in python3 environment I > always receive ModuleNotFoundError: no module named 'uhd' > > > > As far as I can see there are no hang ups on install and after > $make, I run $make test and get 0 out of 82 fails. Below is my > enabled components after I run > > > > $cmake ../ > > > > I've also put a uhd.conf file in my ld.so.conf file and ran > $sudo ldconfig. Although I'm not certain I'm putting in correct > path, right now it's [my_directory]/uhd/host/build/lib/ > > > > I'm on Ubuntu 20.04, any help is greatly appreciated! > > > > -- ###################################################### > > -- # UHD enabled components > > -- ###################################################### > > -- * LibUHD > > -- * LibUHD - C API > > -- * LibUHD - Python API > > -- * Examples > > -- * Utils > > -- * Tests > > -- * USB > > -- * B100 > > -- * B200 > > -- * USRP1 > > -- * USRP2 > > -- * X300 > > -- * MPMD > > -- * SIM > > -- * N300 > > -- * N320 > > -- * E320 > > -- * E300 > > -- * OctoClock > > -- * Manual > > -- * API/Doxygen > > -- * Man Pages > > -- > > -- ###################################################### > > -- # UHD disabled components > > -- ###################################################### > > -- * DPDK > > -- > > -- ****************************************************** > > -- * You are building the UHD development master branch. > > -- * For production code, we recommend our stable, > > -- * releases or using the release branch (maint). > > -- ****************************************************** > > -- Building version: 4.0.0.0-93-g3b9ced8f > > -- Using install prefix: /usr/local > > -- Configuring done > > -- Generating done > > -- Build files have been written to: > /home/casey/Projects/UHD/uhd/host/build > > > > > > _______________________________________________ > > USRP-users mailing list > > USRP-users@lists.ettus.com <mailto:USRP-users@lists.ettus.com> > > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com >
MD
Marcus D. Leech
Thu, Feb 11, 2021 7:27 PM

On 02/11/2021 09:53 AM, Casey Wolsieffer wrote:

Actually i got it, for my case it was in

export PYTHONPATH="/usr/local/lib/python3/dist-packages/"

Semi-new to this so still figuring out some of the stuff that is
probably obvious. Will throw this line in ~/.bash_profile

Thank you!

Some Linux distributions put locally-installed Python packages in
"dist-packages" and some in "site-packages".  I simply mention
all potential places in my PYTHONPATH, and then don't have to worry
about it--except when some distro decides to be even more
creative about where such packages are installed...

On Thu, Feb 11, 2021, 9:46 AM Casey Wolsieffer <cwolsief@gmail.com
mailto:cwolsief@gmail.com> wrote:

 I tried your suggestion as well Rob to no avail. Also, thank you
 both for your responses

 On Thu, Feb 11, 2021, 9:44 AM Casey Wolsieffer <cwolsief@gmail.com
 <mailto:cwolsief@gmail.com>> wrote:

     I did sudo make install yes,


     I'm assuming you mean /usr/local, I tried that in .conf file
     but that doesn't seem to work either


     On Thu, Feb 11, 2021, 8:57 AM Marcus D Leech
     <patchvonbraun@gmail.com <mailto:patchvonbraun@gmail.com>> wrote:

         Your install prefix is /use/local

         Did you sudo make install?



         Sent from my iPhone

On Feb 11, 2021, at 8:30 AM, Casey Wolsieffer via

         USRP-users <usrp-users@lists.ettus.com
         <mailto:usrp-users@lists.ettus.com>> wrote:


Hello, I have tried several times to install Python3 uhd

         on my system but when I attempt >>>import uhd in python3
         environment I always receive ModuleNotFoundError: no
         module named 'uhd'

As far as I can see there are no hang ups on install and

         after $make, I run $make test and get 0 out of 82 fails.
         Below is my enabled components after I run

$cmake ../

I've also put a uhd.conf file in my ld.so.conf file and

         ran $sudo ldconfig. Although I'm not certain I'm putting
         in correct path, right now it's
         [my_directory]/uhd/host/build/lib/

I'm on Ubuntu 20.04, any help is greatly appreciated!

-- ######################################################
-- # UHD enabled components
-- ######################################################
--  * LibUHD
--  * LibUHD - C API
--  * LibUHD - Python API
--  * Examples
--  * Utils
--  * Tests
--  * USB
--  * B100
--  * B200
--  * USRP1
--  * USRP2
--  * X300
--  * MPMD
--  * SIM
--  * N300
--  * N320
--  * E320
--  * E300
--  * OctoClock
--  * Manual
--  * API/Doxygen
--  * Man Pages

-- ######################################################
-- # UHD disabled components
-- ######################################################
--  * DPDK

-- ******************************************************
-- * You are building the UHD development master branch.
-- * For production code, we recommend our stable,
-- * releases or using the release branch (maint).
-- ******************************************************
-- Building version: 4.0.0.0-93-g3b9ced8f
-- Using install prefix: /usr/local
-- Configuring done
-- Generating done
-- Build files have been written to:

         /home/casey/Projects/UHD/uhd/host/build

USRP-users mailing list
USRP-users@lists.ettus.com

         <mailto:USRP-users@lists.ettus.com>
         http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
On 02/11/2021 09:53 AM, Casey Wolsieffer wrote: > Actually i got it, for my case it was in > > export PYTHONPATH="/usr/local/lib/python3/dist-packages/" > > Semi-new to this so still figuring out some of the stuff that is > probably obvious. Will throw this line in ~/.bash_profile > > Thank you! Some Linux distributions put locally-installed Python packages in "dist-packages" and some in "site-packages". I simply mention all potential places in my PYTHONPATH, and then don't have to worry about it--except when some distro decides to be even more creative about where such packages are installed... > > On Thu, Feb 11, 2021, 9:46 AM Casey Wolsieffer <cwolsief@gmail.com > <mailto:cwolsief@gmail.com>> wrote: > > I tried your suggestion as well Rob to no avail. Also, thank you > both for your responses > > On Thu, Feb 11, 2021, 9:44 AM Casey Wolsieffer <cwolsief@gmail.com > <mailto:cwolsief@gmail.com>> wrote: > > I did sudo make install yes, > > > I'm assuming you mean /usr/local, I tried that in .conf file > but that doesn't seem to work either > > > On Thu, Feb 11, 2021, 8:57 AM Marcus D Leech > <patchvonbraun@gmail.com <mailto:patchvonbraun@gmail.com>> wrote: > > Your install prefix is /use/local > > Did you sudo make install? > > > > Sent from my iPhone > > > On Feb 11, 2021, at 8:30 AM, Casey Wolsieffer via > USRP-users <usrp-users@lists.ettus.com > <mailto:usrp-users@lists.ettus.com>> wrote: > > > >  > > Hello, I have tried several times to install Python3 uhd > on my system but when I attempt >>>import uhd in python3 > environment I always receive ModuleNotFoundError: no > module named 'uhd' > > > > As far as I can see there are no hang ups on install and > after $make, I run $make test and get 0 out of 82 fails. > Below is my enabled components after I run > > > > $cmake ../ > > > > I've also put a uhd.conf file in my ld.so.conf file and > ran $sudo ldconfig. Although I'm not certain I'm putting > in correct path, right now it's > [my_directory]/uhd/host/build/lib/ > > > > I'm on Ubuntu 20.04, any help is greatly appreciated! > > > > -- ###################################################### > > -- # UHD enabled components > > -- ###################################################### > > -- * LibUHD > > -- * LibUHD - C API > > -- * LibUHD - Python API > > -- * Examples > > -- * Utils > > -- * Tests > > -- * USB > > -- * B100 > > -- * B200 > > -- * USRP1 > > -- * USRP2 > > -- * X300 > > -- * MPMD > > -- * SIM > > -- * N300 > > -- * N320 > > -- * E320 > > -- * E300 > > -- * OctoClock > > -- * Manual > > -- * API/Doxygen > > -- * Man Pages > > -- > > -- ###################################################### > > -- # UHD disabled components > > -- ###################################################### > > -- * DPDK > > -- > > -- ****************************************************** > > -- * You are building the UHD development master branch. > > -- * For production code, we recommend our stable, > > -- * releases or using the release branch (maint). > > -- ****************************************************** > > -- Building version: 4.0.0.0-93-g3b9ced8f > > -- Using install prefix: /usr/local > > -- Configuring done > > -- Generating done > > -- Build files have been written to: > /home/casey/Projects/UHD/uhd/host/build > > > > > > _______________________________________________ > > USRP-users mailing list > > USRP-users@lists.ettus.com > <mailto:USRP-users@lists.ettus.com> > > > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com >