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: b'\x00' (b'\x00') != ('\x00') #34

Closed
CarlFK opened this issue Aug 13, 2016 · 1 comment
Closed

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

CarlFK opened this issue Aug 13, 2016 · 1 comment

Comments

@CarlFK
Copy link
Contributor

CarlFK commented Aug 13, 2016

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
Copy link
Contributor Author

CarlFK commented Aug 13, 2016

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

@mithro mithro closed this as completed in a92d177 Aug 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant