Python Forum
Value error when converting hex value to bytearray
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Value error when converting hex value to bytearray
#1
Hi,
I am getting ValueError: non-hexadecimal number found in fromhex() arg at position 7.
Below is the code :
Cmd1 = bytearray.fromhex("08 22 1 0 1 0 D4");

Please let me know how to solve this issue
Reply


Messages In This Thread
Value error when converting hex value to bytearray - by shubhamjainj - Mar-01-2019, 06:02 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  appending to a bytearray Skaperen 21 14,396 Mar-19-2023, 11:05 PM
Last Post: Skaperen
  Split Bytearray into separate Files by Hex delimter lastyle 5 2,660 Mar-09-2023, 07:49 AM
Last Post: bowlofred
  Save multiple Parts of Bytearray to File ? lastyle 1 955 Dec-10-2022, 08:09 AM
Last Post: Gribouillis
  bytearray object - why converting to ascii? Chepilo 2 1,631 Nov-21-2022, 07:25 PM
Last Post: Chepilo
  Bytearray substitution Vismuto 1 2,621 Apr-14-2020, 09:18 AM
Last Post: TomToad
  int() function with bytearray() Jona66 1 2,399 Sep-08-2019, 12:41 PM
Last Post: ichabod801
  Conversion needed from bytearray to Floating point braveYug 1 4,116 May-07-2018, 12:23 PM
Last Post: snippsat
  Windows DIB format in bytearray to image? dusca 2 2,763 Mar-28-2018, 10:35 PM
Last Post: dusca
  Bytearray questions mattps 2 14,406 Mar-25-2018, 06:54 AM
Last Post: mattps
  ByteArray outside while true Schampbakken 5 4,375 Feb-18-2018, 02:02 PM
Last Post: buran

Forum Jump:

User Panel Messages

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