atacms / wot-model-converter

Converts World of Tanks models to wavefront obj and collada dae format
10 stars 3 forks source link

"SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?" when using Python 3.10.8 / 3.12.0 #6

Open ClassicsWoTWorkshop opened 1 year ago

ClassicsWoTWorkshop commented 1 year ago

Encountering an issue when trying to use the converter in Python 3.X versions (tested in 3.10.8 and 3.12.0):

C:\Github\atacms wot tools\wot-model-converter>python convert-primitive.py -f collada *.primitives
Traceback (most recent call last):
  File "C:\Github\atacms wot tools\wot-model-converter\convert-primitive.py", line 11, in <module>
    import wot
  File "C:\Github\atacms wot tools\wot-model-converter\wot\__init__.py", line 10, in <module>
    from wot.ModelReader import ModelReader
  File "C:\Github\atacms wot tools\wot-model-converter\wot\ModelReader.py", line 162
    print 'found stream: %s'%stream_name
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

The issue seems to span across multiple of the involved Python scripts (not just ModelReader.py). Occurs with both dae and obj converters.

(Works fine in Python 2.7 [what I've been using as a workaround for a while], but I see the readme states 3.X compatibility.)