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: address@hidden
Subject: Re: [Discuss-gnuradio] Howto Write a Block
Date: Sat, 10 Dec 2005 12:17:36 -0500

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?

Original Message:
-----------------
From: Eric Blossom address@hidden
Date: Fri, 9 Dec 2005 15:38:46 -0800
To: address@hidden, address@hidden
Subject: Re: [Discuss-gnuradio] Howto Write a Block


On Fri, Dec 09, 2005 at 06:19:24PM -0500, address@hidden wrote:
> I am trying to make a new by following the gr-howto-write-a-block.  I was
> able to successfuly make myself a local directory structure with all the
> required file and compile the howto_square(2)_ff.cc.
> 
> I also so did a 'make check' in the src directory and it work good.
> 
> Now the question is how do you make the new function available?

Did you: 

  $ make install

What's your current directory when you try the import?
Move up a directory or two.  Python's got some screwy semantics on
import path resolution that sometime causes problems.  They're
planning on fixing this sometime in the future, but it introduces an
imcompatibility. http://www.python.org/peps/pep-0328.html

Eric

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .






reply via email to

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