Opened 7 months ago

Closed 7 months ago

#68437 closed defect (duplicate)

py-onnx: destroot failed due to destroot_target set to install (non-pep517) even if previous actions are pep517

Reported by: nc7s (Blair Noctis) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: py-onnx

Description

I'm not sure if this is rather a problem of python1.0.tcl, but since it happened when installing py311-onnx, I'll file under its name. Please move it to appropriate categories.

:info:destroot Executing:  cd "/opt/local/var/macports/build/_Users_i_Works_macports-ports_python_py-onnx/py311-onnx/work/onnx-1.10.2" && /opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11 -m installer install --destdir /opt/local/var/macports/build/_Users_i_Works_macports-ports_python_py-onnx/py311-onnx/work/destroot
:debug:destroot system:  cd "/opt/local/var/macports/build/_Users_i_Works_macports-ports_python_py-onnx/py311-onnx/work/onnx-1.10.2" && /opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11 -m installer install --destdir /opt/local/var/macports/build/_Users_i_Works_macports-ports_python_py-onnx/py311-onnx/work/destroot
:info:destroot Traceback (most recent call last):
:info:destroot   File "<frozen runpy>", line 198, in _run_module_as_main
:info:destroot   File "<frozen runpy>", line 88, in _run_code
:info:destroot   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/installer/__main__.py", line 98, in <module>
:info:destroot     _main(sys.argv[1:], "python -m installer")
:info:destroot   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/installer/__main__.py", line 86, in _main
:info:destroot     with WheelFile.open(args.wheel) as source:
:info:destroot   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/contextlib.py", line 137, in __enter__
:info:destroot     return next(self.gen)
:info:destroot            ^^^^^^^^^^^^^^
:info:destroot   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/installer/sources.py", line 162, in open
:info:destroot     with zipfile.ZipFile(path) as f:
:info:destroot          ^^^^^^^^^^^^^^^^^^^^^
:info:destroot   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/zipfile.py", line 1284, in __init__
:info:destroot     self.fp = io.open(file, filemode)
:info:destroot               ^^^^^^^^^^^^^^^^^^^^^^^
:info:destroot FileNotFoundError: [Errno 2] No such file or directory: 'install'
:info:destroot Command failed:  cd "/opt/local/var/macports/build/_Users_i_Works_macports-ports_python_py-onnx/py311-onnx/work/onnx-1.10.2" && /opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11 -m installer install --destdir /opt/local/var/macports/build/_Users_i_Works_macports-ports_python_py-onnx/py311-onnx/work/destroot
:info:destroot Exit code: 1
:error:destroot Failed to destroot py311-onnx: command execution failed
:debug:destroot Error code: CHILDSTATUS 53035 1
:debug:destroot Backtrace: command execution failed
:debug:destroot     while executing
:debug:destroot "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:destroot     invoked from within
:debug:destroot "command_exec -callback portprogress::target_progress_callback destroot"
:debug:destroot     (procedure "portdestroot::destroot_main" line 2)
:debug:destroot     invoked from within
:debug:destroot "$procedure $targetname"
:error:destroot See /opt/local/var/macports/logs/_Users_i_Works_macports-ports_python_py-onnx/py311-onnx/main.log for details.

destroot_destdir is only set to --destroot DESTDIR if ${python.pep517}, so it certainly is set? But destroot_target is only set to install if NOT ${python.pep517}. I'm not sure what's going on here.

Change History (1)

comment:1 Changed 7 months ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.