Closed Finwood closed 4 months ago
@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:
git clone https://github.com/IRNAS/irnas-east-software
cd irnas-east-software
git checkout feature/python3.12+support
pip install virtualenv
virtualenv venv
source venv/bin/activate
make install
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, irnas-east-software/src/east/__main__.py
and add extra backslash before the original one, on the line 99?
It should look like this:
Run [bold]east \\[command] --help[/] to show documentation for that command.
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 SyntaxWarning
gets thrown upon compilation, that's why you may not see it. This should help:
> 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 feature/python3.12+support
, please pull and let's see if this is now completely resolved.
Everything resolved 👍
Great, I will create now new release of east-tool
.
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
)