PyQtDarkTheme icon indicating copy to clipboard operation
PyQtDarkTheme copied to clipboard

Python 3.12 Support

Open exislow opened this issue 2 years ago • 9 comments

Please add Python 3.12 support to https://github.com/5yutan5/PyQtDarkTheme/blob/main/pyproject.toml

exislow avatar Oct 26 '23 09:10 exislow

I created a PR here: https://github.com/5yutan5/PyQtDarkTheme/pull/253, however it required that Python 3.7 support was dropped. Not sure if this will cause anyone trouble.

woopelderly avatar Nov 16 '23 19:11 woopelderly

I am unable to get package working with 3.12.2. There seems to be no main in the package? Cannot use setup_theme and having problems with load_style sheet example. Installing with 3.11.3 worked fine for me.

luccassa avatar Feb 15 '24 18:02 luccassa

AttributeError: module 'qdarktheme' has no attribute 'setup_theme'

lfss-zxj avatar Feb 17 '24 17:02 lfss-zxj

AttributeError: module 'qdarktheme' has no attribute 'setup_theme'

+1 goddamn

Freenitial avatar Feb 26 '24 23:02 Freenitial

AttributeError: module 'qdarktheme' has no attribute 'setup_theme'

The reason for this error is that you have the very old pyqtdarktheme <= 0.1.7 installed. That's the last version where the package maintainers did not specify an upper bound of supported python versions. Therefore, according to their metadata, those very old versions claim compatibility with all future python versions: pip looks through all versions until it finds one which claims to be compatible and installs that.

clbarnes avatar Apr 18 '24 15:04 clbarnes

AttributeError: module 'qdarktheme' has no attribute 'setup_theme'

The reason for this error is that you have the very old pyqtdarktheme <= 0.1.7 installed. That's the last version where the package maintainers did not specify an upper bound of supported python versions. Therefore, according to their metadata, those very old versions claim compatibility with all future python versions: pip looks through all versions until it finds one which claims to be compatible and installs that.

The problem is that pip does not update beyond 0.1.7 if python version > 3.12 because of package requirements The workaround I've found so far is to use the following command:

pip install pyqtdarktheme==2.1.0 --ignore-requires-python

My projects still working

Freenitial avatar Jun 28 '24 16:06 Freenitial

@5yutan5 Do you have a few minutes to merge in #253 and publish a new release? It would be greatly appreciated.

JWCook avatar Jul 03 '24 17:07 JWCook