mame82 / duck2spark

Converter for raw RubberDucky payloads to Digispark Arduino IDE Sketch source.
472 stars 95 forks source link

TypeError: ord() expected string of length 1, but int found #18

Closed antoninhrlt closed 3 years ago

antoninhrlt commented 3 years ago

Hey ! I've downloaded duck2spark from github, and when I want to run it, an error happen My command:

python3 duck2spark/duck2spark.py -i ducky.bin -o Payload.bin

Error:

Traceback (most recent call last):
  File "duck2spark/duck2spark.py", line 155, in <module>
    main(sys.argv[1:])
  File "duck2spark/duck2spark.py", line 140, in main
    result = generate_source(payload, init_delay=init_delay, loop_count=loop_count, loop_delay=loop_delay, blink=blink)
  File "duck2spark/duck2spark.py", line 65, in generate_source
    declare += str(hex(ord(payload[c]))) + ", "
TypeError: ord() expected string of length 1, but int found
antoninhrlt commented 3 years ago

If you have the same problem, look at this