Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warning CMP0002 in pyqt/CMakeLists.txt #177

Closed
agaida opened this issue May 6, 2018 · 16 comments
Closed

Deprecation warning CMP0002 in pyqt/CMakeLists.txt #177

agaida opened this issue May 6, 2018 · 16 comments

Comments

@agaida
Copy link
Member

agaida commented May 6, 2018

Version: current git, cmake version 3.11.1, Qt 5.10.1

CMake Deprecation Warning at pyqt/CMakeLists.txt:4 (cmake_policy):
  The OLD behavior for policy CMP0002 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
@agaida agaida changed the title Deprecation warning CMP0002 Deprecation warning CMP0002 in pyqt/CMakeLists.txt May 6, 2018
@agaida agaida added this to Needs triage in Issues Jul 14, 2018
@agaida agaida moved this from Needs triage to Low priority in Issues Jul 14, 2018
@agaida
Copy link
Member Author

agaida commented Jul 22, 2018

@luis-pereira - is there a special reason for OLD?

@luis-pereira
Copy link
Member

@agaida I'm not sure if we can remove it.
Actually, the bindings seem to be broken with Qt5.11. Can anybody confirm ? @yan12125

@yan12125
Copy link
Member

yan12125 commented Jul 31, 2018 via email

@agaida agaida moved this from Low priority to Sprint in Issues Sep 15, 2018
@yan12125
Copy link
Member

@DonnieWest is the pyqt binding for qtermwidget still working for you?

@DonnieWest
Copy link
Contributor

It's not been working for me on Arch Linux :/

@yan12125
Copy link
Member

yan12125 commented Oct 7, 2018

Thank you for the feedback @DonnieWest. Anyone got working PyQt binding for QTermWidget on other systems with Qt 5.11?

@agaida
Copy link
Member Author

agaida commented Oct 7, 2018

@yan12125 - we need some people who are really interested in working bindings - qgis might be worth a look, they use an embeded qterminal afaik. not sure about python. It's only a idea - but if they use phyton we should talk with them.

@yan12125
Copy link
Member

yan12125 commented Oct 7, 2018

QGIS uses the C++ interface. Actually they bundle an old copy of qtermwidget. cool-retro-term and qt-virt-manager are similar. I don't know who are using the PyQt binding besides those who have submitted relevant patches (DonnieWest).

@DonnieWest
Copy link
Contributor

I actually stopped using the python bindings personally - I needed something a bit more stable and switched to the C++ interface

@yan12125
Copy link
Member

yan12125 commented Oct 8, 2018

Got it. @pawelkoston @raboof @maksbotan are you still using the PyQt binding?

@raboof
Copy link
Contributor

raboof commented Oct 8, 2018

Not at the moment, no

@pawelkoston
Copy link
Contributor

I am still using the PyQt bindings and I am unable to build with PyQt 5.11.3 and PyQt5-sip 4.19.13.

@yan12125
Copy link
Member

Thanks for the feedback. Then we should try to fix it instead of dropping it.

@pawelkoston Mind sharing build details? (OS/distribution, commands, outputs, etc.)

@pawelkoston
Copy link
Contributor

I am using a Gentoo based distribution and I am able to build against: PyQt5-5.10.1-r1 and dev-python/sip-4.19.8.
I use the old python script for building: https://github.com/pawelkoston/qtermwidget/tree/master/pyqt
PyQt 5.11 is not yet marked as stable, for my distribution so I am not expecting it to work correctly. I was able to build QTermwidget against PyQt5==5.11.3
PyQt5-sip==4.19.13
installed from pip, but I was unable to run it, because of an error:

Traceback (most recent call last):
  File "./test.py", line 25, in <module>
    import QTermWidget
ValueError: PyCapsule_GetPointer called with incorrect name

@agaida agaida added this to To do in Issues Nov 25, 2018
luis-pereira added a commit that referenced this issue Mar 7, 2019
There is no need to set CMP0002 to OLD, anymore. It can be safely removed.
Closes #177
@luis-pereira
Copy link
Member

@agaida The CMP002 can be safely removed.
@yan12125
I was able to build and run the python binding (Qt 5.9.5)
Check the log: https://pastebin.com/raw/ma5JcKaB
and the binding test being run (using the #258 PR)
https://imgur.com/a/Q76UZBN

@yan12125
Copy link
Member

yan12125 commented Mar 8, 2019

Thanks for bringing this up. QTermWidget should support Qt 5.11+ sooner or later, and moving to PySide2 might be an option (#249).

@agaida agaida closed this as completed in 7718f36 Mar 12, 2019
Issues automation moved this from Sprint qterm* to Closed Mar 12, 2019
Issues automation moved this from To do to Done Mar 12, 2019
semiscone pushed a commit to semiscone/qtermwidget that referenced this issue Jul 14, 2020
There is no need to set CMP0002 to OLD, anymore. It can be safely removed.
Closes lxqt#177
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Issues
  
Closed
Issues
  
Done
Development

No branches or pull requests

6 participants