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

AttributeError: 'CalledProcessError' object has no attribute 'stdout' #40

Closed
mithro opened this issue Oct 15, 2016 · 0 comments
Closed

Comments

@mithro
Copy link
Member

mithro commented Oct 15, 2016

tansell@tansell-z620-l2:~/foss/timvideos/hdmi2usb/lite/opsis-soc$ opsis-mode-switch --mode=serial
WARNING:root:unbind-helper not found, will have to run as root!
Using FX2 firmware /usr/local/google/home/tansell/foss/timvideos/hdmi2usb/lite/HDMI2USB-mode-switch/hdmi2usb/firmware/fx2/opsis/usb-uart.ihx
Traceback (most recent call last):
  File "/usr/local/google/home/tansell/foss/timvideos/hdmi2usb/lite/HDMI2USB-mode-switch/hdmi2usb/modeswitch/boards.py", line 126, in load_fx2
    output = subprocess.check_output(cmdline, stderr=subprocess.STDOUT)
  File "/usr/local/google/home/tansell/foss/timvideos/hdmi2usb/lite/conda/lib/python3.4/subprocess.py", line 620, in check_output
    raise CalledProcessError(retcode, process.args, output=output)
subprocess.CalledProcessError: Command '['fxload', '-t', 'fx2lp', '-D', '/dev/bus/usb/003/006', '-I', '/usr/local/google/home/tansell/foss/timvideos/hdmi2usb/lite/HDMI2USB-mode-switch/hdmi2usb/firmware/fx2/opsis/usb-uart.ihx']' returned non-zero exit status 255

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/google/home/tansell/foss/timvideos/hdmi2usb/lite/conda/bin/opsis-mode-switch", line 9, in <module>
    load_entry_point('hdmi2usb.modeswitch', 'console_scripts', 'opsis-mode-switch')()
  File "/usr/local/google/home/tansell/foss/timvideos/hdmi2usb/lite/HDMI2USB-mode-switch/hdmi2usb/modeswitch/cli.py", line 218, in main
    verbose=args.verbose)
  File "/usr/local/google/home/tansell/foss/timvideos/hdmi2usb/lite/HDMI2USB-mode-switch/hdmi2usb/modeswitch/boards.py", line 128, in load_fx2
    if b"can't modify CPUCS: Protocol error\n" not in e.stdout:
AttributeError: 'CalledProcessError' object has no attribute 'stdout'
@mithro mithro closed this as completed in 729b780 Oct 15, 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