From: Tomasz T. <to...@pi...> - 2020-08-24 18:51:40
|
On Mon, Aug 24, 2020 at 09:57:58AM -0400, Dennis Putnam wrote: > I have the following python 3 code: > > *fn='/mnt/1wire/3A.'+blower.id_+'/PIO.BYTE'** > **with open(fn,'wb') as fh:** > ** fh.write(onOff.to_bytes(1,byteorder=sys.byteorder)) > > *This produces the error: > > *OSError: [Errno 22] Invalid argument > Could you use "strace -etrace=file ./youscript.py" to see what _exactly_ is being written? Or better yet, switch to ownet and do not use FUSE. -- Tomasz Torcz To co nierealne – tutaj jest normalne. to...@pi... Ziomale na życie mają tu patenty specjalne. |