PYTHONPATH on Fedora Core 6 x86_64

Hi everyone!

I have followed the instructions on
http://gnuradio.org/trac/wiki/FC5Install, but I still have a problem.
Python does not find the modules unless I add all the necessary
subfolders to PYTHONPATH. Any ideas on what I am doing wrong?

Best Regards,

Trond D.

2006/11/3, Trond D. [email protected]:

Hi everyone!

I have followed the instructions on
http://gnuradio.org/trac/wiki/FC5Install, but I still have a problem.
Python does not find the modules unless I add all the necessary
subfolders to PYTHONPATH. Any ideas on what I am doing wrong?

I found the problem. There is no init.py in
$PREFIX/lib64/python2.4/site-packages/gnuradio and the in the
subfolders, so python does not recognize them as modules.


Trond D.

On Fri, Nov 03, 2006 at 12:25:33PM +0100, Trond D. wrote:

Hi everyone!

I have followed the instructions on
http://gnuradio.org/trac/wiki/FC5Install, but I still have a problem.
Python does not find the modules unless I add all the necessary
subfolders to PYTHONPATH. Any ideas on what I am doing wrong?

Best Regards,

Trond D.

You may need to create an empty file called init.py in the one or
more of the site-packages and/or site-packages/gnuradio directories.

Somebody who cares should file a bug report against this inconsistency
in whatever bug tracker FC* uses. They treat system installed
packages different than third party packages.

Eric

2006/11/3, Eric B. [email protected]:

Trond D.

You may need to create an empty file called init.py in the one or
more of the site-packages and/or site-packages/gnuradio directories.

Somebody who cares should file a bug report against this inconsistency
in whatever bug tracker FC* uses. They treat system installed
packages different than third party packages.

Eric

I would gladly file a bug report, but I need some help clearing up
what the problem is. There are two ways to add a module to the search
path: Either add a module.pth file as described in site.py or add a
init.py file to the module folder, but I do not know what the best
practice is. Currently some of the gnuradio modules does neither. Is
this a problem with gnuradio or fedora?


Trond D.

On Sat, Nov 04, 2006 at 09:14:41AM +0100, Trond D. wrote:

Eric
Trond D.
Hi Trond,

It’s a fedora problem. However, the problem isn’t really the
init.py stuff, it’s how Python is configured. The requirement to
install into both the lib and lib64 trees is the problem, and in fact
isn’t how they handle code that is distributed with python.

If you check the archives for X86_64 and FC5 you’ll find a bunch of
discussion of this problem. Look for the part where I’m asking X86_64
users for data, and then the summary.

Eric