This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Dennis Sweeney
Recipients Dennis Sweeney, paul.moore, steve.dower, tim.golden, zach.ware
Date 2021-12-04.09:54:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1638611645.1.0.644816944018.issue45978@roundup.psfhosted.org>
In-reply-to
Content
I think I've been getting similar issues for a little while that I've been able to work around until now. If I git checkout 3.10 and then hit the "Local Windows Debugger" button, I get this:

Build started...
1>------ Build started: Project: pythoncore, Configuration: Debug x64 ------
1>Killing any running python_d.exe instances...
1>Regenerate opcode.h opcode_targets.h
1>C:\Users\sween\Source\Repos\temp\cpython\PCbuild\regen.targets(62,5): error MSB3073: The command " Tools\scripts\generate_opcode_h.py Lib\opcode.py Include\opcode.h" exited with code 103.
1>Done building project "pythoncore.vcxproj" -- FAILED.
2>------ Build started: Project: _ctypes, Configuration: Debug x64 ------
3>------ Build started: Project: python, Configuration: Debug x64 ------
========== Build: 0 succeeded, 3 failed, 0 up-to-date, 0 skipped ==========

However, if I then run .\PCbuild\build.bat, and then hit the "Local Windows Debugger" button, the build succeeds.

Is there some difference in which python executable is chosen to run .py files between build.bat versus what Visual Studio does?
History
Date User Action Args
2021-12-04 09:54:05Dennis Sweeneysetrecipients: + Dennis Sweeney, paul.moore, tim.golden, zach.ware, steve.dower
2021-12-04 09:54:05Dennis Sweeneysetmessageid: <1638611645.1.0.644816944018.issue45978@roundup.psfhosted.org>
2021-12-04 09:54:05Dennis Sweeneylinkissue45978 messages
2021-12-04 09:54:05Dennis Sweeneycreate