discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] error make python test code in OOT module


From: Mostafa Shabani
Subject: Re: [Discuss-gnuradio] error make python test code in OOT module
Date: Mon, 22 May 2017 23:38:23 +1000

Hi,
yes, literally "/prefix' ! :)

{{{
python2.7 -c "import sys; print sys.path"
}}}

returns:

['', '/home/mostafa/prefix/lib/python2.7/dist-packages', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/python2.7/dist-packages/wx-3.0-gtk2']

by
{{{
export PYTHONPATH=/home/mostafa/prefix/lib/python2.7/dist-packages
}}}

I get this new error:

2: Test command: /bin/sh "/home/mostafa/Dropbox/GnuRadioandUSRP/MyModules/gr-howto/build/python/qa_square_ff_test.sh"
2: Test timeout computed to be: 9.99988e+06
2: Traceback (most recent call last):
2:   File "/home/mostafa/Dropbox/GnuRadioandUSRP/MyModules/gr-howto/python/qa_square_ff.py", line 22, in <module>
2:     from gnuradio import gr, gr_unittest
2:   File "/home/mostafa/prefix/lib/python2.7/dist-packages/gnuradio/gr/__init__.py", line 41, in <module>
2:     from runtime_swig import *
2:   File "/home/mostafa/prefix/lib/python2.7/dist-packages/gnuradio/gr/runtime_swig.py", line 28, in <module>
2:     _runtime_swig = swig_import_helper()
2:   File "/home/mostafa/prefix/lib/python2.7/dist-packages/gnuradio/gr/runtime_swig.py", line 24, in swig_import_helper
2:     _mod = imp.load_module('_runtime_swig', fp, pathname, description)
2: ImportError: libgnuradio-runtime-3.7.12git.so.0.0.0: cannot open shared object file: No such file or directory
1/1 Test #2: qa_square_ff .....................***Failed    0.01 sec






On Mon, May 22, 2017 at 11:12 PM, Michael Dickens <address@hidden> wrote:
Hi Mostafa -

What does
{{{
python2.7 -c "import sys; print sys.path"
}}}
return?

You say you installed into "/prefix" (literally; not just an arbitrary setting) ... I'm thinking if you set PYTHONPATH to "/prefix/lib/python2.7/site-packages" then it should find the OOT module install.

Hope this is useful. - MLD

On Mon, May 22, 2017, at 09:05 AM, Mostafa Shabani wrote:
Thank you for your reply. 

the prefix is: \prefix
PYTHONPATH is empty
Ubuntu 16.04.1
and (if it is helpful)
whereis python2.7
returns:
python2: /usr/bin/python2.7 /usr/bin/python2.7-config /usr/bin/python2 /usr/lib/python2.7 /etc/python2.7 /usr/local/lib/python2.7 /usr/include/python2.7 /usr/share/man/man1/python2.1.gz




--
, Mostafa Shabani.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]