Alex, The "make check" command invokes run_tests which run everything that matches qa_*.py (qa_howto.py)and return the final result. It will bypass the default PYTHONPATH and set your own built tree in which search for your C++/python files. You can find these settings in run_tests: ---------------------- # Where to look in the build tree for our shared library libbld=/home/yuan/Desktop/SDR/built/src/lib # Where to look in the src tree for swig generated python code libsrc=/home/yuan/Desktop/SDR/built/src/lib # Where to look in the src tree for hand written python code py=/home/yuan/Desktop/SDR/built/src/python
# Where to look for installed GNU Radio python modules # FIXME this is wrong on a distcheck. We really need to ask gnuradio-core # where it put its python files. installed_pythondir=/usr/lib/python2.6/dist-packages installed_pyexecdir=/usr/lib/python2.6/dist-packages PYTHONPATH="$libbld:$libbld/.libs:$libsrc:$py:$installed_pythondir:$installed_pyexecdir:$PYTHONPATH" #PYTHONPATH="$libbld:$libbld/.libs:$libsrc:$py:$installed_pythondir:$installed_pyexecdir" ------------------------------------- Also, I think there's another way which could run qa_howto.py directly. As howto.py has already been generated by SWIG, you can find it under python sys.path directory: /usr/lib/python2.6/dist-packages/gnuradio While the command "import howto.py" in qa_howto.py will try to import that file from /usr/lib/python2.6/dist-packages (howto.py's parent directory), but it is not there. You can modify this command as "from gnuradio import howto" to import howto successfully. Hope it will help. Milo Alex Young wrote: > > Background info: > GNU Radio trunk, revision 11163 > Ubuntu 8.04, 32bit > make version 3.81 > autoconf version 2.61 > gcc version 4.2.4 > > The problem I am having: > I downloaded gr-howto-write-a-block-3.2.tar.gz from > ftp.gnu.org/gnu/gnuradio/, extracted it, and ran ./configure, make, make > check and make install. (I did all this using sudo; my source tree is > owned by root.) There were no apparent errors, but I can include the > output if it is desired. I attempted to run qa_howto.py and recieved the > following error: > > Traceback (most recent call last): > File "./qa_howto.py", line 24, in <module> > import howto > ImportError: No module named howto > > > Per a comment from Eric on 18 Nov, 05 to the list, I checked my > PYTHONPATH variable: > > $ echo $PYTHONPATH > /usr/local/lib/python2.5/site-packages > > I also found a thread started by William Sherman from April 09 with > similar issues, but I did not see its resolution. > > So, the question: > Can anyone tell me if I've missed something about how to install "howto" > and import it successfully? I have had no operational problems with my > trunk install of gnuradio. > > Thanks, > Alex Young > > > > > _______________________________________________ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > http://lists.gnu.org/mailman/listinfo/discuss-gnuradio > > -- View this message in context: http://www.nabble.com/gr-howto-import-error-tp24962082p24976686.html Sent from the GnuRadio mailing list archive at Nabble.com. _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio