Python Forum
typeerror: 'str' does not support the buffer interface
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
typeerror: 'str' does not support the buffer interface
#3
Maybe you need a byte string b"............":

ser.write(b"\x07\xF0\x00\x0F\x00\xBC\x07\x0F")
Reply


Messages In This Thread
RE: typeerror: 'str' does not support the buffer interface - by heiner55 - Nov-12-2017, 01:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Read buffer from bluetooth frohr 2 2,223 Jun-01-2022, 01:31 PM
Last Post: frohr
  JS Buffer.from VS struct.pack DreamingInsanity 3 2,553 Apr-05-2021, 06:27 PM
Last Post: DreamingInsanity
  Seperate output buffer matt_the_hall 2 2,413 Mar-15-2021, 08:44 PM
Last Post: matt_the_hall
  PyAudio Buffer Data Calculation MclarenF1 0 2,192 Aug-21-2020, 10:55 AM
Last Post: MclarenF1
  Additional buffer for Windows constantin01 0 1,431 Mar-31-2020, 10:24 AM
Last Post: constantin01
  Getting MemoryError frames.write(buffer) kunwarsingh 0 1,653 Feb-10-2020, 09:39 PM
Last Post: kunwarsingh
  How do I use this? TypeError: 'NoneType' object does not support item assignment ejected 9 22,485 Mar-26-2019, 05:06 AM
Last Post: ejected
  os.system("netsh interface set interface 'Wi-Fi' enabled") aniyanetworks 12 10,454 Jan-18-2019, 04:07 AM
Last Post: aniyanetworks
  The supplied user buffer is not valid for the requested operation. py2exe 1 3,365 Apr-27-2018, 12:17 AM
Last Post: py2exe
  Python error: TypeError: expected string or buffer chris0147 1 6,786 Feb-23-2018, 02:42 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020