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

1.2.2.1 broke potato annotation tasks #81

Open
christianschuler8989 opened this issue Mar 12, 2024 · 1 comment
Open

1.2.2.1 broke potato annotation tasks #81

christianschuler8989 opened this issue Mar 12, 2024 · 1 comment

Comments

@christianschuler8989
Copy link

Halli und Hallo and Greetings,
I am a big fan of Potato, thank you for creating it! :)
Sadly, I just noticed that something inside of potato must have broken recently.

Reproduction
( This error happens either way, whether I install potato-annotation via pip, or clone the repository. )

  • I run the command to start the annotation task
  • potato start summarization_evaluation/
  • The server starts and I can navigate to it via the web browser (Firefox)
  • I can create a new account as usual
  • The moment I try to log into the annotation task, the browser displays a message along the lines of: "an internal server error has occurred"

Error Description / Terminal Output

potato start summarization_evaluation/
starting server from summarization_evaluation/configs/summ-eval.yaml
the current working directory is: /home/username/directory_to_project/summarization_evaluation/
WARNING:potato.flask_server:surveyflow_html_layout not configured, use default template at /home/username/directory_to_project/venvPotato/lib/python3.10/site-packages/potato/base_html/examples/plain_layout.html
running at:
localhost:9001
 * Serving Flask app 'potato.flask_server'
 * Debug mode: off
unknown action at home page
test@test Success
user info file saved at: user_config.json
test@test login successful
ERROR:potato.flask_server:Exception on /login [POST]
Traceback (most recent call last):
  File "/home/username/directory_to_project/venvPotato/lib/python3.10/site-packages/flask/app.py", line 1463, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/username/directory_to_project/venvPotato/lib/python3.10/site-packages/flask/app.py", line 872, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/username/directory_to_project/venvPotato/lib/python3.10/site-packages/flask/app.py", line 870, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/username/directory_to_project/venvPotato/lib/python3.10/site-packages/flask/app.py", line 855, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
  File "/home/username/directory_to_project/venvPotato/lib/python3.10/site-packages/potato/flask_server.py", line 1167, in login
    return annotate_page(username)
  File "/home/username/directory_to_project/venvPotato/lib/python3.10/site-packages/potato/flask_server.py", line 2199, in annotate_page
    suggestions = instance['label_suggestions']
KeyError: 'label_suggestions'

Workaround
For the time being, installing a previous version solves this problem:

pip uninstall potato-annotation

pip install potato-annotation==1.2.2.0

Probable Cause
Something in the newest commit [1.2.2.1 supports displaying label suggestions]
1986f56

@Jiaxin-Pei
Copy link
Collaborator

@christianschuler8989 thanks a lot for submitting this issue! This bug is fixed in v1.2.2.2, please upgrade to the latest version

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