Opened 4 years ago

Closed 3 years ago

#62872 closed defect (fixed)

OS X 10.10 builder can't activate py37-mypy

Reported by: chrstphrchvz (Christopher Chavez) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: server/hosting Version: 2.6.4
Keywords: Cc:
Port: py37-mypy

Description

The macOS 10.10 builder can't build dependents of py37-mypy (e.g. py37-scipy) due to an error:

Error: Failed to activate py37-mypy: Image error: /opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/dmypy already exists and does not belong to a registered port.

Example: https://build.macports.org/builders/ports-10.10_x86_64-builder/builds/142086/steps/install-dependencies/logs/stdio

I've not investigated whether the port or a previous version of it erroneously leaves this file behind when deactivated, but this issue is not observed for other macOS versions' builders.

Change History (4)

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Component: portsserver/hosting
Owner: changed from tobypeterson to ryandesign
Status: assignedaccepted
Summary: macOS 10.10 builder can't activate py37-mypyOS X 10.10 builder can't activate py37-mypy

Probably my fault. When builds get interrupted e.g. due to power failure I have to manually clean things up and I could easily have missed this one.

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

I need to stop the builder to fix this, but it is not safe to stop the builder unless the builder queue is empty, and that queue currently has 95 builds waiting due to https://build.macports.org/builders/ports-10.10_x86_64-watcher/builds/45430.

comment:3 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Usually I would fix this with the builder stopped, but since there's such a backlog, I just removed all the files in /opt/local/Library/Frameworks/Python.framework/Versions/3.7/ that weren't registered to a port. There may still be other unregistered files which I'll look for later, when the builder is idle and nothing is installed and active.

comment:4 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

I don't think there's anything else to clean up.

Note: See TracTickets for help on using tickets.