On Wed, Nov 21, 2007 at 10:59:06PM -0500, Ed Criscuolo wrote: > > Eric Blossom wrote: > >> >> You need to install an empty __init__.py in to your tdrss_utils >> directory. > > I already have an empty __init__.py there. I did find why I > wasn't getting the .pyc & .pyo files. There was a syntax error in > my python block, but the error was geting lost in the huge voulme > of stuff that comes out during a make! > > I fixed it, and I now end up with .py, .pyc, and .pyo files for > both __init__ and gold_code_pn_source_b installed in the > .../site-packages/gnuradio/tdrss_utils/ directory. > > But when I write any python code containing > > from gnuradio import tdrss_utils > ... > ... > ... > pn = tdrss_utils.gold_code_pn_source_b(11, 1, 1, 1, 1) > > I still get the error > > AttributeError: 'module' object has no attribute > 'gold_code_pn_source_b' > > Any other ideas? I'm stumped!
$ python >>> from gnuradio import tdrss_utils >>> dir(tdrss_utils) Do you see your module(s) in there or something unexpected? Eric _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio