|
From: | Freedomfighter099 . |
Subject: | Re: [Discuss-gnuradio] baz-utils and python path |
Date: | Sat, 23 Apr 2016 10:59:51 +0200 |
I got everything to work using the export command so thanks for that,
I have unfortunately already run into another issue which I could need some guidance on
I’m running into this error: Could not import configuration: No module named config
Make sure you have a config.py (e.g. make a copy of config.model.py)
Traceback (most recent call last):
File "./scanner.py", line 74, in <module>
raise e
ImportError: No module named config
address@hidden:/usr/local/gnuradio/cyberspectrum$
it would seem that the python code in config.model.py is not executable is that right and if so how can I make it executable so that I can get the following scanner.py and spectrum_viewer.py to work
Any advice or guidance would be greatly appreciated
Thanks
Hello,
You can add the path to your PYTHONPATH variable by adding this line to the end of your ~/.bashrc file
export PYTHONPATH=$PYTHONPATH:/path/to/baz-utils/lib/python
You'll need to update the "/path/to/baz-utils/lib/python" to where you have cloned baz-utils. Also note baz-utils directory structure has changed and the readme is outdated , it should say lib/python instead of src/python. ( The structure was changed with this commit: https://github.com/balint256/baz-utils/commit/66d1382383e48a09b9af65a86f43f2eb813f83a3 )
After you add the export line above to your ~/.bashrc file, you'll need to log out and log back in for it to take effect. You can check it with
echo $PYTHONPATH
- Nate
> _______________________________________________
> On Apr 22, 2016, at 1:31 PM, Freedomfighter099 . <address@hidden> wrote:
>
> Hello
>
> Would someone please explain to me how to add the following to python path: Add src/python to PYTHONPATH
>
> I can’t seem to get it to work! instructions would be greatly appreciated
>
> cheers
>
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Prev in Thread] | Current Thread | [Next in Thread] |