dpaulat / supercell-wx

Supercell Wx is a free, open source advanced weather radar viewer.
https://supercell-wx.rtfd.io
MIT License
84 stars 14 forks source link

Syntax Error - Red Hat Enterprise Linux 9.4 #236

Closed kb6ibb closed 23 hours ago

kb6ibb commented 5 days ago

[kb6ibb@kb6ibb-15 build-release]$ cmake --build . 
[1/191] Generating scwx_en_US.qm
Updating '/home/kb6ibb/src/Supercell/supercell-wx/build-release/scwx-qt/scwx_en_US.qm'...
    Generated 0 translation(s) (0 finished and 0 unfinished)
    Ignored 100 untranslated source text(s)
[2/191] Generating scwx/qt/main/versions.hpp, scwx/qt/main/versions.hpp-ALWAYS_RUN
FAILED: scwx-qt/scwx/qt/main/versions.hpp scwx-qt/scwx/qt/main/versions.hpp-ALWAYS_RUN /home/kb6ibb/src/Supercell/supercell-wx/build-release/scwx-qt/scwx/qt/main/versions.hpp /home/kb6ibb/src/Supercell/supercell-wx/build-release/scwx-qt/scwx/qt/main/versions.hpp-ALWAYS_RUN 
cd /home/kb6ibb/src/Supercell/supercell-wx/build-release/scwx-qt && /usr/bin/python3.9 /home/kb6ibb/src/Supercell/supercell-wx/scwx-qt/tools/generate_versions.py -g /home/kb6ibb/src/Supercell/supercell-wx -v 0.4.4 -c /home/kb6ibb/src/Supercell/supercell-wx/build-release/scwx-qt/versions_cache.json -i /home/kb6ibb/src/Supercell/supercell-wx/scwx-qt/source/scwx/qt/main/versions.hpp.in -o /home/kb6ibb/src/Supercell/supercell-wx/build-release/scwx-qt/scwx/qt/main/versions.hpp
  File "/home/kb6ibb/src/Supercell/supercell-wx/scwx-qt/tools/generate_versions.py", line 26
    match key:
          ^
SyntaxError: invalid syntax
[3/191] Linking CXX shared library lib/libQMapLibre.so.3.0.0
ninja: build stopped: subcommand failed.
===================================================================

[kb6ibb@kb6ibb-15 build-release]$ cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="9.4 (Plow)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="9.4"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Red Hat Enterprise Linux 9.4 (Plow)"
ANSI_COLOR="0;31"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:redhat:enterprise_linux:9::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 9"
REDHAT_BUGZILLA_PRODUCT_VERSION=9.4
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.4"```
dpaulat commented 5 days ago

The build scripts do not support Python 3.9. You will need to use Python 3.10+. You should be able to find a versioned package in RHEL repositories.

dpaulat commented 23 hours ago

The developer documentation now properly specifies Python 3.10+. https://supercell-wx.readthedocs.io/en/stable/development/developer-setup.html