Go to Post TL, DR: You may be skilled at karate on your own, but imagine how much better you'll be with Mr. Miyagi mentoring you. - artdutra04 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 03-02-2015, 20:31
team-4480's Avatar
team-4480 team-4480 is offline
Debug? What's that?
FRC #4480
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Minnesooota
Posts: 222
team-4480 will become famous soon enoughteam-4480 will become famous soon enough
Python: TypeError: set_disabled() takes 1 positional argument?

Hi! We are running into a problem with our code when we try to run the Pyfrc Sim. I am testing using some switches with DigitalInputs and I was checking for errors since I am out of reach of the robot. Code: http://pastebin.com/Es4z97GK. I get this error when running the sim.
Code:
Traceback (most recent call last):
  File "robot.py", line 84, in <module>
    wpilib.run(MyRobot)
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/wpilib/_impl/main.py", line 100, in run
    retval = options.cmdobj.run(options, robot_class, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pyfrc/mains/cli_sim.py", line 46, in run
    ui = sim.SimUI(sim_manager, fake_time, field_size, px_per_ft)
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pyfrc/sim/ui.py", line 59, in __init__
    self.timer_fired()
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pyfrc/sim/ui.py", line 329, in timer_fired
    self.update_widgets()
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pyfrc/sim/ui.py", line 361, in update_widgets
    dio.set_disabled(False)
TypeError: set_disabled() takes 1 positional argument but 2 were given
Any help will be greatly appreciated!!
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:42.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi