Hello Josh,
Thanks alot for your help. Noting that this problem appeared after the
restart, it turns out that the Pythonpath was altered to a default
value. I have a 64bit machine so the libraries are in lib64 folder and
not lib as defaulted somehow in my pc when I do the restart. I followed
your instruction that includes setting up the right values for the
pythonpath and it worked.
To avoid the problem to appear again , I had to add this export
statement in the .bashsc file.
Thank you very much for your help.
Kind regards,
Yahia Tachwali
From: Josh B. [[email protected]]
Sent: Monday, November 16, 2009 5:07 PM
To: Tachwali, Yahia
Cc: [email protected]
Subject: Re: [Discuss-gnuradio] RE: Again! no module named grc!
Step 1) Lets avoid issues with multiple versions of gnuradio and stuff
like that. Remove all gnuradio stuff in /usr with rm -rf. Dont let a
single gnuradio directory survive.
Step 2) Run sudo make install from your gnuradio build directory. Take
note where the python files get installed.
Step 3) run this in the terminal:
python -c “from gnuradio import grc”
If there is no error, then grc and gnuradio should work. Done!
However, if this program spits out an error, you must set your
PYTHONPATH. The python path is a directory that ends in site-package or
dist-packages. Mine is /usr/local/lib/python2.6/dist-packages
Step 4) Set your python path by adding this line to ~/.bashrc
export PYTHONPATH=/your/pythonpath/here
Step 5) type bash, then run this command again:
python -c “from gnuradio import grc”
it should work!
-Josh