Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: unpack_from() argument 1 must be string or read-only buffer, ... #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Mar 9, 2015

  1. TypeError: unpack_from() argument 1 must be string or read-only buffe…

    …r, not bytearray
    
    Fixes an error with manager.py causing the following error.
    
     ~/stratasys $ ./stratasys-cartridge.py info --machine-type prodigy
    --eeprom-uid d1000000a8ae2523 -i new_eeprom.bin
    Traceback (most recent call last):
      File "./stratasys-cartridge.py", line 204, in <module>
        app.run()
      File "./stratasys-cartridge.py", line 47, in run
        args.func(args)
      File "./stratasys-cartridge.py", line 134, in command_info
        cartridge = m.decode(machine_number, args.eeprom_uid,
    cartridge_crypted)
      File "/home/pi/stratasys/stratasys/manager.py", line 74, in decode
        cartridge = self.unpack(cartridge_packed)
      File "/home/pi/stratasys/stratasys/manager.py", line 137, in unpack
        serial_number = struct.unpack_from("<d", cartridge_packed, 0x0)[0]
    TypeError: unpack_from() argument 1 must be string or read-only buffer,
    not bytearray
    bigner committed Mar 9, 2015
    Configuration menu
    Copy the full SHA
    c70b73e View commit details
    Browse the repository at this point in the history