# Re: Running flowgraphs from command line

**URL:** <https://www.ruby-forum.com/t/re-running-flowgraphs-from-command-line/243291>\
**Category:** GNU Radio\
**Created:** [September 8, 2015, 6:49pm UTC](https://www.ruby-forum.com/t/re-running-flowgraphs-from-command-line/243291 "2015-09-08T18:49:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [September 8, 2015, 6:49pm UTC](https://www.ruby-forum.com/t/re-running-flowgraphs-from-command-line/243291/1 "2015-09-08T18:49:20Z")

</div>

Hi,

I did the following command, as suggested:

Patricks-iMac:work patrick$ sudo port select python python27  
Selecting ‘python27’ for ‘python’ succeeded. ‘python27’ is now active.  
Patricks-iMac:work patrick$ python if\_else\_mod.py  
Fatal Python error: PyThreadState\_Get: no current thread  
Abort trap: 6

As you can see python crashes and I also get another GUI fail message.  
Running like python2.7 if\_else\_mod.py still works, though. I tried to  
revert the above change, but:

Patricks-iMac:work patrick$ sudo port select python python  
Selecting ‘python’ for ‘python’ failed: The specified version ‘python’  
is not valid.

Think I will just stick with the way that works, until I at some point  
need to change something and then dive more into this. Thanks for your  
patience though.

Greetings  
Patrick

---

<div class="post-metadata">

**Author:** ![Patrick\_KrS\_mer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/87869e/32.png) [@Patrick\_KrS\_mer](https://www.ruby-forum.com/u/Patrick_KrS_mer)\
**Post date:** [September 8, 2015, 8:08pm UTC](https://www.ruby-forum.com/t/re-running-flowgraphs-from-command-line/243291/2 "2015-09-08T20:08:48Z")

</div>

[off list]

HiPatrick - Thanks for the feedback. I’ve heard of your issue before;  
never experienced it myself. Do you mind if I ask you to do a few things  
to help debug & maybe we can figure out a better way to keep GR / Python  
/ MP happy? I not, that’s fine too; just thought I’d ask.

1. If you want to revert ‘python’ back to where it was, do “sudo port  
select python none”.

2. what does “which python” return after you do “sudo port select python  
python27”? Hopefully it is now /opt/local/bin/python?

3. What happens when you execute the following (assuming (2) is still  
valid, not (1))?  
{{{  
PYTHONPATH= /opt/local/bin/python -c “import sys; print sys.version;  
print sys.path”  
PYTHONPATH= /usr/bin/python -c “import sys; print sys.version; print  
sys.path”  
}}}

Thanks! - MLD

---

<div class="post-metadata">

**Author:** ![Patrick\_KrS\_mer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/87869e/32.png) [@Patrick\_KrS\_mer](https://www.ruby-forum.com/u/Patrick_KrS_mer)\
**Post date:** [September 8, 2015, 8:09pm UTC](https://www.ruby-forum.com/t/re-running-flowgraphs-from-command-line/243291/3 "2015-09-08T20:09:23Z")

</div>

My bad; let me really take this off list 🙂
