TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ROBH
from: =?UTF-8?Q?BJ=C3=B6RN_LUND
date: 2018-05-17 23:07:00
subject: Re: ftp causing invalid s

On 2018-05-17 19:38, RobH wrote:
> After I created the the said folders ie /mnt/CCTV/PiZero 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'
>
> I have checked the path to the PiZero folder or dataset on my FreeNAS
> box and it is correct.


You still don't get it.
> '/192.168.0.22/mnt/CCTV/PiZero/2018-16-16_11.25.36.h264'
   ^^^^^^^^^^^^^

you try to save the file on the NAS's filesystem, when you should save
it on the PI's filesystem.

mount = make a link from a point in one machine's filesystem to point on
ANOTHER machine's filesystem

if you did the mount - like I said before - you would save it to
/mnt/nas ON THE PI. And it would end up on your NAS

given
mount .... //192.168.0.22/mnt/CCTV/PiZero /mnt/nas

the filename in the python script should be
'/mnt/nas/2018-16-16_11.25.36.h264'



--
--
Björn

--- 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™.