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

Fails at loading emotion_sentences.py #2

Open
piekvossen opened this issue Mar 3, 2023 · 1 comment
Open

Fails at loading emotion_sentences.py #2

piekvossen opened this issue Mar 3, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@piekvossen
Copy link
Contributor

cltl/emotion_responder/emotion_sentences.py", line 96, in
_RESPONSES = _GO_RESPONSES | _EKMAN_RESPONSES | _SENTIMENT_RESPONSES | _FACE_RESPONSES
TypeError: unsupported operand type(s) for |: 'dict' and 'dict'

At line 96 it is written:
_RESPONSES = _GO_RESPONSES | _EKMAN_RESPONSES | _SENTIMENT_RESPONSES | _FACE_RESPONSES

I fixed it by changing “|” by “and” or should it be “or”?

@piekvossen piekvossen added the bug Something isn't working label Mar 3, 2023
@numblr
Copy link
Member

numblr commented Mar 3, 2023

'|' should be OK (shorthand for merging dicts), only it seems it was add in Python 3.9, so that error probably means that you use an older Python version. If we want compatibility we need to change it to create a new dict and add all the other ones explicitly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants