-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG - Fails to install with Python 3.12 #106
Comments
Relevant PyYAML issue that explains the same build issue and solution: yaml/pyyaml#756 Closes: #106
@Finwood I have setup a Ubuntu docker image with the Python3.13 and have run into the same issue as you did above. The solution was just to bump up the PyYAML dependency. See #107. Can you test building East on your machine just so that we are sure that this was also resolved on your side? I expect that following commands will bring you to the point where you end up building the East:
No error should be emitted by the last command. |
East builds successfully, all good here. Running it results in a syntax warning, though: irnas-east-software ❯ east --version
/tmp/irnas-east-software/src/east/__main__.py:93: SyntaxWarning: invalid escape sequence '\['
"""[bold]East[/] is a command line meta-tool, useful for creating, managing and
/tmp/irnas-east-software/src/east/helper_functions.py:269: SyntaxWarning: invalid escape sequence '\.'
pattern = f"^{west_board}_[0-9]?[0-9]?_[0-9]?[0-9]?_[0-9]?[0-9]?\.conf"
/tmp/irnas-east-software/src/east/workspace_commands/codechecker_helpers.py:157: SyntaxWarning: invalid escape sequence '\('
f".*__ASSERT.*\(.*{var}.*,.*",
/tmp/irnas-east-software/src/east/workspace_commands/codechecker_helpers.py:158: SyntaxWarning: invalid escape sequence '\('
f".*LOG_.*\(.*,.*{var}.*",
0.18.3.post1+g3dadcb1 Fedora 39, Python 3.12.3 |
Can you open the first offending file, It should look like this:
I don't get the error that you get, but I get a linter warning on this line and adding the backslash fixes this specific error. If that is ok, I will fix the other ones. |
I can confirm, the extra backslash solves the issue. The > find src -type f -name '*.pyc' -delete # remove all python byte code
> PYTHONWARNINGS=always::SyntaxWarning east --version
/tmp/irnas-east-software/src/east/helper_functions.py:269: SyntaxWarning: invalid escape sequence '\.'
pattern = f"^{west_board}_[0-9]?[0-9]?_[0-9]?[0-9]?_[0-9]?[0-9]?\.conf"
/tmp/irnas-east-software/src/east/workspace_commands/codechecker_helpers.py:157: SyntaxWarning: invalid escape sequence '\('
f".*__ASSERT.*\(.*{var}.*,.*",
/tmp/irnas-east-software/src/east/workspace_commands/codechecker_helpers.py:158: SyntaxWarning: invalid escape sequence '\('
f".*LOG_.*\(.*,.*{var}.*",
0.18.3.post1+g3dadcb1 |
@Finwood I pushed the other fixes to the |
Everything resolved 👍 |
Great, I will create now new release of |
Describe the bug
When inside a Python 3.12 environment, east fails to install.
Firmware/Software Version
east-tool
0.18.3To Reproduce
python -m pip install east-tool
)The text was updated successfully, but these errors were encountered: