indygreg / indygreg/PyOxidizer

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

Open
#745 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
6.2k
Forks
256
PR merge metrics
No merged PRs in 30d

Description

`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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with pyoxidizer.bzl line 283 and the reported astroid.tests.testdata.python2.data.all failure; compare the context with PyOxidizer issue 356. Reproduce the build using pyoxidizer==0.24.0 and trace why that Python 2 fixture is compiled as embedded bytecode. Done means the reported build completes without this compilation error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, rust
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.