Monday, September 7, 2015

[Discuss-gnuradio] Running flowgraphs from command line

Hi everybody,

I installed GNURadio on a fresh machine with Mac OS X 10.10.5 via MacPorts. I now have 2 Python installs in /usr/bin, python2.6 and python2.7. Running flowgraphs with GRC is no problem. However, when trying to run a .py-file from the terminal, as suggested in the guided tutorial 3.1 („if else") some modules are not found: 

Patricks-iMac:work patrick$ python if_else_mod.py
Traceback (most recent call last):
  File "if_else_mod.py", line 18, in <module>
    from PyQt4 import Qt
ImportError: No module named PyQt4


Why does it work, when running the file from GRC? Is my terminal using the wrong python install? How could I change that? I also tried changing the path variable on my notebook a few days ago, when I ran into the same problem. But since I am new to python and the command line I obviously made a mistake so that at some point I could not start the GRC anymore. So your help is appreciated and needed. Couldn't find a similar question in the archives.

Thank you.
Patrick


No comments:

Post a Comment