First time here? Check out the FAQ!
1

Issues with pyenv virtual environment and CPU usage

Two Issues:

1) Looking for a quick hack to make this message go away when I start up Wing on Windows 10.

General: Cannot find Python

A supported version of Python could not be found. If you have a recent Python,
be sure you also have a recent version of Wing. If you do not have Python on
your system, you will need to install it before most of Wing's features will 
function properly. If Python is already installed, use Project Properties in 
the Project menu to select the Python Executable to use.

My python installs

PS C:\python\Snippets> pyenv versions
* 3.11.7 (set by C:\Python\.pyenv\pyenv-win\version)
  3.7.9
  3.8.10

Relevant env entries

PYENV=C:\Python\.pyenv\pyenv-win\
PYENV_HOME=C:\Python\.pyenv\pyenv-win\
PYENV_ROOT=C:\Python\.pyenv\pyenv-win\

There are no python executables on the path due to using pyenv

2) While getting that message above and until I open a project Windows Defender aka Antimalware Service Executable aka MsMpEng.exe starts consuming 66% of CPU. Thats not good.

Martin_A's avatar
21
Martin_A
asked 2024-03-07 14:08:37 -0500
Wingware Support's avatar
4.1k
Wingware Support
updated 2024-03-19 08:50:57 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

If you set the Python Executable in Project Properties to the python.exe you want to use then Wing should also remember that one and use it as the default for other projects. Please let me know if that doesn't work as a work-around.

Hopefully that will also address (2) but it would be useful if you can first replicate that status and while it's doing that send us a bug report from the Help menu with the error log included. I suspect Wing is spawning lots of Python processes and the AV is getting bogged down scanning those, but I'm not sure.

I'm not sure why we're not finding the pyenv-provided Pythons and will look into it. Thanks for reporting this problem!

Wingware Support's avatar
4.1k
Wingware Support
answered 2024-03-08 10:45:24 -0500
edit flag offensive 0 remove flag delete link

Comments

A possible cause of this was fixed in update 10.0.3.1

Wingware Support's avatar Wingware Support (2024-03-19 08:51:31 -0500) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer