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

Control Script errors #9

Closed
allesschonweg opened this issue Jun 9, 2017 · 1 comment
Closed

Control Script errors #9

allesschonweg opened this issue Jun 9, 2017 · 1 comment
Labels

Comments

@allesschonweg
Copy link

allesschonweg commented Jun 9, 2017

With stock python installations, I get the following errors. Maybe there is a module missing or something?

Windows:

C:\Users\bla\Downloads\opendps-master\dpsctl>python dpsctl.py -d COM5 --ping
  File "dpsctl.py", line 143
    except socket.error, msg:
                       ^
SyntaxError: invalid syntax

Linux:

~/opendps/dpsctl $ sudo python dpsctl.py -d /dev/ttyUSB0 --power on
Traceback (most recent call last):
  File "dpsctl.py", line 429, in <module>
    main()
  File "dpsctl.py", line 426, in main
    handle_commands(args)
  File "dpsctl.py", line 293, in handle_commands
    communicate(comms, create_power_enable(pwr), args)
  File "dpsctl.py", line 237, in communicate
    resp = comms.read()
  File "dpsctl.py", line 108, in read
    if b == uframe._SOF:
NameError: global name 'uframe' is not defined
@kanflo kanflo closed this as completed in 8b06be6 Jun 9, 2017
@kanflo kanflo added the bug label Jun 9, 2017
@kanflo
Copy link
Owner

kanflo commented Jun 9, 2017

My bad, I did not test UART comms before pushing. I have been thinking of setting up an automated test with real hardware. Should put more thinking into it ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants