Opened 8 months ago

Last modified 7 months ago

#69617 assigned defect

py*-opencv3 use the wrong python

Reported by: jmroot (Joshua Root) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: opencv3 opencv3-devel

Description

All subports appear to be trying to use the same python as opencv3, but only one happens to depend on that version (currently py311-opencv3). For example py27-opencv3 fails like this:

2024-03-29T08:14:15.7189640Z [  0%] Generate files for Python bindings and documentation
2024-03-29T08:14:15.7204250Z cd /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_graphics_opencv3/py27-opencv3/work/build/modules/python_bindings_generator && /opt/local/bin/python3.11 /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_graphics_opencv3/py27-opencv3/work/opencv-3.4.16/modules/python/bindings/..//src2/gen2.py /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_graphics_opencv3/py27-opencv3/work/build/modules/python_bindings_generator /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_graphics_opencv3/py27-opencv3/work/build/modules/python_bindings_generator/headers.txt
2024-03-29T08:14:15.7219740Z /bin/sh: /opt/local/bin/python3.11: No such file or directory

and likewise py310-opencv3:

2024-03-29T10:30:15.6980120Z [  0%] Generate files for Python bindings and documentation
2024-03-29T10:30:15.6994570Z cd /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_graphics_opencv3/py310-opencv3/work/build/modules/python_bindings_generator && /opt/local/bin/python3.11 /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_graphics_opencv3/py310-opencv3/work/opencv-3.4.16/modules/python/bindings/..//src2/gen2.py /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_graphics_opencv3/py310-opencv3/work/build/modules/python_bindings_generator /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_graphics_opencv3/py310-opencv3/work/build/modules/python_bindings_generator/headers.txt
2024-03-29T10:30:15.7010880Z /bin/sh: /opt/local/bin/python3.11: No such file or directory

Change History (1)

comment:1 Changed 7 months ago by mascguy (Christopher Nielsen)

Egads... this is indeed an issue, confirmed via trace mode. Still need to determine root cause though.

Thanks for the heads-up Josh!

Note: See TracTickets for help on using tickets.