I am relatively new to this API; I find it cool anyway(kudos team scikit). I want to implement a fuzzy controller for a autonomous robot simulation on VREP controlled from Spyder (python 2.7) but in get these errors when implementing the 'Tipping examples'.
Traceback (most recent call last):
Traceback (most recent call last):
File "<ipython-input-4-3c5b2551db94>", line 1, in <module>
runfile('C:/Python27/Lib/site-packages/skfuzzy/control/tipping.py', wdir='C:/Python27/Lib/site-packages/skfuzzy/control')
File "C:\Python27\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 685, in runfile
execfile(filename, namespace)
File "C:\Python27\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 71, in execfile
exec(compile(scripttext, filename, 'exec'), glob, loc)
File "C:/Python27/Lib/site-packages/skfuzzy/control/tipping.py", line 39, in <module>
rule1.view()
File "C:\Python27\lib\site-packages\skfuzzy\control\rule.py", line 247, in view
ControlSystemVisualizer(self).view().show()
AttributeError: 'tuple' object has no attribute 'show'
Traceback (most recent call last):
File "<ipython-input-5-3c5b2551db94>", line 1, in <module>
runfile('C:/Python27/Lib/site-packages/skfuzzy/control/tipping.py', wdir='C:/Python27/Lib/site-packages/skfuzzy/control')
File "C:\Python27\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 685, in runfile
execfile(filename, namespace)
File "C:\Python27\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 71, in execfile
exec(compile(scripttext, filename, 'exec'), glob, loc)
File "C:/Python27/Lib/site-packages/skfuzzy/control/tipping.py", line 41, in <module>
tipping_ctrl = ctrl.ControlSystem([rule1, rule2, rule3])
File "C:\Python27\lib\site-packages\skfuzzy\control\controlsystem.py", line 45, in __init__
self.addrule(rule)
File "C:\Python27\lib\site-packages\skfuzzy\control\controlsystem.py", line 98, in addrule
for r in self.rules:
File "C:\Python27\lib\site-packages\skfuzzy\control\controlsystem.py", line 596, in __iter__
self._cache = list(self._process_rules(self.all_rules[:]))
File "C:\Python27\lib\site-packages\skfuzzy\control\controlsystem.py", line 630, in _process_rules
if self._can_calc_rule(rule):
File "C:\Python27\lib\site-packages\skfuzzy\control\controlsystem.py", line 658, in _can_calc_rule
for p in self.all_graph.predecessors_iter(rule):
AttributeError: 'DiGraph' object has no attribute 'predecessors_iter'