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

Python 3.12 Support #252

Open
exislow opened this issue Oct 26, 2023 · 9 comments
Open

Python 3.12 Support #252

exislow opened this issue Oct 26, 2023 · 9 comments

Comments

@exislow
Copy link

exislow commented Oct 26, 2023

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

@woopelderly
Copy link

woopelderly commented Nov 16, 2023

I created a PR here: #253, however it required that Python 3.7 support was dropped. Not sure if this will cause anyone trouble.

@luccassa
Copy link

luccassa commented Feb 15, 2024

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.

@lfss-zxj
Copy link

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

@Freenitial
Copy link

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

+1 goddamn

@clbarnes
Copy link

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.

@Freenitial
Copy link

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

@JWCook
Copy link

JWCook commented Jul 3, 2024

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

@zlev-intel
Copy link

have the same issue. Please fix

@nfelt14
Copy link

nfelt14 commented Sep 16, 2024

Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants