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

fatal: 'pyside2_global.h' file not found #11

Closed
nim65s opened this issue Nov 20, 2019 · 7 comments
Closed

fatal: 'pyside2_global.h' file not found #11

nim65s opened this issue Nov 20, 2019 · 7 comments

Comments

@nim65s
Copy link

nim65s commented Nov 20, 2019

Hi,

This PKGBUILD still has references to python3.7.

After updating those, I get the following issue, even if pyside2 is installed:

[ 52%] Running SIP generator for qt_gui_cpp_sip Python bindings...
sip: Deprecation warning: qt_gui_cpp.sip:1: %Module version number should be specified using the 'version' argument
qt.shiboken: (typesystem) CLANG builtins includes directory: /usr/lib/clang/9.0.0/include
(typesystem) clang_parseTranslationUnit2(0x0, cmd[11]=-isystem/usr/lib/clang/9.0.0/include -fPIC -Wno-constant-logical-operand -std=c++14 -I/tmp/ros-melodic-qt-gui-cpp/src/qt_gui_core-0.3.14/qt_gui_cpp/include -I/usr/include/qt -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -I/usr/lib/qt/mkspecs/linux-g++ /tmp/global_etwQDQ.hpp)
/tmp/ros-melodic-qt-gui-cpp/src/qt_gui_core-0.3.14/qt_gui_cpp/src/qt_gui_cpp_shiboken/global.h:37:10: fatal error: 'pyside2_global.h' file not found
(typesystem) Errors in /tmp/global_etwQDQ.hpp:
/tmp/ros-melodic-qt-gui-cpp/src/qt_gui_core-0.3.14/qt_gui_cpp/src/qt_gui_cpp_shiboken/global.h:37:10: fatal: 'pyside2_global.h' file not found
   /tmp/global_etwQDQ.hpp:1:10: note: in file included from /tmp/global_etwQDQ.hpp:1:


(typesystem) Clang: 1 diagnostic messages:
  /tmp/ros-melodic-qt-gui-cpp/src/qt_gui_core-0.3.14/qt_gui_cpp/src/qt_gui_cpp_shiboken/global.h:37:10: fatal: 'pyside2_global.h' file not found
   /tmp/global_etwQDQ.hpp:1:10: note: in file included from /tmp/global_etwQDQ.hpp:1:


Keeping temporary file: /tmp/global_etwQDQ.hpp
shiboken: Error running ApiExtractor.
Command line: --generatorSet=shiboken --include-paths=/tmp/ros-melodic-qt-gui-cpp/src/qt_gui_core-0.3.14/qt_gui_cpp/src/qt_gui_cpp_shiboken/../../include:/usr/include/qt/:/usr/include/qt/QtWidgets:/usr/include/qt/QtGui:/usr/include/qt/QtCore:/usr/lib/qt//mkspecs/linux-g++ --typesystem-paths=/usr/share/PySide2/typesystems --output-directory=/tmp/ros-melodic-qt-gui-cpp/src/build/src/qt_gui_cpp_shiboken global.h typesystem.xml
@nim65s
Copy link
Author

nim65s commented Nov 20, 2019

workaround found and tested here: ros-visualization/qt_gui_core#142 (comment)

@jwhendy
Copy link
Contributor

jwhendy commented Nov 20, 2019

Re. python3.8, see this issue. It appears (thanks to @acxz 's diging) that the 3.7 paths were just script-added unnecessarily to every one of these packages. That issue has the list of all the packages that actually depend on python paths. Just adding that comment, as the python3.7 observation was likely a false error.

Your output appears incomplete. I don't see the end of the failure itself, just an error about ApiExtractor.

Also, what was the specific workaround you found? That comment recommends installing sip and python-sip, but those are already depends for this package.

It's not clear what actually happened and what was the ultimate fix for you (that isn't handled here). Thanks for any additional details.

@nim65s
Copy link
Author

nim65s commented Nov 20, 2019

The workaround working for me was to remove the packages pyside2 & pyside2-tools from my system.

I thought the error was about the fatal error: 'pyside2_global.h' file not found, appearing several times, and the fact that the include path doesn't contains /usr/share/PySide2, which is where this pyside2_global.h is.

I can reproduce and provide additional details if told how :)

@acxz
Copy link
Member

acxz commented Nov 20, 2019

hmm, I will try to reproduce this when I get time later, but basically there might be an error when installing this package alongside pyside2 & pyside2-tools? I also got an error recently when I had shiboken2 installed, but didn't save the log. In any case I will try to reproduce.

@jwhendy
Copy link
Contributor

jwhendy commented Nov 21, 2019

@nim65s Ah, that's helpful. So we could build fine not having those, but having them is causing some premature issue. I admit I have zero knowledge of this. You can see I was bitten by this over at that same linked bug. sip, shiboken, pyside... seems really weird that somehow each of these could individually satisfy whatever ROS wants.

@acxz I wonder if your shiboken2 issue was related to this?

@acxz
Copy link
Member

acxz commented Jan 13, 2020

I think so, but shiboken is now playing nice with me. Let me try to reproduce this issue with pyside2 and pyside2-tools.

@acxz
Copy link
Member

acxz commented Jan 13, 2020

Closing this issue, since it is a duplicate of #12 and more convo has happened there.

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

3 participants