Strange problem when using build-gnuradio script

Hi all,

I’m using build-gnuradio script to build gnuradio and uhd. It works well
before (both on Ubuntu 10.04 and 11.10). However, on my current computer
(Ubuntu 10.04), it has a strange problem. At first, it kept showing some
libs are not found. After installing these libs and trying for several
times, it finally finished installing. But it finished with such
information:


You should probably set your PYTHONPATH to:

in your .bashrc or equivalent file prior to attempting to run
any Gnu Radio applications or Gnu Radio Companion.


Done function pythonpath at: Tue Mar 27 16:34:46 JST 2012
Done all functions at: Tue Mar 27 16:34:46 JST 2012
All Done

There is EMPTY line below “You should probably set your PYTHONPATH to:”.

And I cannot run any gnuradio script.

I also tried this:

from gnuradio import gr
Traceback (most recent call last):
File “”, line 1, in
ImportError: No module named gnuradio

I also noticed that there is no .py files under /usr/local/bin/.

There are only these files:

uhd_cal_tx_dc_offset uhd_find_devices volk_profile
uhd_cal_rx_iq_balance uhd_cal_tx_iq_balance uhd_usrp_probe

Anyone know what is the problem?

Thanks.

Wu

On 03/27/2012 03:59 AM, Wu Ting wrote:


Wu


Discuss-gnuradio mailing list
[email protected]
Discuss-gnuradio Info Page
Re-run it with --verbose to see where it went off the rails. it clearly
didn’t build/install Gnu Radio, only UHD. The blank Pythonpath is
because
it couldn’t find any Gnu Radio bits in any of the places it looks for
locally-installed Python bits.

Hi, Thank you for your reply. I ran ./build-gnuradio -v The result is
in
the attached file. Could you have a look at it. Thank you!

Wu

From:
discuss-gnuradio-bounces+wu.ting=removed_email_address@domain.invalid
[mailto:discuss-gnuradio-bounces+wu.ting=removed_email_address@domain.invalid
g] On Behalf Of Marcus D. Leech
Sent: Tuesday, March 27, 2012 9:15 PM
To: [email protected]
Subject: Re: [Discuss-gnuradio] Strange problem when using
build-gnuradio
script

On 03/27/2012 03:59 AM, Wu Ting wrote:

Hi all,

I’m using build-gnuradio script to build gnuradio and uhd. It works well
before (both on Ubuntu 10.04 and 11.10). However, on my current computer
(Ubuntu 10.04), it has a strange problem. At first, it kept showing some
libs are not found. After installing these libs and trying for several
times, it finally finished installing. But it finished with such
information:


You should probably set your PYTHONPATH to:

in your .bashrc or equivalent file prior to attempting to run
any Gnu Radio applications or Gnu Radio Companion.


Done function pythonpath at: Tue Mar 27 16:34:46 JST 2012
Done all functions at: Tue Mar 27 16:34:46 JST 2012
All Done

There is EMPTY line below “You should probably set your PYTHONPATH to:”.

And I cannot run any gnuradio script.

I also tried this:

from gnuradio import gr
Traceback (most recent call last):
File “”, line 1, in
ImportError: No module named gnuradio

I also noticed that there is no .py files under /usr/local/bin/.

There are only these files:

uhd_cal_tx_dc_offset uhd_find_devices volk_profile
uhd_cal_rx_iq_balance uhd_cal_tx_iq_balance uhd_usrp_probe

Anyone know what is the problem?

Thanks.

Wu


Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Re-run it with --verbose to see where it went off the rails. it clearly
didn’t build/install Gnu Radio, only UHD. The blank Pythonpath is
because
it couldn’t find any Gnu Radio bits in any of the places it looks for
locally-installed Python bits.

Looks like there may be a bug in the PYTHONPATH finder inside
build-gnuradio.

This has almost zero downstream consequences, since
it’s merely offering a suggestion as to what to set your PYTHONPATH to
in your .bashrc. It doesn’t automatically edit your .bashrc–that’s up
to you.

On Ubuntu 10.04, it should be:

PYTHONPATH=/usr/local/lib/python2.6/dist-packages

On 11.10

PYTHONPATH=/usr/local/lib/python2.7/dist-packages

Put one of those
in your .bashrc or .profile or whatever, and logout/login.

You should
be able to start gnuradio-companion after that.

On Tue, 27 Mar 2012
21:44:52 +0900, Wu Ting wrote:

Hi, Thank you for your reply. I ran
./build-gnuradio -v The result is in the attached file. Could you have a
look at it. Thank you!

Wu

FROM:
discuss-gnuradio-bounces+wu.ting=removed_email_address@domain.invalid
[mailto:discuss-gnuradio-bounces+wu.ting=removed_email_address@domain.invalid]
ON BEHALF OF Marcus D. Leech
SENT: Tuesday, March 27, 2012 9:15 PM

TO: [email protected]

SUBJECT: Re: [Discuss-gnuradio] Strange
problem when using build-gnuradio script

On 03/27/2012 03:59 AM,
Wu Ting wrote:

Hi all,

I’m using build-gnuradio script to
build gnuradio and uhd. It works well before (both on Ubuntu 10.04 and
11.10). However, on my current computer (Ubuntu 10.04), it has a strange
problem. At first, it kept showing some libs are not found. After
installing these libs and trying for several times, it finally finished
installing. But it finished with such information:


You
should probably set your PYTHONPATH to:

in your .bashrc or
equivalent file prior to attempting to run
any Gnu Radio applications
or Gnu Radio Companion.


Done
function pythonpath at: Tue Mar 27 16:34:46 JST 2012
Done all
functions at: Tue Mar 27 16:34:46 JST 2012
All Done

There is
EMPTY line below “You should probably set your PYTHONPATH to:”.

And I cannot run any gnuradio script.

I also tried this:

from gnuradio import gr

Traceback (most recent call last):
File “”,
line 1, in
ImportError: No module named gnuradio

I also noticed
that there is no .py files under /usr/local/bin/.

There are only
these files:

uhd_cal_tx_dc_offset uhd_find_devices volk_profile

uhd_cal_rx_iq_balance uhd_cal_tx_iq_balance uhd_usrp_probe

Anyone
know what is the problem?

Thanks.

Wu


Discuss-gnuradio
mailing list

[email protected] [1]

Discuss-gnuradio Info Page [2]

Re-run
it with --verbose to see where it went off the rails. it clearly didn’t
build/install Gnu Radio, only UHD. The blank Pythonpath is because
it
couldn’t find any Gnu Radio bits in any of the places it looks for
locally-installed Python bits.

Marcus L.

Principal
Investigator

Shirleys Bay Radio Astronomy Consortium

http://www.sbrac.org [3]

Links:

On 03/27/2012 08:44 AM, Wu Ting wrote:

Hi, Thank you for your reply. I ran ./build-gnuradio --v The result
is in the attached file. Could you have a look at it. Thank you!

Wu

Here’s some clue, here:

  • Performing Test HAVE_PTHREAD_SETSCHEDPARAM - Success
    – Performing Test HAVE_SCHED_SETSCHEDULER
    – Performing Test HAVE_SCHED_SETSCHEDULER - Failed
    – checking for module ‘gsl >= 1.10’
    – found gsl , version 1.13
    – checking for module ‘fftw3f >= 3.0’
    – package ‘fftw3f >= 3.0’ not found
    – Could NOT find FFTW3F (missing: FFTW3F_LIBRARIES
    FFTW3F_INCLUDE_DIRS)

    – Configuring gnuradio-core support…
    – Dependency ENABLE_GRUEL = ON
    – Dependency ENABLE_VOLK = ON
    – Dependency Boost_FOUND = TRUE
    – Dependency GSL_FOUND = 1
    – Dependency FFTW3F_FOUND = FALSE
    – Dependency PYTHONINTERP_FOUND = TRUE
    – Disabling gnuradio-core support.
    – Override with -DENABLE_GR_CORE=ON/OFF

Despite the package-config checks that build-gnuradio does passing for
fftw3f earlier in build-gnuradio, the CMAKE check failed to find
FFTW3F >= 3.0. Which may mean that your system is missing
appropriate libraries for FFTW3F. Which is a requirement for gnuradio
to build properly.

Also, you’re missing:

  • ######################################################
    – # Gnuradio disabled components
    – ######################################################
    – * python-support
    – * gnuradio-core
    – * gnuradio-companion
    – * gr-atsc
    – * gr-audio
    – * gr-comedi
    – * gr-digital
    – * gr-noaa
    – * gr-pager
    – * gr-qtgui
    – * gr-trellis
    – * gr-uhd
    – * gr-shd
    – * gr-utils
    – * gr-video-sdl
    – * gr-vocoder
    – * gr-fcd
    – * gr-wxgui

Which is pretty-much all of Gnu Radio. Not sure how to explain this.
The build-gnuradio script checks for various packages having been
installed, and calls the “install depends” if any of them are
missing. So, according to your apt-cache check, those packages are
there,
but in reality, they aren’t–like they’ve been removed casually from
the system without the package database having been updated.

However, it seems that the pre-requisites installer for UBuntu 10.X is
asking for installation of “liborc” (I added that the other day), and
that causes the pre-requisites install to fail for everything. I’ve
removed that in the pre-requisites. Please try again.

I’ve also added the “–ignore-missing” option to the apt-get.

On Tue, 27 Mar 2012 17:06:49 -0400, Marcus D. Leech wrote:

However, it seems that the pre-requisites installer for UBuntu 10.X is
asking for installation of “liborc” (I added that the other day), and
that causes the pre-requisites install to fail for everything. I’ve
removed that in the pre-requisites. Please try again.

I’ve also added the “–ignore-missing” option to the apt-get.

I recently install gnuradio with build-gnuradio on Ubuntu 11.10, and
liborc also cause the pre-requisites apt-get install to fail for all.
After some apt-cache search, I find the package name on 11.10 is
liborc-0.4-0 indeed.

[1] liborc-0.4-0 : i386 : Oneiric (11.10) : Ubuntu


alick

On 03/31/2012 03:36 AM, Alick Z. wrote:

liborc also cause the pre-requisites apt-get install to fail for all.
After some apt-cache search, I find the package name on 11.10 is
liborc-0.4-0 indeed.

[1] liborc-0.4-0 : i386 : Oneiric (11.10) : Ubuntu

Thanks, fixed and pushed.


Marcus L.
Principal Investigator
Shirleys Bay Radio Astronomy Consortium

Hi! Now it works! Thank you so much!

Wu

From: Marcus D. Leech [mailto:[email protected]]
Sent: Wednesday, March 28, 2012 6:07 AM
To: Wu Ting
Cc: [email protected]
Subject: Re: [Discuss-gnuradio] Strange problem when using
build-gnuradio
script

On 03/27/2012 08:44 AM, Wu Ting wrote:

Hi, Thank you for your reply. I ran ./build-gnuradio -v The result is
in
the attached file. Could you have a look at it. Thank you!

Wu

Here’s some clue, here:

  • Performing Test HAVE_PTHREAD_SETSCHEDPARAM - Success
    – Performing Test HAVE_SCHED_SETSCHEDULER
    – Performing Test HAVE_SCHED_SETSCHEDULER - Failed
    – checking for module ‘gsl >= 1.10’
    – found gsl , version 1.13
    – checking for module ‘fftw3f >= 3.0’
    – package ‘fftw3f >= 3.0’ not found
    – Could NOT find FFTW3F (missing: FFTW3F_LIBRARIES
    FFTW3F_INCLUDE_DIRS)

    – Configuring gnuradio-core support…
    – Dependency ENABLE_GRUEL = ON
    – Dependency ENABLE_VOLK = ON
    – Dependency Boost_FOUND = TRUE
    – Dependency GSL_FOUND = 1
    – Dependency FFTW3F_FOUND = FALSE
    – Dependency PYTHONINTERP_FOUND = TRUE
    – Disabling gnuradio-core support.
    – Override with -DENABLE_GR_CORE=ON/OFF

Despite the package-config checks that build-gnuradio does passing for
fftw3f earlier in build-gnuradio, the CMAKE check failed to find
FFTW3F >= 3.0. Which may mean that your system is missing appropriate
libraries for FFTW3F. Which is a requirement for gnuradio
to build properly.

Also, you’re missing:

  • ######################################################
    – # Gnuradio disabled components
    – ######################################################
    – * python-support
    – * gnuradio-core
    – * gnuradio-companion
    – * gr-atsc
    – * gr-audio
    – * gr-comedi
    – * gr-digital
    – * gr-noaa
    – * gr-pager
    – * gr-qtgui
    – * gr-trellis
    – * gr-uhd
    – * gr-shd
    – * gr-utils
    – * gr-video-sdl
    – * gr-vocoder
    – * gr-fcd
    – * gr-wxgui

Which is pretty-much all of Gnu Radio. Not sure how to explain this.
The
build-gnuradio script checks for various packages having been
installed, and calls the “install depends” if any of them are missing.
So, according to your apt-cache check, those packages are there,
but in reality, they aren’t–like they’ve been removed casually from
the
system without the package database having been updated.

However, it seems that the pre-requisites installer for UBuntu 10.X is
asking for installation of “liborc” (I added that the other day), and
that causes the pre-requisites install to fail for everything. I’ve
removed that in the pre-requisites. Please try again.

I’ve also added the “–ignore-missing” option to the apt-get.

From:
discuss-gnuradio-bounces+wu.ting=removed_email_address@domain.invalid
[mailto:discuss-gnuradio-bounces+wu.ting=removed_email_address@domain.invalid
g] On Behalf Of Marcus D. Leech
Sent: Tuesday, March 27, 2012 9:15 PM
To: [email protected]
Subject: Re: [Discuss-gnuradio] Strange problem when using
build-gnuradio
script

On 03/27/2012 03:59 AM, Wu Ting wrote:

Hi all,

I’m using build-gnuradio script to build gnuradio and uhd. It works well
before (both on Ubuntu 10.04 and 11.10). However, on my current computer
(Ubuntu 10.04), it has a strange problem. At first, it kept showing some
libs are not found. After installing these libs and trying for several
times, it finally finished installing. But it finished with such
information:


You should probably set your PYTHONPATH to:

in your .bashrc or equivalent file prior to attempting to run
any Gnu Radio applications or Gnu Radio Companion.


Done function pythonpath at: Tue Mar 27 16:34:46 JST 2012
Done all functions at: Tue Mar 27 16:34:46 JST 2012
All Done

There is EMPTY line below “You should probably set your PYTHONPATH to:”.

And I cannot run any gnuradio script.

I also tried this:

from gnuradio import gr
Traceback (most recent call last):
File “”, line 1, in
ImportError: No module named gnuradio

I also noticed that there is no .py files under /usr/local/bin/.

There are only these files:

uhd_cal_tx_dc_offset uhd_find_devices volk_profile
uhd_cal_rx_iq_balance uhd_cal_tx_iq_balance uhd_usrp_probe

Anyone know what is the problem?

Thanks.

Wu


Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Re-run it with --verbose to see where it went off the rails. it clearly
didn’t build/install Gnu Radio, only UHD. The blank Pythonpath is
because
it couldn’t find any Gnu Radio bits in any of the places it looks for
locally-installed Python bits.


Marcus L.
Principal Investigator
Shirleys Bay Radio Astronomy Consortium

Is your problem solved ? I just installed using the same script in 10.04
and
everything is fine .
Btw you need to set your PYTHONPATH to
/usr/local/lib/python2.6/dist-packages

Wu Ting wrote:

information:


And I cannot run any gnuradio script.

Anyone know what is the problem?


Discuss-gnuradio mailing list
[email protected]
Discuss-gnuradio Info Page


Sumit Kr.
Research Assistant
Communication Research center
IIIT Hyderabad
India

View this message in context:
http://old.nabble.com/Strange-problem-when-using-build-gnuradio-script-tp33578826p33579119.html
Sent from the GnuRadio mailing list archive at Nabble.com.