mnemosyne-proj / mnemosyne

Mnemosyne: efficient learning with powerful digital flash-cards.
https://mnemosyne-proj.org/
Other
507 stars 74 forks source link

Setup File has syntax issue when attempting to run #249

Open Samurai336 opened 11 months ago

Samurai336 commented 11 months ago

Did a clean virtual env with Python 3.8.17, installed all the dependencies listed in the read me went to run sudo python setup.py install as described in the read me and got the following error.

  File "setup.py", line 21
    print("; WARNING: This script has been created automatically. Changes to this script", file=ofi)
                                                                                               ^
SyntaxError: invalid syntax
pbienst commented 11 months ago

I don't see anything wrong with the syntax of that line, but perhaps the issue is in the lines above it.

Are you sure this is an unedited file, directly from us? I'm asking because our version of that file looks a bit different:

https://github.com/mnemosyne-proj/mnemosyne/blob/master/setup.py

line 21: print("; WARNING: This script has been created automatically. "+\ line 22: "Changes to this script", file=ofi)

Try perhaps overwriting your version with the version from github (https://raw.githubusercontent.com/mnemosyne-proj/mnemosyne/master/setup.py)