You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered a couple of issues that required code modifications. I’m detailing them below so that they can be addressed for better compatibility:
Print Function Syntax: In Python 3.x, print is a function and requires parentheses around the arguments. The existing code uses the Python 2.x syntax for print statements, which leads to a SyntaxError. For example, print len(squareCenters) should be updated to print(len(squareCenters)).
File Path Syntax: The code uses backslashes () in file paths, which is not compatible with Unix systems. On Unix systems, file paths should be specified using forward slashes (/). For example, MEDIA\WhitePawn.png should be updated to MEDIA/WhitePawn.png
everywhere (for Linux)
The text was updated successfully, but these errors were encountered:
Hi @Manamama there's no one maintaining this repo right now. I see you already have figured out some of the fixes, I would appreciate it if you could create a PR with the fix. When we wrote this it was meant for Python2.7 that's why you faced this issue.
I encountered a couple of issues that required code modifications. I’m detailing them below so that they can be addressed for better compatibility:
Print Function Syntax: In Python 3.x, print is a function and requires parentheses around the arguments. The existing code uses the Python 2.x syntax for print statements, which leads to a SyntaxError. For example, print len(squareCenters) should be updated to
print(len(squareCenters)).
File Path Syntax: The code uses backslashes () in file paths, which is not compatible with Unix systems. On Unix systems, file paths should be specified using forward slashes (/). For example, MEDIA\WhitePawn.png should be updated to
MEDIA/WhitePawn.png
everywhere (for Linux)
The text was updated successfully, but these errors were encountered: