>> Can you send the complete backtrace that you get when you try the import?
>
> I'm not sure how to do that, do you mean this? :
>>>> from gnuradio import my_new_package
> Traceback (most recent call last):
>  File "<stdin>", line 1, in ?
> ImportError: cannot import name my_new_package
>>>>

As an update, if I add "path_to_top_dir/src/lib" to my PYTHONPATH and
attempt an 'import my_new_package' I get the following:
>>> import my_new_package
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/(path_to_top_dir)/src/lib/my_new_package.py", line 6, in ?
    import _my_new_package
ImportError: No module named _my_new_package
>>>

I noticed that the there is no _my_new_package.so in the src folder,
and I couldn't find one in the build directory anywhere (but it is the
install directory when I make install), if I were to 'make uninstall'
and just point PYTHONPATH to the build directory, where would I point
it so I could do an 'import my_new_package' from python?

Jason
Jason


_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to