Open drapado opened 3 years ago
Same error on Arch, can confirm.
Do as this mail https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1828544.html,
remove py_ssize_t_clean=True
from your PyQt5/bindings/QtCore/QtCoremod.sip:23 can fix this problem.
But I think the best way to solve this is fix sip as that mail.
Here is the commit that removed sip4 support from the archlinux package: https://github.com/archlinux/svntogit-packages/commit/9f73b4aabafa235823c529e3a37799ce678b776d#diff-37538beb61ff63edebbf735dfcf39e5d732f49183d6beb097169d971875ca422
Does a fix or workaround for this issue exist? I've read to this issue but I am not sure on what to do to compile this package successfully.
To clarify: ros-noetic-arch/ros-noetic-python-qt-binding#7
sudoedit /usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/QtCoremod.sip
Edit line 23 to: %Module(name=PyQt5.QtCore, call_super_init=True, default_VirtualErrorHandler=PyQt5, keyword_arguments="Optional", use_limited_api=True)
The proper fix is to revert the commit to add sip4 support back. Another workaround is to add a pyqt5-sip4 package in the AUR that has support for sip4 which is what I'm currently working on.
Same error on Manjaro, but the fix with editing line 23 seems to work for me.
Closing as python-pyqt5-sip4
package is out. python-pyqt5-sip4
does not build for me, but that's an issue for other repository.
Thanks a lot for all the work you @acxz and the rest of the guys do packaging ROS for arch ;)
Thanks for the kind words @drapado!
not build for me
Link to the other issue: https://github.com/acxz/pkgbuilds/issues/176 tldr build in a clean chroot (recommend to use paru's --chroot feature)
We'll keep this issue open since the solution is technically a patch until I can convince the Arch maintainers to add the sip4 support back in the official python-pyqt5 package.
python-pyqt5-sip4
May I install it via pip
like pip install pyqt5-sip4
? (Currently I use pip install PyQt5-sip
)
@felixf4xu I have not uploaded that package on pypi. I would suggest you use the AUR package as the entire ros-noetic-arch stack is on AUR and will make your life easier. If you do want to use it via pip
you'll have to host it on pypi
yourself.
Build error encountered when running
yay -S ros-noetic-desktop-full
on a clean install: