Opened 5 years ago

Closed 5 years ago

#60208 closed defect (fixed)

mbedtls @2.21.0: Could NOT find PythonInterp: Found unsuitable version "2.7.1", but required is at least "3"

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc:
Port: mbedtls

Description

mbedtls cannot find a suitable python:

-- Could NOT find PythonInterp: Found unsuitable version "2.7.1", but required is at least "3" (found /usr/bin/python)
Traceback (most recent call last):
  File "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_mbedtls/mbedtls/work/mbedtls-2.21.0/crypto/3rdparty/everest/../../scripts/config.py", line 422, in <module>
    sys.exit(main())
  File "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_mbedtls/mbedtls/work/mbedtls-2.21.0/crypto/3rdparty/everest/../../scripts/config.py", line 395, in main
    config = ConfigFile(args.file)
  File "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_mbedtls/mbedtls/work/mbedtls-2.21.0/crypto/3rdparty/everest/../../scripts/config.py", line 250, in __init__
    super().__init__()
TypeError: super() takes at least 1 argument (0 given)

The port has a build dependency on python38 but does not appear to do anything to tell the build system to use that python.

Change History (5)

comment:1 Changed 5 years ago by Schamschula (Marius Schamschula)

I don't know what is going on here. The port depends on python38.

comment:2 Changed 5 years ago by Schamschula (Marius Schamschula)

On closer examination cmake finds Apple's python. Looking into it.

comment:3 Changed 5 years ago by Schamschula (Marius Schamschula)

In b1b19e89bd19ecded95a37cc949578c3b7c7f6f6/macports-ports (master):

mbedtls: explicity use PYTHON_EXECUTABLE

See: #60208

comment:4 Changed 5 years ago by Schamschula (Marius Schamschula)

In a45079600e996dd4c22320c94fdd1ffac5f91d11/macports-ports (master):

mbedtls: fix python executable

See: #60208

comment:5 Changed 5 years ago by Schamschula (Marius Schamschula)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.