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

TypeError, line 111 #2

Open
kometbyte opened this issue Feb 25, 2023 · 1 comment
Open

TypeError, line 111 #2

kometbyte opened this issue Feb 25, 2023 · 1 comment

Comments

@kometbyte
Copy link

File "/Users/mak/Downloads/suggestion-master/test.py", line 17, in <module>
    suggestion = Suggestion(text_field, dataset=DATASET)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/mak/Downloads/suggestion-master/suggestion/__init__.py", line 27, in __init__
    self._setup()
  File "/Users/mak/Downloads/suggestion-master/suggestion/__init__.py", line 111, in _setup
    self._dropdown.build(self.widget)
TypeError: Viewable.build() takes 1 positional argument but 2 were given

Please fix this error

@pyrustic
Copy link
Owner

Hi !

It seems that you don't have the latest version of Viewable. I recommend to install Suggestion in a new virtual environment with pip install suggestion.

You can also upgrade Suggestion with pip install suggestion --upgrade --upgrade-strategy eager.

Once updated or newly installed, you can play with the demo interface: python -m suggestion.demo. It is a graphical user interface with 3 fields. A field to fill in a dictionary of words and two other fields (tkinter.Entry widget and tkinter.Text widget) to type text to see how Suggestion behaves.

I will probably update today the READMEs of both Suggestion and Viewable.

Let me know if this comment helps you!

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