[chirp_devel] run_tests: No module named serial

Tom Hayward
Thu Apr 10 11:01:33 PDT 2014


On Wed, Apr 9, 2014 at 4:48 PM, Tom Hayward <esarfl at gmail.com> wrote:
> Sorry I don't have the time to focus on this right now, but here's another hint:
> http://stackoverflow.com/questions/2429511/why-do-people-write-usr-bin-env-python-on-the-first-line-of-a-python-script
>
> Notice that this is *not* how Dan calls Python from run_tests. You
> might fix it and submit it as your first bug fix :-)
>
> Tom KD7LXL

Okay, here's what I was hinting but didn't have a chance to type up yesterday:

Add kk7ds python to your path:

PATH=/opt/kk7ds/bin/python:$PATH


Then fix the script so that it runs the first "python" found in your path:

diff -r fa9439f41b37 tests/run_tests
--- a/tests/run_tests Wed Mar 19 10:38:45 2014 -0700
+++ b/tests/run_tests Thu Apr 10 10:15:04 2014 -0700
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 #
 # Copyright 2011 Dan Smith <dsmith at danplanet.com>
 #

Now your system will choose the first "python" found in your PATH,
which now is kk7ds python, which includes all the libraries Chirp
requires.

Tom KD7LXL



More information about the chirp_devel mailing list