Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#62857 closed defect (fixed)

py37-pyqt5: Project ERROR: Could not resolve SDK Path for 'macosx10.11' using --show-sdk-path

Reported by: XE3ADC (Abraham Diaz de Leon) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc: ra1nb0w, michaelld (Michael Dickens)
Port: py-pyqt5

Description

Hello, During the installation of GNUradio on Mac OSx 10.11.6(El Capitan) the error down below occurred and aborted the installation. I'm using: macOs 10.11.6, macports v 2.6.,4, xcode 8.2, GNUradio port Version 3.8.3.0

Continue? [Y/n]: y
--->  Fetching archive for py37-pyqt5
--->  Attempting to fetch py37-pyqt5-5.15.4_0.darwin_15.x86_64.tbz2 from https://packages.macports.org/py37-pyqt5
--->  Attempting to fetch py37-pyqt5-5.15.4_0.darwin_15.x86_64.tbz2 from https://kmq.jp.packages.macports.org/py37-pyqt5
--->  Attempting to fetch py37-pyqt5-5.15.4_0.darwin_15.x86_64.tbz2 from https://fra.de.packages.macports.org/py37-pyqt5
--->  Configuring py37-pyqt5
Warning: Qt dependency is not the latest version but may be the latest supported on your OS
Error: Failed to configure py37-pyqt5: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pyqt5/py37-pyqt5/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port gnuradio failed
bash-3.2$

I searched the internet and macports tickets repository for a solution and and found none. I'm attaching the log file mentioned in the console text. Please kindly give me a hand to solve this problem, I'm a newbie on Linux and macports and have no idea on how to proceed. Thanks in advance and best regards, Abraham

Attachments (2)

main.log (319.2 KB) - added by XE3ADC (Abraham Diaz de Leon) 3 years ago.
log file from failed installation - ticket 62857
main-2.log (327.6 KB) - added by XE3ADC (Abraham Diaz de Leon) 3 years ago.
port installation log for second try.

Download all attachments as: .zip

Change History (13)

Changed 3 years ago by XE3ADC (Abraham Diaz de Leon)

Attachment: main.log added

log file from failed installation - ticket 62857

comment:1 Changed 3 years ago by ra1nb0w

The error is the following:

:info:configure Error: Failed to determine the detail of your Qt installation. Try again using
3766	:info:configure the --verbose flag to see more detail about the problem.
3767	:info:configure Querying qmake about your Qt installation...
3768	:info:configure Determining the details of your Qt installation...
3769	:info:configure /opt/local/libexec/qt5/bin/qmake -o cfgtest_QtCore.mk cfgtest_QtCore.pro
3770	:info:configure Project ERROR: Could not resolve SDK Path for 'macosx10.11' using --show-sdk-path
3771	:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-pyqt5/py37-pyqt5/work/PyQt5-5.15.4" && /opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 configure.py -q /opt/local/libexec/qt5/bin/qmake --verbose --confirm-license --sip=/opt/local/bin/sip-3.7 --dbus=/opt/local/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/dbus-1.0 --designer-plugindir=/opt/local/libexec/qt5/plugins/designer/Py37Qt5 --qml-plugindir=/opt/local/libexec/qt5/plugins/Py37Qt5 --no-qsci-api --disable=QtWebKit --disable=QtWebKitWidgets --no-dist-info --allow-sip-warnings --spec=macx-clang

Have you installed XCode command line and XCode? https://guide.macports.org/#installing.xcode

Then check with xcrun --sdk macosx10.11 --show-sdk-path

comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: GNU radio py37-pyqt5. removed
Port: py-pyqt5 added; GNradio removed
Summary: Installing GNUradio on OSX 10.11.6 - Error: Failed to configure py37-pyqt5:py37-pyqt5: Project ERROR: Could not resolve SDK Path for 'macosx10.11' using --show-sdk-path

comment:3 Changed 3 years ago by XE3ADC (Abraham Diaz de Leon)

Thanks for the response: I had Xcode 8 that do not support Xcode command line kit, therefore I managed to install Xcode 8.2 (that does support Xcode command line kit) and the corresponding Xcode line command package. Xcode was placed in the applications folder and the Xcode command line package was installed in the installer's default place. Executing xcrun --sdk macosx10.11 --show-sdk-path gives the following errors:

Abraham-Diaz-de-Leon-Camous-iMac:~ abrahams$ xcrun --sdk macosx10.11 --show-sdk-path
xcodebuild: error: SDK "macosx10.11" cannot be located.
xcodebuild: error: SDK "macosx10.11" cannot be located.
xcrun: error: unable to lookup item 'Path' in SDK 'macosx10.11'

Executing xcrun --show-sdk-path gives the following path:

Abraham-Diaz-de-Leon-Camous-iMac:~ abrahams$ xcrun --show-sdk-path
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
Abraham-Diaz-de-Leon-Camous-iMac:~ abrahams$

It appears that the Command line package that was in fact installed is MacOSX10.12.sdk Executing xcrun --sdk macosx10.12 --show-sdk-path gives:

Abraham-Diaz-de-Leon-Camous-iMac:~ abrahams$ xcrun --sdk macosx10.**12** --show-sdk-path
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
Abraham-Diaz-de-Leon-Camous-iMac:~ abrahams$

How do I procedd?, should I continue with the port install? Many Thanks, Abraham

comment:4 Changed 3 years ago by ra1nb0w

give a try with the port.

Changed 3 years ago by XE3ADC (Abraham Diaz de Leon)

Attachment: main-2.log added

port installation log for second try.

comment:5 Changed 3 years ago by XE3ADC (Abraham Diaz de Leon)

HI, I tryed to continue the port installation and obtained same results. I attached the installation log for the second try. Thanks and regards, Abraham

comment:6 Changed 3 years ago by ra1nb0w

have you tried sudo port clean py37-pyqt5 && sudo port install py37-pyqt5?

comment:7 Changed 3 years ago by XE3ADC (Abraham Diaz de Leon)

No, but i tried with same results at first...

Afterwards, I managed to have port py37-pyqt5 installed succesfuly by doing the following:

1-uninstalled all xcode versions

2-uninstalled all command line package installations

3-installed xcode 8.2.1 and its corresponding command line package(from apple developers site)

4-found out that the command line package was installed in the folloging paths:

a) /library/developers/SDKs/, and

b)/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/

5-both directories contained a directory named MacOSX.sdk and a symlink for it named MacOSX10.12.sdk

6-as the port install looks for the directory MacOSX10.11 and fails because its not found i went on and created with Finder, in both directories, an alias for MacOSX called MacOSX10.11

7-ran the port install py37-pyqt5 again obtaining a succesfull install for py37-pyqt5.

As for the gnuradio port install, now having py37-pyqt5 correctly installed, I resumed the port install gnuradio that eventualy ended sucessfully.

Executed gnuradio-companion and seems to be working properly.

Thanks a ton for your guidance, let me know if I can help with further information.

Best regards, Abraham

comment:8 Changed 3 years ago by ra1nb0w

Resolution: fixed
Status: newclosed

Ok. I am not an xcode/SDK expert but reading the SDK 11.x is provided by Xcode 7.3.

I need to catch someone that explain me this :)

comment:9 Changed 3 years ago by jmroot (Joshua Root)

If you have the Command Line Tools installed correctly, no SDK will be used on 10.11. The headers in /usr/include and the libraries in /usr/lib will be used.

comment:10 Changed 3 years ago by XE3ADC (Abraham Diaz de Leon)

If i had managed to install pyqt5 using other method like pip3, would the gnuradio port install have succeded upon resuming?

comment:11 Changed 3 years ago by ra1nb0w

thank you @jmroot for the clarification.

@XE3ADC: no

Note: See TracTickets for help on using tickets.