[MacPorts] #63532: py-tensorflow @2.6.0 on M1: Architecture confusion for dependencies
MacPorts
noreply at macports.org
Thu Sep 23 09:46:42 UTC 2021
#63532: py-tensorflow @2.6.0 on M1: Architecture confusion for dependencies
--------------------+---------------------------
Reporter: p-bro | Owner: emcrisostomo
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Keywords: | Port: py-tensorflow
--------------------+---------------------------
When attempting to install the py-tensorflow port on MacOS 11.6 on M1,
{{{port install py-tensorflow}}} command bails out with the following
error:
{{{
Error: Cannot install py39-tensorflow for the arch 'x86_64' because
Error: its dependency bazel-3.7 does not build for the required arch by
default
Error: and does not have a universal variant.
Error: Follow https://guide.macports.org/#project.tickets if you believe
there is a bug.
Error: Processing of port py-tensorflow failed
}}}
A full log is attached. For some reason ports is confused about the
architecture it's running on: At no point I requested the x86_64
architecture. All my configuration files are the default.
Directly requesting the py39 version with the command {{{port install
py39-tensorflow}}} does not have this issue and proceeds to install
dependencies in the correct architectures.
I encountered the bug on py-tensorflow, but there may be something more
fundamental going on here, and the bug may actually be with base.
--
Ticket URL: <https://trac.macports.org/ticket/63532>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list