[Top][All Lists]

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

Re: [Discuss-gnuradio] gr-howto import error

From: milowenwen
Subject: Re: [Discuss-gnuradio] gr-howto import error
Date: Fri, 14 Aug 2009 11:44:26 -0700 (PDT)


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
# Where to look in the src tree for swig generated python code
# Where to look in the src tree for hand written python code

# 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.


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:

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.


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
> address@hidden
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

View this message in context: 
Sent from the GnuRadio mailing list archive at Nabble.com.

reply via email to

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