Pau*_*iss 5 wxpython github github-actions
我正在尝试设置一个 Github 操作来测试使用 wxPython 的 python 应用程序,但我不知道如何设置,以免 wxPython 无法构建并出现 GTK3 错误:
这是操作文件:
on:
pull_request:
branches:
- development
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
# pip install wheel
- name: Install Requirements
run: |
sudo apt-get update -q && sudo apt-get install
sudo apt-get install python-wxgtk3.0
python -m pip install --upgrade pip
pip install jsonschema
pip install pylint
pip install twisted
pip install wheel
pip install -U wxpython
run: |
cd src
export PYTHONPATH=`pwd`/keypad_controller
python ../pipelines/lint.py --path keypad_controller --threshold 10
Run Code Online (Sandbox Code Playgroud)
我得到的错误是:1)
Building wheels for collected packages: wxpython
Building wheel for wxpython (setup.py): started
Building wheel for wxpython (setup.py): finished with status 'error'
Running setup.py clean for wxpython
ERROR: Command errored out with exit status 1:
command: /opt/hostedtoolcache/Python/3.7.9/x64/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-uietf6rb/wxpython/setup.py'"'"'; __file__='"'"'/tmp/pip-install-uietf6rb/wxpython/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-05g1i2nj
cwd: /tmp/pip-install-uietf6rb/wxpython/
Run Code Online (Sandbox Code Playgroud)
是否有一个 Github 操作“使用”wxPython,这样我就不必每次都安装它?
python-wxgtk3.0-dev通过将以下行添加到您的步骤来安装Install Requirements:
sudo apt-get install python-wxgtk3.0-dev