[MacPorts] #73963: Unable to install py314-mypy

MacPorts noreply at macports.org
Sun May 3 13:30:59 UTC 2026


#73963: Unable to install py314-mypy
-------------------------+--------------------
 Reporter:  donnaaboise  |      Owner:  (none)
     Type:  defect       |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:
 Keywords:               |       Port:
-------------------------+--------------------
 After "upgrade outdated", I get the following error :

 {{{
 Error: Failed to build py314-mypy: command execution failed
 }}}

 I made many attempts to unistall/reinstall the port, but with no luck.
 This appears to be happening when upgrading scipy.


 ----

 1.  Upgrade outdated :


 {{{
 (bash) ~ % sudo port upgrade outdated
 The following port will be upgraded:
  py314-scipy

 The following new ports will be installed as dependencies:
  py314-mypy_extensions
  py314-mypy
 Continue? [Y/n]: Y
 --->  Installing py314-mypy_extensions @1.1.0_0 (1/3)
 --->  Computing dependencies for py314-mypy_extensions
 --->  Fetching archive for py314-mypy_extensions
 --->  Installing py314-mypy_extensions @1.1.0_0
 --->  Activating py314-mypy_extensions @1.1.0_0
 --->  Cleaning py314-mypy_extensions
 --->  Installing py314-mypy @1.20.2_1 (2/3)
 --->  Computing dependencies for py314-mypy
 --->  Fetching archive for py314-mypy
 --->  Archive not available for py314-mypy, building locally
 --->  Fetching distfiles for py314-mypy
 --->  Verifying checksums for py314-mypy
 --->  Extracting py314-mypy
 --->  Applying patches to py314-mypy
 --->  Configuring py314-mypy
 --->  Building py314-mypy
 Error: Failed to build py314-mypy: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-mypy/py314-mypy/main.log
 for details.
 Error: Problem while installing py314-mypy @1.20.2_1
 }}}


 ----

 2.   From main.log :

 {{{
 ....
 :debug:build system:  cd "/opt/local/var/macports/build/py314-mypy-
 00c5c744/work/mypy-1.20.2" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.14/bin/python3.14
 -m build --no-isolation --wheel --outdir
 /opt/local/var/macports/build/py314-mypy-00c5c744/work
 :info:build * Getting build dependencies for wheel...
 :info:build Traceback (most recent call last):
 :info:build   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14
 /site-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in
 <module>
 :info:build     main()
 :info:build     ~~~~^^
 :info:build   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14
 /site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in
 main
 :info:build     json_out["return_val"] = hook(**hook_input["kwargs"])
 :info:build                              ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
 :info:build   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14
 /site-packages/pyproject_hooks/_in_process/_in_process.py", line 143, in
 get_requires_for_build_wheel
 :info:build     return hook(config_settings)
 :info:build   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14
 /site-packages/setuptools/build_meta.py", line 333, in
 get_requires_for_build_wheel
 :info:build     return self._get_build_requires(config_settings,
 requirements=[])
 :info:build
 ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 :info:build   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14
 /site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
 :info:build     self.run_setup()
 :info:build     ~~~~~~~~~~~~~~^^
 :info:build   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14
 /site-packages/setuptools/build_meta.py", line 317, in run_setup
 :info:build     exec(code, locals())
 :info:build     ~~~~^^^^^^^^^^^^^^^^
 :info:build   File "<string>", line 150, in <module>
 :info:build   File "/opt/local/var/macports/build/py314-mypy-
 00c5c744/work/mypy-1.20.2/mypyc/build.py", line 32, in <module>
 :info:build     from mypy.build import BuildSource
 :info:build   File "/opt/local/var/macports/build/py314-mypy-
 00c5c744/work/mypy-1.20.2/mypy/build.py", line 59, in <module>
 :info:build     import mypy.semanal_main
 :info:build   File "/opt/local/var/macports/build/py314-mypy-
 00c5c744/work/mypy-1.20.2/mypy/semanal_main.py", line 35, in <module>
 :info:build     from mypy.checker import FineGrainedDeferredNode
 :info:build   File "/opt/local/var/macports/build/py314-mypy-
 00c5c744/work/mypy-1.20.2/mypy/checker.py", line 21, in <module>
 :info:build     import mypy.checkexpr
 :info:build   File "/opt/local/var/macports/build/py314-mypy-
 00c5c744/work/mypy-1.20.2/mypy/checkexpr.py", line 12, in <module>
 :info:build     from typing_extensions import assert_never
 :info:build ModuleNotFoundError: No module named 'typing_extensions'
 :info:build ERROR Backend subprocess exited when trying to invoke
 get_requires_for_build_wheel
 :info:build Command failed:  cd "/opt/local/var/macports/build/py314-mypy-
 00c5c744/work/mypy-1.20.2" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.14/bin/python3.14
 -m build --no-isolation --wheel --outdir
 /opt/local/var/macports/build/py314-mypy-00c5c744/work
 :info:build Exit code: 1
 :error:build Failed to build py314-mypy: command execution failed
 :debug:build Error code: CHILDSTATUS 8034 1
 :debug:build Backtrace: command execution failed
 :debug:build     while executing
 :debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
 :debug:build     invoked from within
 :debug:build "command_exec -callback
 portprogress::target_progress_callback build"
 :debug:build     (procedure "portbuild::build_main" line 10)
 :debug:build     invoked from within
 :debug:build "$procedure $targetname"
 :error:build See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-mypy/py314-mypy/main.log
 for details.
 }}}


 ----
 3.  Install py314-mypy_extensions separately.


 {{{
 (bash) ~ % sudo port install py314-mypy_extensions
 --->  Computing dependencies for py314-mypy_extensions
 --->  Cleaning py314-mypy_extensions
 --->  Scanning binaries for linking errors
 --->  No broken files found.
 --->  No broken ports found.
 (bash) ~ % sudo port installed | grep py314-mypy
   py314-mypy_extensions @1.1.0_0 (active)
 (bash) ~ %
 }}}

 4.  Uninstall/clean py314-mypy.   Try installing py314-mypy again


 {{{
 (bash) ~ % sudo port uninstall py314-mypy
 (bash) ~ % sudo port clean --all py314-mypy
 --->  Cleaning py314-mypy
 (bash) ~ %
 (bash) ~ % sudo port install py314-mypy
 --->  Upgrading already installed dependencies of py314-mypy
 --->  Computing dependencies for py314-mypy
 --->  Fetching archive for py314-mypy
 Attempting to fetch
 https://packages.macports.org/py314-mypy/py314-mypy-1.20.2_1.darwin_24.arm64.tbz2
 Attempting to fetch
 https://mse.uk.packages.macports.org/py314-mypy/py314-mypy-1.20.2_1.darwin_24.arm64.tbz2
 Attempting to fetch
 https://fra.de.packages.macports.org/py314-mypy/py314-mypy-1.20.2_1.darwin_24.arm64.tbz2
 --->  Archive not available for py314-mypy, building locally
 --->  Fetching distfiles for py314-mypy
 --->  Verifying checksums for py314-mypy
 --->  Extracting py314-mypy
 --->  Applying patches to py314-mypy
 --->  Configuring py314-mypy
 --->  Building py314-mypy
 Error: Failed to build py314-mypy: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-mypy/py314-mypy/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there is a bug.
 Error: Processing of port py314-mypy failed
 }}}

 From what I have read, it seems that I do not need this module, and can
 use Scipy without this upgrade.  But if i blocks future upgrades, this
 could be a problem.

-- 
Ticket URL: <https://trac.macports.org/ticket/73963>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list