Open rduivenvoorde opened 3 weeks ago
Fedora and Debian (testing in my case but I get the same issue) doesn't ship the same PyQt/SIP version.
fedora -- Found SIP version: 6.7.12 -- Found PyQt6 version: 6.6.1
debian -- Found SIP version: 6.8.3 -- Found PyQt6 version: 6.7.0 (6.6.1 in testing)
I cannot restore the QList<qint64>
in conversions.sip because it then breaks fedora (same mapped type defined in a different module).
I asked in pyqt list, let's wait their answers.
I give up!
I fail to understand what's going on and I didn't get much help on the mailing list.
It could be related to the fact that Qt and PyQt minor version differs on Debian (6.6.2/6.7.0 on sid and 6.4.2/6.6.1 on testing) while the version matches on Fedora. I imagine next step would be to try to build pyqt from the Qt distribution package to have matching version...
but I don't have the energy/time left to try this.
@troopa81
What a mess 😭. One ugly idea I had would be to just add a cmake bool for "SIP_NEEDS_QLIST_QINT64_CONVERSION", and enable the conversion code selectively based on this setting. It'd require developers to set that switch for certain platforms, but at least it'd get things compiling
Thanks both, for investigating. I'm not in a hurry, and if I really need a Qt6 build (for some plugin), I can use Nyall's conversions.sip. Please refrain from 'fixes' only because of my question. Better keep it simple for those that actually do Qt6 work, and apparently work on Fedora.
Did we already decide on which python binding system we use in future: PyQt vs the QtPython stuff?
@nyalldawson Yeah, I thought about something like that, or maybe a If debian and SIP 6
directive so no developer lose time with this. But that's ugly.
Please refrain from 'fixes' only because of my question.
Acutally, I'm also on Debian and it bothers me, and an other contributor already lose some precious time figure out what's going on, so I think we need a fix here.
Did we already decide on which python binding system we use in future: PyQt vs the QtPython stuff?
For now, we stick to PyQt but I still plan to continue the QtPython port to see it it can work.
What is the bug or the crash?
Trying to compile QGIS in Debian sid (just to see if in near future I can use QGIS on Debian).
I fail to 'just compile' because of:
Asked this earlier on the mailing list, there Nyall proposed to use a fixed
python/PyQt6/core/conversions.sip
: https://github.com/nyalldawson/QGIS/commit/c9b8c74d8abbc61f373dafbe94c35f2b8e9fe41dThis works but apparently it cannot be merged, or the latest versions of the sid packages still are not on par with the Fedora versions??
Note that even after this conversions.sip fix, the install fails because of an error in the dbmanager python plugin (of which I then disable the install).
Steps to reproduce the issue
Create VM with Debian sid, checkout master in your ~/git dir.
Try to Compile QGIS
Versions
In the end of the configure step I get:
Supported QGIS version
New profile
Additional context
No response