gsi-upm / sematch

semantic similarity framework for knowledge graph
http://gsi-upm.github.io/sematch/
Other
432 stars 111 forks source link

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

Closed shahbazwasti closed 4 years ago

shahbazwasti commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 4 years ago

Closing this in favor of #31