jasperla / openbsd-wip

OpenBSD work in progress ports
http://www.openbsd.org/
267 stars 87 forks source link

py-adblock , fails to install #142

Closed c64skin closed 3 years ago

c64skin commented 3 years ago

hey @dkarama , i appear to have a slight issue when installing, got any advice?


   Compiling rmp-serde v0.13.7
   Compiling adblock v0.3.10
   Compiling adblock v0.4.3 (/usr/obj/ports/py-adblock-0.4.3.20200321-python3/python-adblock-ccb00e70cd098d6500f422702a8a2e96a233f835)
    Finished release [optimized] target(s) in 8m 06s
📦 Built wheel for CPython 3.7m to /usr/obj/ports/py-adblock-0.4.3.20200321-python3/python-adblock-ccb00e70cd098d6500f422702a8a2e96a233f835/target/wheels/adblock-0.4.3-cp37-cp37m-openbsd_6_8_amd64.whl
warning: `panic` setting is ignored for `bench` profile
   Compiling pyo3 v0.13.2 (https://github.com/PyO3/pyo3.git?rev=7ac75366c27d5be6cc8fd5b344da1953c12d2c3e#7ac75366)
   Compiling adblock v0.4.3 (/usr/obj/ports/py-adblock-0.4.3.20200321-python3/python-adblock-ccb00e70cd098d6500f422702a8a2e96a233f835)
    Finished release [optimized] target(s) in 31.33s
📦 Built wheel for CPython 3.8 to /usr/obj/ports/py-adblock-0.4.3.20200321-python3/python-adblock-ccb00e70cd098d6500f422702a8a2e96a233f835/target/wheels/adblock-0.4.3-cp38-cp38-openbsd_6_8_amd64.whl
===>  Faking installation for py3-adblock-0.4.3.20200321
/usr/obj/ports/py-adblock-0.4.3.20200321-python3/bin/install -c -s -m 755 /usr/obj/ports/py-adblock-0.4.3.20200321-python3/python-adblock-ccb00e70cd098d6500f422702a8a2e96a233f835/target/release/libadblock.so /usr/obj/ports/py-adblock-0.4.3.20200321-python3/fake-amd64-python3/usr/local/lib
pip3.8 install --isolated  --root=/usr/obj/ports/py-adblock-0.4.3.20200321-python3/fake-amd64-python3  --ignore-installed  --no-deps /usr/obj/ports/py-adblock-0.4.3.20200321-python3/python-adblock-ccb00e70cd098d6500f422702a8a2e96a233f835/target/wheels/*.whl

ERROR: adblock-0.4.3-cp37-cp37m-openbsd_6_8_amd64.whl is not a supported wheel on this platform.

*** Error 1 in . (Makefile:117 'do-install')
*** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:3005 '/usr/obj/ports/py-adblock-0.4.3.20200321-python3/fake-amd64-python3/.fake_done')
*** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2116 '/usr/packages/amd64/all/py3-adblock-0.4.3.20200321.tgz': @cd /usr/ports/ope...)
*** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2605 '_internal-package': @case X${_DEPENDS_CACHE} in  X) _DEPENDS_CACHE=$( mktem...)
*** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2584 'package': @:; cd /usr/ports/openbsd-wip/www/py-adblock && PKGPATH=www/py-ad...)
*** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2137 '/var/db/pkg/py3-adblock-0.4.3.20200321/+CONTENTS': @cd /usr/ports/openbsd-w...)
*** Error 2 in /usr/ports/openbsd-wip/www/py-adblock (/usr/ports/infrastructure/mk/bsd.port.mk:2584 'install': @lock=py3-adblock-0.4.3.20200...)
ghost commented 3 years ago

py-adblock produces wheel for each compatible python>3.6 version available on the system. The failure is probably because there is no pip3.7 for installing the given python3.7 wheel. So remove python3.7 before the next build.

This will also lead issues for systems with both 3.8 and 3.9, thanks for reporting this.

c64skin commented 3 years ago

ok, i solved it manually:

cd /usr/obj/ports/py-adblock-0.4.3.20200321-python3/python-adblock-ccb00e70cd098d6500f422702a8a2e96a233f835/target/wheels
pip3 install ./adblock-0.4.3-cp38-cp38-openbsd_6_8_amd64.whl --user

qutebrowser picked it up so it's looking good, many thanks for your work.