<p dir="ltr">Paths don't accept spaces and the log shows "Python programs" as part of the path.</p>
<p dir="ltr">Use the escape character \ eg Python\ programs in the path. That should sort it</p>
<div class="gmail_quote">On 20 Oct 2013 20:45, "james snyder" <<a href="mailto:snyder.webmaster@gmail.com">snyder.webmaster@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><div><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif">
<div style="font-size:13px">Re: GPIO</div>
<br>
<div style="font-size:13px;background-color:transparent">Some new students need help running a GPIO system on a model B raspberry pi running Raspberian Linux, so I am forwarding this message to our KLUG group mailing list on their behalf....</div>

<div style="font-size:13px;background-color:transparent"><br></div><div style="font-size:13px;background-color:transparent">"We have connected the motor and battery to the GPIO RPi . </div>
<div style="font-size:13px;background-color:transparent">We have saved a Python program (developed using the Python Shell) in :          </div><div style="font-size:13px;background-color:transparent">/home/pi/Desktop/Python programs</div>


<div style="font-size:13px;background-color:transparent">If we click on: Python programs, we see the file: motor.py</div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:'times new roman','new york',times,serif">
<br>
</div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:'times new roman','new york',times,serif"><span style="background-color:transparent">The problem is</span></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:'times new roman','new york',times,serif">

<span style="background-color:transparent"><br></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:'times new roman','new york',times,serif"><span style="background-color:transparent">when we open LXTerminal we type: </span><br>

</div>
<div style="font-size:13px;background-color:transparent">cd /home/pi/Desktop/Python programs (is where our motor.py is)</div>
<div style="font-size:13px;background-color:transparent">We get the error message</div>
<div style="font-size:13px;background-color:transparent">"No such file or directory"</div>
<div style="font-size:13px;background-color:transparent"><br>
</div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:'times new roman','new york',times,serif"><span style="background-color:transparent">We have formatted another Raspberian SD Card from scratch.</span></div>


<div style="font-size:13px;background-color:transparent"><br>
</div>
<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:'times new roman','new york',times,serif">
In order to make our motor to work we need to use LXTerminal to find a directory where we have saved our file, and once we are <span style="background-color:transparent">in the directory we have to run the command: sudo python motor.py  to start our motor but LXTerminal says "No such file""</span></div>

<div style="font-style:normal;font-size:13px;background-color:transparent;font-family:'times new roman','new york',times,serif"><span style="background-color:transparent"><br></span></div><div style="font-style:normal;font-size:13px;background-color:transparent;font-family:'times new roman','new york',times,serif">

Without actually seeing the system, based on the above log, any thoughts on what the problem is here?</div>
</div>
</div>
</div>

<br><br><br>-- <br><div>James Snyder</div>
<div>Telephone: <a href="tel:%2B447914011154" value="+447914011154" target="_blank">+447914011154</a></div>
<div><a href="mailto:snyder.webmaster@googlemail.com" target="_blank">snyder.webmaster@googlemail.com</a></div>
<div>Skype Name: michael.james.snyder<br></div><br>
<br>_______________________________________________<br>
Kent mailing list<br>
<a href="mailto:Kent@mailman.lug.org.uk">Kent@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/kent" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/kent</a><br></blockquote></div>