On Tue, Dec 05, 2006 at 08:30:20AM -0800, Daniel G. wrote:
Does anyone have a clue as to why my module does not load outside
of the “test” environment?
Does your PYTHONPATH include the path to where ever you installed the module?
My PYTHONPATH was empty. I set the PYTHONPATH and it worked. Thanks.
Good.
Another question: Why do the scripts in gnuradio-examples work
without setting the PYTHONPATH?
Your python is probably built with
/usr/local/lib/python/site-packages in sys.path.
E.g.,
[eb@cyan dl]$ unset PYTHONPATH
[eb@cyan dl]$ python
Python 2.4.2 (#1, Oct 13 2006, 17:11:24)
[GCC 4.1.0 (SUSE Linux)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.