Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

WinPython & the Control Panel#1006

Answeredbystonebig
fizzixx asked this question inQ&A
Discussion options

Hello...

I'm trying out WinPython (Winpython64-3.9.5.0.exe) on a Windows 10 machine.

I think everything is working ok, except the Control Panel. There is no response double-clicking it. Everything else works - Spyder, Jupyter, JupyterLab, etc, but the Control Panel does nothing, no error message, nothing at all.

I've read many of the posts, and frankly I don't understand the lingo very well. I've done a lot of reading and searching online, but nothing helps. Seems like a lot of the documentation I have found is circular, and it often brings me back to where I started, and I'm out of ideas.

Is there a fix for this?

Thanks

You must be logged in to vote

Replies: 3 comments 13 replies

Comment options

hi, does teh qtconsole shortcut work ?
image

If not, you may have installed "Winpython64-3.9.5.0dot.exe" and that doesn't include PyQt5, and so the control panel doesn't work.#834

You must be logged in to vote
13 replies
@StephPer
Comment options

Thank you for you response.

Actually, I use WinPyton Control Panel only do do the file associations and to add the shell extensions. My server has no internet connection so I don't plan to use the control panel to manage the packages. Is there another easy way to associate .py with Python, add the start menu entries and to get the Shell extensions?

Kind regards,
Stephan

@StephPer
Comment options

... mh, I tried the the suggested \scripts\make_winpython_fix.bat and once again it returned an error message:

patch pip and current launchers for non-moveD:\Program files\WinPython\WPy64-39100\python-3.9.10.amd64\python.exe -c "import sys; print(sys.maxsize > 2**32)"  *  D:\Program files\WinPython\WPy64-39100\python-3.9.10.amd64Traceback (most recent call last):  File "<string>", line 1, in <module>  File "D:\Program files\WinPython\WPy64-39100\python-3.9.10.amd64\lib\site-packages\winpython\wppm.py", line 273, in __init__    self.version, self.architecture = utils.get_python_infos(  File "D:\Program files\WinPython\WPy64-39100\python-3.9.10.amd64\lib\site-packages\winpython\utils.py", line 387, in get_python_infos    is_64 = python_query(  File "D:\Program files\WinPython\WPy64-39100\python-3.9.10.amd64\lib\site-packages\winpython\utils.py", line 375, in python_query    return exec_shell_cmd('%s -c "%s"' % (the_exe, cmd), path).splitlines()[0]IndexError: list index out of rangePress any key to continue . . .

Kind regards,
Stephan

@StephPer
Comment options

I'm a Python beginner but I recognized the issue occurs in the file 'utils.py' and Python cannot split whatexec_shell_cmd returned.

The functionexec_shell_cmd usessubprocess.open to execute the command

python -c "import sys; print(sys.maxsize > 2**32)"

This works well when I start it from the Python command prompt. Here it returnsTrue. The function in the script returns null.

@StephPer
Comment options

Got it! WinPython 3.9.10 seems to have an issue with the space in the path. I've installed it under 'D:\Program Files'. I've isolated the function calling subprocess.popen and made several tests. At the end, I simply copied the entire WinPython folder to D:\WPy64-39100 and here I can start the WinPython Control Panel.

@StephPer
Comment options

To fix it, I changed line 375 in utils.py from

return exec_shell_cmd('%s -c "%s"' % (the_exe, cmd), path).splitlines()[0]

to

return exec_shell_cmd('"%s" -c "%s"' % (the_exe, cmd), path).splitlines()[0]

and now it works.

Comment options

there was also said at a moment (before pandemic I think) that "python instances" would do a graphical layer over pip.

You must be logged in to vote
0 replies
Comment options

fixed in#1062

You must be logged in to vote
0 replies
Answer selected bystonebig
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
4 participants
@fizzixx@stonebig@michaelkraft1512@StephPer

[8]ページ先頭

©2009-2025 Movatter.jp