Ubuntu 11.10 GNURadio Companion not installing help

Hello,

I’m having a problem getting GRC to install. It appears it thinks
numpy is not installed, however synaptic claims it is. Also the log
files notes

python-numpy is already the newest version.

Yet I also see in the log file

– Configuring gnuradio-companion support…
– Dependency ENABLE_GR_CORE = ON
– Dependency ENABLE_PYTHON = ON
– Dependency PYTHON_MIN_VER_FOUND = TRUE
– Dependency CHEETAH_FOUND = TRUE
– Dependency LXML_FOUND = TRUE
– Dependency PYGTK_FOUND = TRUE
– Dependency NUMPY_FOUND = FALSE
– Disabling gnuradio-companion support.
– Override with -DENABLE_GRC=ON/OFF

Can anyone shine some light on this for me? Should I force the enable?
If so how do I force it? It appears it can be enabled, but I’m not
sure how to enable it. Attached is info that includes how I built it,
and the log file generated. I tried to post as text, however it failed
to send, so I’m trying it as a compressed attachment. It’s just a text
file that includes this original message, and log files.

Also it’s a 64 bit platform that once had Activestate Python
installed. However that should be uninstalled at this point. Synaptic
and other package managers were closed at the time I ran the script.

Best regards.

… …-. / -.-- — …- / .-. . .- -… / - … … …
.-… . - … / … .- …- . / .- / -… . . .-.

Jared Harvey Operator KB1GTT

e-mail [email protected]
Web page http://jaredharvey.com

I have attached my GRC file with this email. I am getting the following
error?

gr_buffer::allocate_buffer: failed to allocate buffer of size 43852 KB

Umer

Umer,

You have a filter with a sample rate of 1.7GHz. This is obviously
incorrect. Your filter must operate at the baseband rate; in the case of
USRP2 with decimation 16, as you have it set up, the filter will operate
at
100Msps/16=6.25Msps. The filter cutoff frequencies must be similarly
relative to the baseband frequency, not absolute – if you are tuned to
850MHz and want a cutoff at 850.4MHz, you would specify a cutoff
frequency
of 400kHz.

Additionally, did you really mean to use the USRP2 source? The old USRP2
source has been deprecated in favor of UHD for a very long time.

–n

On 07/02/2012 04:41 AM, Jared Harvey wrote:

– Configuring gnuradio-companion support…
– Dependency ENABLE_GR_CORE = ON
– Dependency ENABLE_PYTHON = ON
– Dependency PYTHON_MIN_VER_FOUND = TRUE
– Dependency CHEETAH_FOUND = TRUE
– Dependency LXML_FOUND = TRUE
– Dependency PYGTK_FOUND = TRUE
– Dependency NUMPY_FOUND = FALSE
– Disabling gnuradio-companion support.
– Override with -DENABLE_GRC=ON/OFF

The build environment is just trying to import numpy. Are you able to
run python -c “import numpy” from the same terminal you are calling the
build configuration from?

-josh

Hello Nick,
Thanks for your reply, I want to know about the parameters for my
bandpass filter block?

So what parameters should give to my band_pass_filter as follows
high_cut_off=?
low_cut_off=?
sampling_rate should be less than 6.25MHz
transition band=?

Yes I want to use usrp2 source how do I update that ?

Umer


From: Nick F. [[email protected]]
Sent: Monday, July 02, 2012 2:42 PM
To: Rabbani,U,Umer,DUB8 R
Cc: [email protected]
Subject: Re: [Discuss-gnuradio] Simple band pass filter

Umer,

You have a filter with a sample rate of 1.7GHz. This is obviously
incorrect. Your filter must operate at the baseband rate; in the case of
USRP2 with decimation 16, as you have it set up, the filter will operate
at 100Msps/16=6.25Msps. The filter cutoff frequencies must be similarly
relative to the baseband frequency, not absolute – if you are tuned to
850MHz and want a cutoff at 850.4MHz, you would specify a cutoff
frequency of 400kHz.

Additionally, did you really mean to use the USRP2 source? The old USRP2
source has been deprecated in favor of UHD for a very long time.

–n

On Mon, Jul 2, 2012 at 6:19 AM,
<[email protected]mailto:[email protected]> wrote:
I have attached my GRC file with this email. I am getting the following
error?

gr_buffer::allocate_buffer: failed to allocate buffer of size 43852 KB

Umer


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

On Monday 02 Jul 2012 23:19:24 Jared Harvey wrote:

/home/jharvey/.local/lib/python2.7/site-packages/numpy/core/multiarray.so:
wrong ELF class: ELFCLASS32

Mixture of 32 and 64 bit packages, by any chance?

alexd

Hello Alex,

/home/jharvey/.local/lib/python2.7/site-packages/numpy/core/multiarray.so:
wrong ELF class: ELFCLASS32

AD> Mixture of 32 and 64 bit packages, by any
AD> chance?

Not likely, but perhaps. The packages were
installed via package manager, or the the GNURadio
build script. So I assume it all 64 bit, however
if I knew how to check, I’d check. Do you have a
suggested way to check? I see from Synaptic that
it doesn’t seem to specify 32 or 64.

Best regards.

… …-. / -.-- — …- / .-. . .- -… / - … … …
.-… . - … / … .- …- . / .- / -… . . .-.

Jared Harvey Operator KB1GTT

e-mail [email protected]
Web page http://jaredharvey.com

Hello Josh,

JH> – Dependency PYGTK_FOUND = TRUE
JH> – Dependency NUMPY_FOUND = FALSE
JH> – Disabling gnuradio-companion support.
JH> – Override with -DENABLE_GRC=ON/OFF

JB> The build environment is just trying to import
JB> numpy. Are you able to run python -c “import
JB> numpy” from the same terminal you are calling
JB> the build configuration from?

Sort of, it looks like I can run it, however see
below. Hmm, must have a wizard problem, as it
appears it’s the wrong Elf class :slight_smile:

$ python -c “import numpy”
Traceback (most recent call last):
File “”, line 1, in
File
“/home/jharvey/.local/lib/python2.7/site-packages/numpy/init.py”,
line 137, in
import add_newdocs
File
“/home/jharvey/.local/lib/python2.7/site-packages/numpy/add_newdocs.py”,
line 9, in
from numpy.lib import add_newdoc
File
“/home/jharvey/.local/lib/python2.7/site-packages/numpy/lib/init.py”,
line 4, in
from type_check import *
File
“/home/jharvey/.local/lib/python2.7/site-packages/numpy/lib/type_check.py”,
line 8, in
import numpy.core.numeric as _nx
File
“/home/jharvey/.local/lib/python2.7/site-packages/numpy/core/init.py”,
line 5, in
import multiarray
ImportError:
/home/jharvey/.local/lib/python2.7/site-packages/numpy/core/multiarray.so:
wrong ELF class: ELFCLASS32

Best regards.

… …-. / -.-- — …- / .-. . .- -… / - … … …
.-… . - … / … .- …- . / .- / -… . . .-.

Jared Harvey Operator KB1GTT

e-mail [email protected]
Web page http://jaredharvey.com

Hello Alex,

AD> Just noticed that the problem library is in
AD> ~/.local/. I’ve never seen that before, it
AD> seems to imply that you’ve got numpy installed
AD> in your home directory. Is that right? You
AD> could try moving ~/.local/lib/ to
AD> ~/.local/lib-ignoreme/ and see if that fixes
AD> it. Might break a whole load of other stuff in
AD> the process too, of course.

I once had activestate python installed on this
machine. It would appear that was a lingering
issue with it’s removal. I renamed the ~/local/lib
such that any links would be broken. It now
compiles just fine and I opened GRC, so I’m
listing this as SOLVED. Thanks very much for the
help.

Best regards.

… …-. / -.-- — …- / .-. . .- -… / - … … …
.-… . - … / … .- …- . / .- / -… . . .-.

Jared Harvey Operator KB1GTT

e-mail [email protected]
Web page http://jaredharvey.com

On 03/07/12 20:34, Jared Harvey wrote:

if I knew how to check, I’d check. Do you have a
suggested way to check? I see from Synaptic that
it doesn’t seem to specify 32 or 64.

Architecture: line in the output of apt-cache show packagename, or is
it? I can only find one i1386 package on my 64bit system, and the arch
is listed as AMD64! ‘dpkg -l | grep i386’ should show up 32-on-64
packages.

Just noticed that the problem library is in ~/.local/. I’ve never seen
that before, it seems to imply that you’ve got numpy installed in your
home directory. Is that right? You could try moving ~/.local/lib/ to
~/.local/lib-ignoreme/ and see if that fixes it. Might break a whole
load of other stuff in the process too, of course.

alexd