8000 'C:\windows\system32\find.exe' is not recognized as an internal or external command, operable program or batch file. · Issue #1269 · winpython/winpython · GitHub
[go: up one dir, main page]

Skip to content

'C:\windows\system32\find.exe' is not recognized as an internal or external command, operable program or batch file. #1269

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
MagicalDrizzle opened this issue Oct 31, 2023 · 12 comments

Comments

@MagicalDrizzle
Copy link

I'm having trouble with WinPython Command Prompt.exe, it launches a terminal window with that message in the title, and afterward launching any binary (like python) will end up with that exact message repeated.

@stonebig
Copy link
Contributor

Winpython version ?

@MagicalDrizzle
Copy link
Author

Ah my apologies, 2023-03

@stonebig
Copy link
Contributor
stonebig commented Nov 5, 2023

It may be similar to this #1262 (comment)

So try to replace in env.bat (in "echo %winpydirbase%\scripts\env.bat"):

  • this:
 echo ";%PATH%;" | %FINDDIR%\find.exe /C /I ";%WINPYDIR%\;" >nul
if %ERRORLEVEL% NEQ 0 (
   set "PATH=%WINPYDIR%\Lib\site-packages\PyQt5;%WINPYDIR%\Lib\site-packages\PySide2;%WINPYDIR%\;%WINPYDIR%\DLLs;%WINPYDIR%\Scripts;%WINPYDIR%\..\t;%WINPYDIR%\..\t\Julia\bin;%WINPYDIR%\..\n;%PATH%;"
   cd .
)  
  • per that
echo ";"%PATH%";" | %FINDDIR%\find.exe /C /I ";%WINPYDIR%;" >nul
if %ERRORLEVEL% NEQ 0 (
set PATH="%WINPYDIR%\Lib\site-packages\PyQt5;%WINPYDIR%\Lib\site-packages\PySide2;%WINPYDIR%;%WINPYDIR%\DLLs;%WINPYDIR%\Scripts;%WINPYDIR%..\t;%WINPYDIR%..\t\Julia\bin;%WINPYDIR%..\n;"%PATH%";"
cd .
)

That is replacing ;%PATH%; per ;"%PATH%";
All shall come from something annoying in "%PATH%" variable, but I can't reproduce the error.
would you mind copy/pasting the result of your "echo %PATH%" ?

@MagicalDrizzle
Copy link
Author

That didn't fix it unfortunately
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Users\(username)\AppData\Local\Microsoft\WindowsApps;

@stonebig
Copy link
Contributor
stonebig commented Nov 5, 2023

I'm out of clue.. re-extracting "Winpython64-3.11.5.0dot.exe" in a path with a black doesn't create errors on me
Maybe there can be:

  • something odd related to Windows Vietnam, like in the japanese Windows \ separator becoming ¥
  • something odd related to a special character in your username.

If you click directly on "scripts\cmd.bat" or "scripts\WinPython_Interpreter_PS.bat" and then it works, it may give a clue.

@stonebig
Copy link
Contributor
stonebig commented Nov 5, 2023

The problem seems to be in the "PATH" variable after you clicked on the WinPython Command Prompt.exe , but I have no idea what exactly it is, sorry.

@MagicalDrizzle
Copy link
Author

if so then may I ask what do the launchers actually do then? maybe I can execute the process manually to see what went wrong

@stonebig
Copy link
Contributor
stonebig commented Apr 2, 2024

All launchers except the powershell one do use the script /script/env.bat to get the correct path

They can call it indirectly, via script/env_for_icons.bat or another pre-layer

@MagicalDrizzle
Copy link
Author

If it helps, 2016-01/WinPython-64bit-3.5.1.2Zero worked fine on my machine.
2016-02/WinPython-64bit-3.5.1.3Zero fails with 'cscript' is not recognized as an internal or external command, operable program or batch file.
All versions from 2016-03/WinPython-64bit-3.5.2.1Zero forwards fails with 'C:\windows\system32\find.exe' is not recognized as an internal or external command, operable program or batch file.

@MagicalDrizzle
Copy link
Author

I just want to say the new launcher works fine for me!
also antivirus seems to catch everything except virus...

@stonebig
Copy link
Contributor

Getting rid of NSIS and vbs were two great moment of liberation from technical debt, after the ControlPanel on Qt

@MagicalDrizzle
Copy link
Author
MagicalDrizzle commented Oct 24, 2024

I will close the issues now then ^^
I do hope the false positive issues get solved soon - it would suck to finally get rid of the debt and then only able to put two packages back up

6853

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
0