Er, so, for a quick workaround I stuck a sanity check to reset sz to the
necessary format size if it was too low, and then things seem to
consistently work for me (sorry, not a python guy)...
--- /usr/share/disper/src/nvidia/minx.py 2012-01-17 14:13:47.000000000
-0700
+++ /usr/share/disper/src/nvidia/minx.py 2012-04-26 17:27:43.909106422
-0600
@@ -124,6 +124,8 @@
asz = rdict[arg.size]
sz = asz * fsz
+ if sz < struct.calcsize(structcode):
+ sz = struct.calcsize(structcode)
if asz == 1:
rdict[arg.value] = struct.unpack( structcode, data[:sz] )[0]
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/908856
Title:
Error: Unpack requires a string argument of length 4
To manage notifications about this bug go to:
https://bugs.launchpad.net/disper/+bug/908856/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs