discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Howto Write a Block


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] Howto Write a Block
Date: Mon, 12 Dec 2005 21:00:49 -0800
User-agent: Mutt/1.5.6i

On Sat, Dec 10, 2005 at 12:17:36PM -0500, address@hidden wrote:
> It is related to the python path resolution.  If I go to the
> /usr/local/lib/python/site-packages/gnuradio it works.  Moving to just one
> level higher and it does not.
> 
> It's the same location as the other gnuradio packages, very strange.
> Do you have any work arround?
> 
> I copied the _howto.so to the working lib directory, made a pointer to it
> in PYTHONPATH and it's working.
> What is this .so file?
> Any better work arround?

It works for me.  

I strongly suggest that you NOT start copying stuff around by hand.
That will lead to (serious) confusion.  The .so file is the shared
library that contains part of the "glue" between your C++ code and
python.  The glue actually consists of two parts, howto.py and
_howto.so.  For more information on how this works, see the docs at
http://www.swig.org


Try importing the file from somewhere out of the build tree.

E.g., 

  $ cd /tmp
  $ python
  >>> from gnuradio import howto

Eric




reply via email to

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