Skip to content

Winpython control panel does not start in 3.10.11 and 3.11.3 from 2023-01. It does work in 3.10.9 from 2022-04 #1231

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

Closed
Olaf987 opened this issue May 26, 2023 · 3 comments

Comments

@Olaf987
Copy link

Olaf987 commented May 26, 2023

Winpython control panel does not start in 3.10.11 and 3.11.3 from 2023.1. It does work in 3.10.9.

It is supposed to look like this:
C:\Programs\WPy64-31090\scripts>python -m winpython.controlpanel "C:\Programs\WPy64-31090\python-3.10.9.amd64\python.exe" -c "import sys; print(sys.maxsize > 2**32)" * C:\Programs\WPy64-31090\python-3.10.9.amd64 "C:\Programs\WPy64-31090\python-3.10.9.amd64\python.exe" -c "import sys;print(f'{sys.version_info.major}.{sys.version_info.minor}')" * C:\Programs\WPy64-31090\python-3.10.9.amd64

But I get
C:\Programs\WPy64-310110\scripts>python -m winpython.controlpanel Traceback (most recent call last): File "C:\Programs\WPy64-310110\python-3.10.11.amd64\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Programs\WPy64-310110\python-3.10.11.amd64\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Programs\WPy64-310110\python-3.10.11.amd64\lib\site-packages\winpython\controlpanel.py", line 58, in <module> from winpython.qthelpers import ( File "C:\Programs\WPy64-310110\python-3.10.11.amd64\lib\site-packages\winpython\qthelpers.py", line 218 if isinstance(obj, str) ^ SyntaxError: expected ':'

and
C:\Programs\WPy64-31130\scripts>python -m winpython.controlpanel Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "C:\Programs\WPy64-31130\python-3.11.3.amd64\Lib\site-packages\winpython\controlpanel.py", line 58, in <module> from winpython.qthelpers import ( File "C:\Programs\WPy64-31130\python-3.11.3.amd64\Lib\site-packages\winpython\qthelpers.py", line 218 if isinstance(obj, str) ^ SyntaxError: expected ':'

and nothing happens.

Do you know of any workarounds?

@stonebig
Copy link
Contributor

fix is on the line itself

from:
if isinstance(obj, str)
to
if isinstance(icon, str):

image

@stonebig
Copy link
Contributor

it's a stupid error. but it looks like a "post1" version is needed

@stonebig
Copy link
Contributor

annoying papercut resolved with WinPython 2023-01 post1

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

No branches or pull requests

2 participants