[MacPorts] #65037: py39-platformdirs fails to locate installed dependencies

MacPorts noreply at macports.org
Wed Apr 20 02:05:04 UTC 2022


#65037: py39-platformdirs fails to locate installed dependencies
------------------------------+------------------------
  Reporter:  mouse07410       |      Owner:  reneeotten
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:
Resolution:                   |   Keywords:
      Port:  py-platformdirs  |
------------------------------+------------------------

Comment (by mouse07410):

 I've removed all the dependencies, cleaned those ports, did {{{sudo port
 selfupdate}}}, and tried to install again. Dependencies installed OK, but
 the {{{py39-platformdirs}}} port keeps failing:

 {{{
 $ sudo port uninstall -f py39-hatch-vcs py39-hatchling py39-packaging
 py39-pluggy py39-platformdirs
 --->  Deactivating py39-hatch-vcs @0.2.0_1
 --->  Cleaning py39-hatch-vcs
 --->  Uninstalling py39-hatch-vcs @0.2.0_1
 --->  Cleaning py39-hatch-vcs
 --->  Deactivating py39-hatchling @0.22.0_1
 --->  Cleaning py39-hatchling
 --->  Uninstalling py39-hatchling @0.22.0_1
 --->  Cleaning py39-hatchling
 --->  Unable to uninstall py39-packaging @21.3_0, the following ports
 depend on it:
 --->    py39-build @0.7.0_0
 --->    py39-setuptools_scm @6.4.2_0
 --->    py39-sphinx @4.5.0_0
 Warning: Uninstall forced.  Proceeding despite dependencies.
 --->  Deactivating py39-packaging @21.3_0
 --->  Cleaning py39-packaging
 --->  Uninstalling py39-packaging @21.3_0
 --->  Cleaning py39-packaging
 --->  Deactivating py39-pluggy @1.0.0_0
 --->  Cleaning py39-pluggy
 --->  Uninstalling py39-pluggy @1.0.0_0
 --->  Cleaning py39-pluggy
 $ sudo port clean py39-hatch-vcs py39-hatchling py39-packaging py39-pluggy
 py39-platformdirs
 --->  Cleaning py39-hatch-vcs
 --->  Cleaning py39-hatchling
 --->  Cleaning py39-packaging
 --->  Cleaning py39-pluggy
 --->  Cleaning py39-platformdirs
 $
 $ sudo port selfupdate
 --->  Updating MacPorts base sources using rsync
 MacPorts base version 2.7.2 installed,
 MacPorts base version 2.7.2 downloaded.
 --->  Updating the ports tree
 --->  MacPorts base is already the latest version

 The ports tree has been updated. To upgrade your installed ports, you
 should run
   port upgrade outdated
 $ sudo port install py39-platformdirs
 --->  Computing dependencies for py39-packaging
 --->  Fetching archive for py39-packaging
 --->  Attempting to fetch py39-packaging-21.3_0.darwin_21.noarch.tbz2 from
 https://packages.macports.org/py39-packaging
 --->  Attempting to fetch py39-packaging-21.3_0.darwin_21.noarch.tbz2 from
 https://nue.de.packages.macports.org/py39-packaging
 --->  Attempting to fetch py39-packaging-21.3_0.darwin_21.noarch.tbz2 from
 http://atl.us.packages.macports.org/py39-packaging
 --->  Attempting to fetch
 py39-packaging-21.3_0.darwin_21.noarch.tbz2.rmd160 from
 http://atl.us.packages.macports.org/py39-packaging
 --->  Installing py39-packaging @21.3_0
 --->  Activating py39-packaging @21.3_0
 --->  Cleaning py39-packaging
 --->  Computing dependencies for py39-platformdirs
 The following dependencies will be installed:
  py39-hatch-vcs
  py39-hatchling
  py39-pluggy
 Continue? [Y/n]:
 --->  Fetching archive for py39-pluggy
 --->  Attempting to fetch py39-pluggy-1.0.0_0.darwin_21.noarch.tbz2 from
 https://packages.macports.org/py39-pluggy
 --->  Attempting to fetch py39-pluggy-1.0.0_0.darwin_21.noarch.tbz2 from
 https://nue.de.packages.macports.org/py39-pluggy
 --->  Attempting to fetch py39-pluggy-1.0.0_0.darwin_21.noarch.tbz2 from
 http://atl.us.packages.macports.org/py39-pluggy
 --->  Attempting to fetch py39-pluggy-1.0.0_0.darwin_21.noarch.tbz2.rmd160
 from http://atl.us.packages.macports.org/py39-pluggy
 --->  Installing py39-pluggy @1.0.0_0
 --->  Activating py39-pluggy @1.0.0_0
 --->  Cleaning py39-pluggy
 --->  Fetching archive for py39-hatchling
 --->  Attempting to fetch py39-hatchling-0.22.0_1.darwin_21.x86_64.tbz2
 from https://packages.macports.org/py39-hatchling
 --->  Attempting to fetch py39-hatchling-0.22.0_1.darwin_21.x86_64.tbz2
 from https://nue.de.packages.macports.org/py39-hatchling
 --->  Attempting to fetch py39-hatchling-0.22.0_1.darwin_21.x86_64.tbz2
 from http://atl.us.packages.macports.org/py39-hatchling
 --->  Attempting to fetch
 py39-hatchling-0.22.0_1.darwin_21.x86_64.tbz2.rmd160 from
 http://atl.us.packages.macports.org/py39-hatchling
 --->  Installing py39-hatchling @0.22.0_1
 --->  Activating py39-hatchling @0.22.0_1
 --->  Cleaning py39-hatchling
 --->  Fetching archive for py39-hatch-vcs
 --->  Attempting to fetch py39-hatch-vcs-0.2.0_1.darwin_21.noarch.tbz2
 from https://packages.macports.org/py39-hatch-vcs
 --->  Attempting to fetch py39-hatch-vcs-0.2.0_1.darwin_21.noarch.tbz2
 from https://nue.de.packages.macports.org/py39-hatch-vcs
 --->  Attempting to fetch py39-hatch-vcs-0.2.0_1.darwin_21.noarch.tbz2
 from http://atl.us.packages.macports.org/py39-hatch-vcs
 --->  Attempting to fetch py39-hatch-
 vcs-0.2.0_1.darwin_21.noarch.tbz2.rmd160 from
 http://atl.us.packages.macports.org/py39-hatch-vcs
 --->  Installing py39-hatch-vcs @0.2.0_1
 --->  Activating py39-hatch-vcs @0.2.0_1
 --->  Cleaning py39-hatch-vcs
 --->  Fetching archive for py39-platformdirs
 --->  Attempting to fetch py39-platformdirs-2.5.2_0.darwin_21.noarch.tbz2
 from https://packages.macports.org/py39-platformdirs
 --->  Attempting to fetch py39-platformdirs-2.5.2_0.darwin_21.noarch.tbz2
 from https://nue.de.packages.macports.org/py39-platformdirs
 --->  Attempting to fetch py39-platformdirs-2.5.2_0.darwin_21.noarch.tbz2
 from http://atl.us.packages.macports.org/py39-platformdirs
 --->  Fetching distfiles for py39-platformdirs
 --->  Verifying checksums for py39-platformdirs
 --->  Extracting py39-platformdirs
 --->  Configuring py39-platformdirs
 --->  Building py39-platformdirs
 Error: Failed to build py39-platformdirs: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 platformdirs/py39-platformdirs/main.log for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there is a bug.
 Error: Processing of port py39-platformdirs failed
 $
 }}}

 Here's the error:
 {{{
 :debug:build system:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 platformdirs/py39-platformdirs/work/platformdirs-2.5.2" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9
 -m build --wheel --no-isolation --outdir
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 platformdirs/py39-platformdirs/work
 :info:build * Getting dependencies for wheel...
 :info:build ERROR Missing dependencies:
 :info:build     hatchling>=0.22.0
 :info:build     packaging>=21.3
 :info:build     hatch-vcs
 :info:build     hatchling>=0.21.0 -> packaging>=21.3
 :info:build     hatch-vcs
 :info:build     hatchling>=0.21.0 -> pluggy>=1.0.0
 :info:build     hatchling>=0.22.0
 :info:build     pluggy>=1.0.0
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 platformdirs/py39-platformdirs/work/platformdirs-2.5.2" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9
 -m build --wheel --no-isolation --outdir
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 platformdirs/py39-platformdirs/work
 :info:build Exit code: 1
 :error:build Failed to build py39-platformdirs: command execution failed
 }}}


 > Finally, are you implying that it does work for you with
 py310-plaformdirs (since you only mention the py38 and py39 subports)?

 That is correct:
 {{{
 $ port installed py310-platformdirs
 The following ports are currently installed:
   py310-platformdirs @2.5.2_0 (active)
 $
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/65037#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list