Hello,

The solution to resolving your error is printed within the error itself.

"Make sure you have a config.py (e.g. make a copy of config.model.py)"

You need to copy config.model.py to config.py within the cyberspectrum/ folder. 
scanner.py should then run.

Here is the relevant bit of code - 
https://github.com/balint256/cyberspectrum/blob/master/scanner.py#L67

Regards,
Nate


> On Apr 23, 2016, at 1:59 AM, Freedomfighter099 . 
> <[email protected]> wrote:
> 
> 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
> 
> freedomfighter@radiocom:/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
> 
> 
> 2016-04-23 0:31 GMT+02:00 Nate Temple <[email protected]>:
> 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 . 
> > <[email protected]> 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
> > [email protected]
> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> 
> _______________________________________________
> Discuss-gnuradio mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to