fuzzylite / pyfuzzylite

pyfuzzylite: a fuzzy logic control library in Python
https://fuzzylite.com/
Other
65 stars 14 forks source link

__init__() got an unexpected keyword argument 'xxxxxxxxx' error in PyFuzzyLite #5

Closed cgarzon777 closed 4 years ago

cgarzon777 commented 4 years ago

From QTFuzzyLite to FuzzyLite to C++ and then to Python under Windows10 there was no problem. Everything ran smoothly When downloaded to RaspberryPi3 B + under Raspbian BUster , Python 7 and pyFuzzyLite I encounter the following errors:

init() got an unexpected keyword argument 'xxxxxxxxx' fl.engine.input_variables does not take arguments

Specifically under two arguments: enable and Lock_range

I used the Thonny Pyton and Spyder 3 programs on raspberry pi with the same error in both. Both have the pyFuzzyLite packages up to date.

Please find the file attached

SmartDimmer.txt

jcrada commented 4 years ago

Hi, I strongly suggest you use PyCharm for Python development. There you will see that you have mistakes on SmartDimmer.txt. Specifically, you need to replace:

In addition, you could use PyCharm debugging options to find out about errors.

Image

Thanks