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

Missing parentheses in call to 'print'. Did you mean print(print query)? #21

Closed
shahbazwasti opened this issue Mar 10, 2018 · 3 comments

Comments

@shahbazwasti
Copy link

Hi,
I have installed and configured the library as you have instructed in the documentation. But I get this error:

from sematch.semantic.similarity import WordNetSimilarity
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Shahbaz\AppData\Local\Continuum\anaconda3\lib\site-packages\sematch\semantic\similarity.py", line 25, in
from sematch.semantic.sparql import EntityFeatures, StatSPARQL
File "C:\Users\Shahbaz\AppData\Local\Continuum\anaconda3\lib\site-packages\sematch\semantic\sparql.py", line 36
print query
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(print query)?

@shellshock1911
Copy link

This library is meant to be used with Python 2.7 only. setup.py indicates this in the notes at the bottom, however the author should have mentioned it in the README, or have it output an error message when a user tries to install it with Python 3.x.

@i-vishnuraj
Copy link

You can replace the print query in the C:\Users\Shahbaz\AppData\Local\Continuum\anaconda3\lib\site-packages\sematch\semantic\sparql.py with print(query).

@balkian
Copy link
Member

balkian commented Oct 26, 2020

Closing this in favor of #31

@balkian balkian closed this as completed Oct 26, 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

4 participants