I’m trying to build a wxPython based snap on my Ubuntu 18.04 system and getting the error "not a supported wheel on this platform"
$ snapcraft
…
Pulling testsnap-py
wxPython-4.0.4-cp37-cp37m-linux_x86_64.whl is not a supported wheel on this platform.
Failed to run ‘/home/andy/Devel/snap-examples/v_0.5.1/parts/testsnap-py/install/usr/bin/python3 -m pip download --disable-pip-version-check --dest /home/andy/Devel/snap-examples/v_0.5.1/parts/testsnap-py/python-packages https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18.04/wxPython-4.0.4-cp37-cp37m-linux_x86_64.whl’: Exited with code 1.
``
The project is a simple one that I found here where the snapcraft.yaml contained:
https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-16.04/wxPython-4.0.1-cp35-cp35m-linux_x86_64.whl
``
which I changed to refer to a 18.04 and Python 3.7 wheel, since I’m running those later versions.
https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18.04/wxPython-4.0.4-cp37-cp37m-linux_x86_64.whl
``
I thought that would work, since that is the wheel I successfully installed wxPython with:
pip install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18.04 wxPython
``
Any idea on why all these wheels get rejected by the snapcraft tool?
``
My platform matches those wheels - doesn’t it?
$ python3 -c “import pip; print(pip.pep425tags.get_platform())”
linux_x86_64
$ python3 -c “import pip; print(pip.pep425tags.get_abi_tag())”
cp37m
$ python3 -c “from pip import pep425tags;print(pep425tags.supported_tags)”
[(‘cp37’, ‘cp37m’, ‘manylinux1_x86_64’), (‘cp37’, ‘cp37m’, ‘linux_x86_64’), (‘cp37’, ‘abi3’, ‘manylinux1_x86_64’), (‘cp37’, ‘abi3’, ‘linux_x86_64’), (‘cp37’, ‘none’, ‘manylinux1_x86_64’), (‘cp37’, ‘none’, ‘linux_x86_64’), (‘cp36’, ‘abi3’, ‘manylinux1_x86_64’), (‘cp36’, ‘abi3’, ‘linux_x86_64’), (‘cp35’, ‘abi3’, ‘manylinux1_x86_64’), (‘cp35’, ‘abi3’, ‘linux_x86_64’), (‘cp34’, ‘abi3’, ‘manylinux1_x86_64’), (‘cp34’, ‘abi3’, ‘linux_x86_64’), (‘cp33’, ‘abi3’, ‘manylinux1_x86_64’), (‘cp33’, ‘abi3’, ‘linux_x86_64’), (‘cp32’, ‘abi3’, ‘manylinux1_x86_64’), (‘cp32’, ‘abi3’, ‘linux_x86_64’), (‘py3’, ‘none’, ‘manylinux1_x86_64’), (‘py3’, ‘none’, ‘linux_x86_64’), (‘cp37’, ‘none’, ‘any’), (‘cp3’, ‘none’, ‘any’), (‘py37’, ‘none’, ‘any’), (‘py3’, ‘none’, ‘any’), (‘py36’, ‘none’, ‘any’), (‘py35’, ‘none’, ‘any’), (‘py34’, ‘none’, ‘any’), (‘py33’, ‘none’, ‘any’), (‘py32’, ‘none’, ‘any’), (‘py31’, ‘none’, ‘any’), (‘py30’, ‘none’, ‘any’)]
``
Or is this a question for the snapcraft people?
Also - see the issue I raised on this matter in the GitHub repo where I found the wxPython snapcraft example.