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

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

Closed
cgarzon777 opened this issue May 7, 2020 · 1 comment

Comments

@cgarzon777
Copy link

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
Copy link
Member

jcrada commented May 10, 2020

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:

  • fl.AlgebraicProduct for fl.AlgebraicProduct(); and
  • fl.AlgebraicSum for fl.AlgebraicSum().

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

Image

Thanks

@jcrada jcrada closed this as completed May 10, 2020
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

2 participants