Opened 8 months ago

Last modified 5 months ago

#60834 assigned defect

py27-tensorflow1: ERROR: tensorflow-1.15.3-cp27-cp27m-macosx_10_13_x86_64.whl is not a supported wheel on this platform.

Reported by: ryandesign (Ryan Schmidt) Owned by: emcrisostomo (Enrico Maria Crisostomo)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: sierra Cc: cjones051073 (Chris Jones)
Port: py-tensorflow1

Description

https://build.macports.org/builders/ports-10.12_x86_64-builder/builds/122650/steps/install-port/logs/stdio

ERROR: tensorflow-1.15.3-cp27-cp27m-macosx_10_13_x86_64.whl is not a supported wheel on this platform.

Change History (1)

comment:1 Changed 5 months ago by ryandesign (Ryan Schmidt)

Keywords: sierra added

Current logs for
py27-tensorflow1 @1.15.4
py36-tensorflow1 @1.15.4
py37-tensorflow1 @1.15.4
py38-tensorflow1 @1.15.4

The problem seems to be that although we are on macOS 10.12 it is compiling with -mmacosx-version-min=10.13 (which it should not do) which ultimately leads to:

[WARNING] This wheel needs a higher macOS version than the version your Python interpreter is compiled against.  To silence this warning, set MACOSX_DEPLOYMENT_TARGET to at least 10_13 or recreate these files with lower MACOSX_DEPLOYMENT_TARGET:  
  File "setup.py", line 306, in <module>
    keywords='tensorflow tensor machine learning',
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 328, in run
    impl_tag, abi_tag, plat_tag = self.get_tag()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 278, in get_tag
    assert tag in supported_tags, "would build wheel with unsupported tag {}".format(tag)
AssertionError: would build wheel with unsupported tag ('cp37', 'cp37m', 'macosx_10_13_x86_64')

We also see in the log:

    APPLE_SDK_VERSION_OVERRIDE=10.13 \

This is fine since it is using Xcode 9.2 which contains only the 10.13 SDK, but that has nothing to do with the deployment target.

Note: See TracTickets for help on using tickets.