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...@pipebreaker.pl              Ziomale na życie mają tu patenty specjalne.



_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to