Re: dill-py310 does not install
Scott Hannahs via Fink-users <[email protected]> Thu, 26 Sep 2024 08:45:52 -0400
| Newsgroups | gmane.os.apple.fink.general |
|---|---|
| Message-ID | <[email protected]> |
> On Sep 26, 2024, at 8:18 AM, Scott Hannahs <[email protected]> wrote: > > > >> On Sep 26, 2024, at 6:15 AM, Hanspeter Niederstrasser <[email protected]> wrote: >> >> On 9/25/24 1:29 PM, Scott Hannahs via Fink-users wrote: >>>> On Sep 25, 2024, at 1:13 PM, Scott Hannahs via Fink-users <[email protected]> wrote: >>>> >>>> >>>> >>>>> On Sep 25, 2024, at 05:14, Hanspeter Niederstrasser <[email protected] <mailto:[email protected]>> wrote: >>>>> >>>>> On 9/23/24 9:23 PM, Scott Hannahs via Fink-users wrote: >>>>>> It seems to build fine, but there is an install error. Have rebuilt the package, but there is an issue with “alternatives”?? I was trying to update pytlint but this is one of the dependencies. >>>>>> Preparing to unpack .../dill-py310_0.3.8-1_darwin-x86_64.deb ... >>>>>> Unpacking dill-py310 (0.3.8-1) over (0.3.8-1) ... >>>>>> Setting up dill-py310 (0.3.8-1) ... >>>>>> update-alternatives: error: alternative path /opt/sw/bin/dill-py3.10 doesn't exist >>>>>> dpkg: error processing package dill-py310 (--install): >>>>>> subprocess installed post-installation script returned error exit status 2 >>>>>> Errors were encountered while processing: >>>>>> dill-py310 >>>>>> ### execution of /opt/sw/bin/dpkg-lockwait failed, exit code 1 >>>>>> Failed: can't install package dill-py310-0.3.8-1 >>>>>> I think he dot-info file creates that file so I am not sure why it does not exist. >>>>> >>>>> Fixed. update-alternatives was looking for dill-pyX.YZ when it should have been undill-pyX.YZ. >>>>> >>>>> Hanspeter >>>> >>>> Hanspeter, >>>> Thanks, I would never have found the difference between dill and undill! >>>> >>>> -Scott >>> Spoke too soon, tried to update dill (dependency from pylint?) >>> There is still a problem with the alternatives? >>> Preparing to unpack .../dill-py310_0.3.8-2_darwin-x86_64.deb ... >>> update-alternatives: error: no alternatives for dill >>> dpkg: warning: subprocess old pre-removal script returned error exit status 2 >>> dpkg: trying script from the new package instead ... >>> update-alternatives: error: no alternatives for dill >>> dpkg: error processing archive /opt/sw/fink/dists/stable/main/binary-darwin-x86_64/libs/pythonmods/dill-py310_0.3.8-2_darwin-x86_64.deb (--install): >>> subprocess new pre-removal script returned error exit status 2 >>> update-alternatives: error: no alternatives for dill >>> dpkg: error while cleaning up: >>> subprocess installed post-installation script returned error exit status 2 >>> Errors were encountered while processing: >>> /opt/sw/fink/dists/stable/main/binary-darwin-x86_64/libs/pythonmods/dill-py310_0.3.8-2_darwin-x86_64.deb >>> ### execution of /opt/sw/bin/dpkg-lockwait failed, exit code 1 >>> Failed: can't install package dill-py310-0.3.8-2 >> >> Ugh. The new u-a is stricter and errors out. If you edit the file /opt/sw/fink/dists/stable/main/finkinfo/libs/pythonmods/dill-py.info so that in both PostInstScript() and PreRmScript(), the >> `update-alternatives --auto dill` command (lines 40 and 51) is inside the `if [ -f %p/bin/dill-py ]; then` conditional, does that work? Run `fink rebuild dill-py38; fink reinstall dill-py38` >> >> The conditional should now look like this (all else in those scripts stay the same: >> >> if [ -f %p/bin/dill-py ]; then >> update-alternatives --auto dill >> update-alternatives --verbose --remove dill %p/bin/dill-py%type_raw[python] >> fi >> >> Hanspeter > > Ugh indeed. So I made those modifications but doesn’t this script now remove the executable dill while creating undill and undill-py310 as a hard linked file? It seems to only check for the un-versioned executable %p/bin/dill-py. > There is no dill or dill-py310 installed. > > May not be able to do more testing for awhile. Have a hurricane coming in and will lose power soon. NVM, seems there is only an undill executable never a dill. Go figure. -Scott _______________________________________________ Fink-users mailing list [email protected] List archive: https://sourceforge.net/p/fink/mailman/fink-users/ Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users