Port reclaim unexpectedly wants to uninstall a subport, when the top level port is installed

Kevin Horton kevin01 at kilohotel.com
Thu Feb 8 13:28:16 UTC 2024



> On Feb 6, 2024, at 21:01, Joshua Root <jmr at macports.org> wrote:
> 
>> I'm puzzling over some weird "port reclaim" behaviour on one machine.  On the problematic machine, I installed py-matplotlib, which correctly installed py312-matplotlib.  But, if I run "port reclaim", it wants to uninstall py312-matplotlib as a "Unrequested ports without requested dependents found".
>> 
>> Then the script that I have that needs py-matplotlib fails.  I know I could request py312-matplotlib, but that then leads to a bit more work cleaning things up when I move to python313.
>> 
>> On the second machine, everthing works as expected.
>> 
>> Is there something I can do to rebuild the registry, assuming this is the problem?
> 
> Possibly you had previously installed py-matplotlib when an older python version was the default? In any case, running 'sudo port upgrade py-matplotlib' will refresh its registry data.
> 
> - Josh

Thanks for the suggestion.  But, a few minutes before I received it, I decided to take the nuclear option.  I did a similar process as is done during a migration to a new macOS, saving lists of installed and requested ports, uninstalling all, etc.  That seems to have put things right.

Kevin


More information about the macports-users mailing list