Skip to content

Unpack process doesn't work on Ubuntu 16.04 64bit #6

Description

@danballance

Ubuntu 16.04 x64. Python 3.5 and 3.6.

[I] (env3.6) dan@dan-UX303UA ~/C/p/bwConvert> python main.py
Heyo I'm Jaxter, thanks for using my little script. Notice how I said 'my'. That's right, this is something that I made, and you should therefore be pretty careful about using it. I won't take responsibility for breaking your Bitwig devices, so make sure you have a copy of them saved somewhere before starting. Also, be cautious in general; just because I trust my own work doesn't mean you should.
Now, with the fearmongering out of the way, lets get started.

Enter the subdirectory that your devices are in. (If they're in the 'inputs' folder, just press enter)
-NoteEcho.bwdevice
Traceback (most recent call last):
  File "main.py", line 121, in <module>
    magic(file, inputDir)
  File "main.py", line 24, in magic
    gather = decoder.bwDecode(device_data)
  File "/home/dan/Code/python/bwConvert/src/decoder.py", line 417, in bwDecode
    output.append(getClass(text))
  File "/home/dan/Code/python/bwConvert/src/decoder.py", line 282, in getClass
    getParams(text, object)
  File "/home/dan/Code/python/bwConvert/src/decoder.py", line 249, in getParams
    value = parseField(text)
  File "/home/dan/Code/python/bwConvert/src/decoder.py", line 139, in parseField
    tempList.append(getClass(text))
  File "/home/dan/Code/python/bwConvert/src/decoder.py", line 282, in getClass
    getParams(text, object)
  File "/home/dan/Code/python/bwConvert/src/decoder.py", line 249, in getParams
    value = parseField(text)
  File "/home/dan/Code/python/bwConvert/src/decoder.py", line 108, in parseField
    return getClass(text)
  File "/home/dan/Code/python/bwConvert/src/decoder.py", line 282, in getClass
    getParams(text, object)
  File "/home/dan/Code/python/bwConvert/src/decoder.py", line 249, in getParams
    value = parseField(text)
  File "/home/dan/Code/python/bwConvert/src/decoder.py", line 108, in parseField
    return getClass(text)
  File "/home/dan/Code/python/bwConvert/src/decoder.py", line 282, in getClass
    getParams(text, object)
  File "/home/dan/Code/python/bwConvert/src/decoder.py", line 249, in getParams
    value = parseField(text)
  File "/home/dan/Code/python/bwConvert/src/decoder.py", line 168, in parseField
    flVals.append(struct.unpack('f', struct.pack('L', intConv(text[offset:offset + 4])))[0])
struct.error: unpack requires a buffer of 4 bytes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions