TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ROBH
from: AHEM A RIVET`S SHOT
date: 2018-05-18 11:24:00
subject: Re: ftp causing invalid s

On Fri, 18 May 2018 10:23:03 +0100
RobH  wrote:

> I am not doing the mount on my NAS box, only on the Pi Zero.
>
> And I am not sure if you saw my reply to you after you supplied the new
> python code for me to use, but I am getting this when I run the said
> script.
>
> After I created the the said folders on the Pi Zero ie /mnt/CCTV/PiZero

 Perfect - and you have also mounted the NAS directory onto this ?
If not then do so.

> I then ran the python script for the sensor detection and camera , and
> it returned :
>
> Traceback (most recent call last)
>   File "intruder_recmotion.py",  line 37, in 
>    shutil.copyfile(RAMname, NASname)
>   File "/usr/lib/python 2.7/shutil.py", line 83, in copyfile with
> open(dst, 'wb') as fdst:
> IOError: [Errno 2] No such file or directory:
> '/192.168.0.22/mnt/CCTV/PiZero/2018-16-16_11.25.36.h264'

 Remove the /192.168.0.22 bit - the directory is /mnt/CCTV/PiZero
not /192.168.0.22/mnt/CCTV/PiZero.

--
Steve O'Hara-Smith                          |   Directable Mirror Arrays
C:\>WIN                                     | A better way to focus the sun
The computer obeys and wins.                |    licences available see
You lose and Bill collects.                 |    http://www.sohara.org/

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.