indygreg / PyOxidizer

A modern Python application packaging and distribution tool
Mozilla Public License 2.0
5.32k stars 227 forks source link

compiling error: Missing parentheses in call to 'print'. Did you mean print(...)? (astroid.tests.testdata.python2.data.all, line 7 #745

Open ManPython opened 1 month ago

ManPython commented 1 month ago

pyoxidizer==0.24.0

PyOxidizer does not set __file__ and this may create problems at run-time
See https://github.com/indygreg/PyOxidizer/issues/69 for more
error[PYOXIDIZER_PYTHON_EXECUTABLE]: adding PythonExecutable to FileManifest

    Caused by:
        0: building Python executable
        1: building executable with Rust project
        2: obtaining embedded python context
        3: converting astroid.tests.testdata.python2.data.all to resource
        4: compiling in-memory bytecode
        5: compiling error: Missing parentheses in call to 'print'. Did you mean print(...)? (astroid.tests.testdata.python2.data.all, line 7)
       --> .\pyoxidizer.bzl:283:5
        |
    283 |     files.add_python_resource(".", exe)
        |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PythonExecutable.to_file_manifest()

error: adding PythonExecutable to FileManifest

Caused by:
    0: building Python executable
    1: building executable with Rust project
    2: obtaining embedded python context
    3: converting astroid.tests.testdata.python2.data.all to resource
    4: compiling in-memory bytecode
    5: compiling error: Missing parentheses in call to 'print'. Did you mean print(...)? (astroid.tests.testdata.python2.data.all, line 7)

Sounds like not resolved bug: https://github.com/indygreg/PyOxidizer/issues/356