timvideos / HDMI2USB-mode-switch

Tool for switching boards supported by HDMI2USB firmware between multiple different modes (programming, webcam, etc).
Apache License 2.0
10 stars 13 forks source link

TypeError: b'\x00' (b'\x00') != ('\x00') #34

Closed CarlFK closed 8 years ago

CarlFK commented 8 years ago

odroid@odroid64:~/ff$ sudo python3 find_firm.py --suffix c2INFO | 2016-08-13 05:13:04 | find_firm | atlys INFO | 2016-08-13 05:13:04 | find_firm | v0.0.2-81-gd0d3aea-p-a.png no dir ['hdmi2usb-mode-switch', '--mode=jtag'] hdmi2usb-mode-switch --mode=jtag WARNING:root:unbind-helper not found, will have to run as root! Using FX2 firmware /usr/local/lib/python3.5/dist-packages/hdmi2usb.modeswitch-0.0.0.post115-py3.5.egg/hdmi2usb/firmware/fx2/atlys/ixo-usb-jtag.hex Found 1 boards. 0 ['hdmi2usb-mode-switch', '--load-gateware', '/home/odroid/HDMI2USB-firmware-prebuilt/archive/master/v0.0.2-81-gd0d3aea/atlys/hdmi2usb/atlys_hdmi2usb-hdmi2usbsoc-atlys.bit'] hdmi2usb-mode-switch --load-gateware /home/odroid/HDMI2USB-firmware-prebuilt/archive/master/v0.0.2-81-gd0d3aea/atlys/hdmi2usb/atlys_hdmi2usb-hdmi2usbsoc-atlys.bit WARNING:root:unbind-helper not found, will have to run as root! Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/hdmi2usb.modeswitch-0.0.0.post115-py3.5.egg/hdmi2usb/modeswitch/files.py", line 86, in init key, value = self.unpack_key(f) File "/usr/local/lib/python3.5/dist-packages/hdmi2usb.modeswitch-0.0.0.post115-py3.5.egg/hdmi2usb/modeswitch/files.py", line 66, in unpack_key assert_eq(null, '\x00') File "/usr/local/lib/python3.5/dist-packages/hdmi2usb.modeswitch-0.0.0.post115-py3.5.egg/hdmi2usb/modeswitch/files.py", line 12, in assert_eq assert a == b, "%s (%r) != %s (%r)" % (a, a, b, b) AssertionError: b'\x00' (b'\x00') != ('\x00')

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/bin/hdmi2usb-mode-switch", line 9, in load_entry_point('hdmi2usb.modeswitch==0.0.0.post115', 'console_scripts', 'hdmi2usb-mode-switch')() File "/usr/local/lib/python3.5/dist-packages/hdmi2usb.modeswitch-0.0.0.post115-py3.5.egg/hdmi2usb/modeswitch/cli.py", line 260, in main verbose=args.verbose) File "/usr/local/lib/python3.5/dist-packages/hdmi2usb.modeswitch-0.0.0.post115-py3.5.egg/hdmi2usb/modeswitch/boards.py", line 149, in load_fpga xfile = files.XilinxBitFile(filepath) File "/usr/local/lib/python3.5/dist-packages/hdmi2usb.modeswitch-0.0.0.post115-py3.5.egg/hdmi2usb/modeswitch/files.py", line 101, in init raise TypeError(e) TypeError: b'\x00' (b'\x00') != ('\x00') 1 ['hdmi2usb-mode-switch', '--load-fx2-firmware', '/home/odroid/HDMI2USB-firmware-prebuilt/archive/master/v0.0.2-81-gd0d3aea/atlys/hdmi2usb/hdmi2usb.hex'] hdmi2usb-mode-switch --load-fx2-firmware /home/odroid/HDMI2USB-firmware-prebuilt/archive/master/v0.0.2-81-gd0d3aea/atlys/hdmi2usb/hdmi2usb.hex WARNING:root:unbind-helper not found, will have to run as root! Using FX2 firmware /home/odroid/HDMI2USB-firmware-prebuilt/archive/master/v0.0.2-81-gd0d3aea/atlys/hdmi2usb/hdmi2usb.hex 0 unbind Traceback (most recent call last): File "find_firm.py", line 231, in main() File "find_firm.py", line 227, in main test_all( args ) File "find_firm.py", line 184, in test_all r, dna = test_one(root, f, args.board) File "find_firm.py", line 131, in test_one reset_usb(b"0000:00:1a.0") File "find_firm.py", line 64, in reset_usb open("/sys/bus/pci/drivers/ehci-pci/unbind",'wb').write(dev_id) FileNotFoundError: [Errno 2] No such file or directory: '/sys/bus/pci/drivers/ehci-pci/unbind'

CarlFK commented 8 years ago

carl@twist:~$ python2 -c "print( b'\x00' == '\x00' )" True carl@twist:~$ python3 -c "print( b'\x00' == '\x00' )" False