[Tutor] Cluster analysis script error

Alan Gauld alan.gauld at yahoo.co.uk
Tue Oct 11 19:23:20 EDT 2016


On 11/10/16 22:13, Mike Armson wrote:

> I am trying to run a script (attached) which determines the number of
> clusters of fixations within a set of eye movement data. The script says to
> enter the following command on python:
> 
> "python fixationClusters.py outputPrefix input clusterDistance"
> 
> I am getting a syntax error with the output command 

I'm guessing that you are trying to run  this from the
Python interactive prompt (>>>)?

In fact, you should run it from an OS shell prompt (you
don't say which OS but in Windoze thats a CMD prompt,
in MacOS the Terminal App and in Linux whichever of
the many Terminal apps you use...)

The clue is that you are getting a syntax error - which is
usually from Python, but the command begins with 'python'
which is how you call the interpreter from the OS.

I suspect the phrase "...enter the following command on python:"
is a little misleading, it should say something like
"enter the following command at an OS shell prompt"

hth
-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list