Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Failure to compile with python-pyqt5. #13

Closed
hgaiser opened this issue Jan 13, 2020 · 1 comment
Closed

Failure to compile with python-pyqt5. #13

hgaiser opened this issue Jan 13, 2020 · 1 comment

Comments

@hgaiser
Copy link

hgaiser commented Jan 13, 2020

This packages fails to compile on the last version of python-pyqt5. The error you get is:

[ 89%] Running SIP generator for qt_gui_cpp_sip Python bindings...
Traceback (most recent call last):
  File "/opt/ros/melodic/share/python_qt_binding/cmake/sip_configure.py", line 50, in get_sip_dir_flags
    sip_dir = config.pyqt_sip_dir
  File "/usr/lib/python3.8/site-packages/sipconfig.py", line 192, in __getattr__
    raise AttributeError("\"%s\" is not a valid configuration value or user option" % name)
AttributeError: "pyqt_sip_dir" is not a valid configuration value or user option

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/ros/melodic/share/python_qt_binding/cmake/sip_configure.py", line 86, in <module>
    sip_dir, sip_flags = get_sip_dir_flags(config)
  File "/opt/ros/melodic/share/python_qt_binding/cmake/sip_configure.py", line 66, in get_sip_dir_flags
    raise FileNotFoundError('The sip directory for PyQt5 could not be located. Please ensure' +
FileNotFoundError: The sip directory for PyQt5 could not be located. Please ensure that PyQt5 is installed
make[2]: *** [src/qt_gui_cpp_sip/CMakeFiles/libqt_gui_cpp_sip.dir/build.make:90: sip/qt_gui_cpp_sip/Makefile] Error 1
make[1]: *** [CMakeFiles/Makefile2:349: src/qt_gui_cpp_sip/CMakeFiles/libqt_gui_cpp_sip.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

pyqt_sip_dir points to /usr/share/sip/Qt5. This error seems to come from the change in python-pyqt5. They removed the pyqt5-common package which included sip files in /usr/share/sip/Qt5, which ros-melodic-qt-gui-cpp relies on.

Is this an issue with upstream python-pyqt5? Or maybe in qt_gui_cpp? Or is this something to be resolved in the PKGBUILD?

@hgaiser hgaiser changed the title Failed to compile with sip5. Failure to compile with python-pyqt5. Jan 13, 2020
@jwhendy
Copy link
Contributor

jwhendy commented Jan 13, 2020

@jwhendy jwhendy closed this as completed Jan 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants