[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libftdi
Subject:    RE: ftdi.write_data =?UTF-8?Q?doesn=E2=80=99t?= work with some python3 unicode strings
From:       "Chris Brackert" <cbrackert () n ! io>
Date:       2015-10-30 15:59:31
Message-ID: 1446220770635.68081c35 () Nodemailer
[Download RAW message or body]

I apologize that I haven't been able to test with Python 2. I'm on vacation and \
without a computer until Monday. I will check then.

On Fri, Oct 30, 2015 at 3:57 AM, Michel Zou <xantares09@hotmail.com>
wrote:

> Hi,
> Thomas, I think you can apply this patch even if Chris doesn't answer.
> M.
> From: xantares09@hotmail.com
> To: libftdi@developer.intra2net.com
> Subject: RE: ftdi.write_data doesn't work with some python3 unicode strings
> Date: Tue, 27 Oct 2015 10:33:34 +0000
> Hi,
> Glad it worked, could you test with python 2 ?
> The method was not prepared for Python at all, and that length argument was not \
> deduced from the object passed. M.
> Date: Mon, 26 Oct 2015 16:45:52 -0700
> From: cbrackert@n.io
> To: libftdi@developer.intra2net.com
> CC: xantares09@hotmail.com
> Subject: Re: Re: ftdi.write_data doesn't work with some python3 unicode strings
> The patch is working great. Thanks guys! The dumb workaround that I was using meant \
> calling the library with python 3 unicode strings, but once I updated those to \
> bytes everything worked. The code I'm working with used to call ftdi.write_data \
> with a third parameter for "length" but now that is not allowed. Was that \
> unnecesarry to begin with? On Fri, Oct 23, 2015 at 5:16 PM, Chris Brackert \
> <cbrackert@n.io> wrote: I need to get my test hardware setup again. I should be \
> able to get to this early next week and then I will report back. Thanks! On Fri, \
> Oct 23, 2015 at 4:22 AM, Thomas Jarosch <thomas.jarosch@intra2net.com> wrote: Hi \
> Chris, On Friday, 16. October 2015 13:40:41 Thomas Jarosch wrote:
> > > I know this fix is not the proper way to do this but it is working for
> > > me. Can you please investigate this issue and fix the library to work
> > > with all python3 strings?
> please test the fix Michel provided and let me know if it works for you.
> Thanks,
> Thomas
> --
> libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
> To unsubscribe send a mail to libftdi+unsubscribe@developer.intra2net.com   
> libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
> To unsubscribe send a mail to libftdi+unsubscribe@developer.intra2net.com
> 		 	   		  
> libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
> To unsubscribe send a mail to libftdi+unsubscribe@developer.intra2net.com
> 		 	   		  
> --
> libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
> To unsubscribe send a mail to libftdi+unsubscribe@developer.intra2net.com   

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@developer.intra2net.com   


[Attachment #3 (text/html)]

<div>I apologize that I haven't been able to test with Python 2. I'm on vacation and \
without a computer until Monday. I will check then.</div> <div \
class="mailbox_signature"><br></div> <br><br><div class="gmail_quote"><p>On Fri, Oct \
30, 2015 at 3:57 AM, Michel Zou <span dir="ltr">&lt;<a \
href="mailto:xantares09@hotmail.com" \
target="_blank">xantares09@hotmail.com</a>&gt;</span> wrote:<br></p><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex;"><div class="hmmessage"> <div dir="ltr">Hi,<br>Thomas, I \
think you can apply this patch even if Chris doesn't answer.<br>M.<br><br><div> <hr \
id="stopSpelling">From: xantares09@hotmail.com<br>To: \
libftdi@developer.intra2net.com<br>Subject: RE: ftdi.write_data doesn't work with \
some python3 unicode strings<br>Date: Tue, 27 Oct 2015 10:33:34 \
                +0000<br><br><style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style><div dir="ltr">Hi,<br>Glad it worked, could you test with python 2 \
?<br>The method was not prepared for Python at all, and that length argument was not \
deduced from the object passed.<br>M.<br><br><div> <hr id="ecxstopSpelling">Date: \
Mon, 26 Oct 2015 16:45:52 -0700<br>From: cbrackert@n.io<br>To: \
libftdi@developer.intra2net.com<br>CC: xantares09@hotmail.com<br>Subject: Re: Re: \
ftdi.write_data doesn't work with some python3 unicode strings<br><br><span \
id="ecxmailbox-conversation"><div>The patch is working great. Thanks guys! The dumb \
workaround that I was using meant calling the library with python 3 unicode strings, \
but once I updated those to bytes everything worked.</div> <div><br></div>
<div>The code I'm working with used to call ftdi.write_data with a third parameter \
for "length" but now that is not allowed. Was that unnecesarry to begin \
with?</div></span><br><br><div class="ecxgmail_quote">On Fri, Oct 23, 2015 at 5:16 \
PM, Chris Brackert <span dir="ltr">&lt;<a \
href="mailto:cbrackert@n.io">cbrackert@n.io</a>&gt;</span> wrote:<br><br><blockquote \
class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;"><div> \
<span id="ecxmailbox-conversation"><div>I need to get my test hardware setup again. I \
should be able to get to this early next week and then I will report back. \
Thanks!</div></span><br><br><div class="ecxgmail_quote"> On Fri, Oct 23, 2015 at 4:22 \
AM, Thomas Jarosch <span dir="ltr">&lt;<a \
href="mailto:thomas.jarosch@intra2net.com">thomas.jarosch@intra2net.com</a>&gt;</span> \
wrote:<br><br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc \
solid;padding-left:1ex;">Hi Chris, <br><br>On Friday, 16. October 2015 13:40:41 \
Thomas Jarosch wrote: <br>&gt; &gt; I know this fix is not the proper way to do this \
but it is working for <br>&gt; &gt; me. Can you please investigate this issue and fix \
the library to work <br>&gt; &gt; with all python3 strings?
<br><br>please test the fix Michel provided and let me know if it works for you.
<br><br>Thanks,
<br>Thomas
<br><br><br>--
<br>libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
<br>To unsubscribe send a mail to libftdi+unsubscribe@developer.intra2net.com   
<br><br><br></blockquote>
</div>
<br></div></blockquote>
</div>
<br><br><hr><b>libftdi</b>  -  see <a \
href="http://www.intra2net.com/en/developer/libftdi">http://www.intra2net.com/en/developer/libftdi</a> \
for details.<br> To unsubscribe send a mail to <a \
href="mailto:libftdi+unsubscribe@developer.intra2net.com">libftdi+unsubscribe@developer.intra2net.com</a><br><br></div> \
</div> <br><hr><b>libftdi</b>  -  see <a \
href="http://www.intra2net.com/en/developer/libftdi">http://www.intra2net.com/en/developer/libftdi</a> \
for details.<br> To unsubscribe send a mail to <a \
href="mailto:libftdi+unsubscribe@developer.intra2net.com">libftdi+unsubscribe@developer.intra2net.com</a><br><br></div> \
</div> <br><hr><p><b>libftdi</b>  -  see <a \
href="http://www.intra2net.com/en/developer/libftdi">http://www.intra2net.com/en/developer/libftdi</a> \
for details.<br> To unsubscribe send a mail to <a \
href="mailto:libftdi+unsubscribe@developer.intra2net.com">libftdi+unsubscribe@developer.intra2net.com</a></p>


<br></div></blockquote></div><br>
<br><hr><p><b>libftdi</b>&nbsp;-&nbsp;see <a \
href="http://www.intra2net.com/en/developer/libftdi">http://www.intra2net.com/en/developer/libftdi</a> \
for details.<br> To unsubscribe send a mail to <a \
href="mailto:libftdi+unsubscribe@developer.intra2net.com">libftdi+unsubscribe@developer.intra2net.com</a></p>


<br>=



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic