discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] "How to Write a Signal Processing Block" vaguenes


From: Jason Uher
Subject: Re: [Discuss-gnuradio] "How to Write a Signal Processing Block" vagueness
Date: Tue, 19 Aug 2008 15:14:12 -0500

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




reply via email to

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