|
From: | Mostafa Shabani |
Subject: | Re: [Discuss-gnuradio] error make python test code in OOT module |
Date: | Tue, 23 May 2017 01:05:20 +1000 |
OK; great. 1 step forward.Since you're using Linux, you also need to add the library path such that "ldconfig" can find it, generally by editing the file "/etc/ld.so.conf" to add the new path ("/home/mostafa/prefix/lib") & then executing "sudo ldconfig". You can then verify that the libraries in /prefix are being found via reviewing the output from "ldconfig -p".- MLDOn Mon, May 22, 2017, at 09:38 AM, Mostafa Shabani wrote: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_6 4-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynloa d', '/usr/local/lib/python2.7/dist -packages', '/usr/lib/python2.7/dist-packa ges', '/usr/lib/python2.7/dist-packa ges/gtk-2.0', '/usr/lib/python2.7/dist-packa ges/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+062: 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_unittest2: 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 .....................***Failed0.01 sec
OK; great. 1 step forward.Since you're using Linux, you also need to add the library path such that "ldconfig" can find it, generally by editing the file "/etc/ld.so.conf" to add the new path ("/home/mostafa/prefix/lib") & then executing "sudo ldconfig". You can then verify that the libraries in /prefix are being found via reviewing the output from "ldconfig -p".- MLDOn Mon, May 22, 2017, at 09:38 AM, Mostafa Shabani wrote: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+062: 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_unittest2: 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
[Prev in Thread] | Current Thread | [Next in Thread] |