Page 1 of 1

[SOLVED] No module named 'requests'

Published: June 25, 2026 - 11:13
by stan
Good morning,

For at least an hour, I haven't been able to use the WAPT debug functions on VSCode due to an error no module named 'requests' " :
wJ1Tq6j.png
wJ1Tq6j.png (90.71 KB) Viewed 1775 times
I haven't touched anything regarding the Python modules and normally these should be installed automatically.

Thank you in advance for your clarifications :D

Sincerely,

Stan

-

Code: Select all

OS Administration : Windows 11 25H2
OS Server : Debian 12
WAPT Version : 2.6.1.17813
VSCode Version : 1.116.0

Re: No module named 'requests'

Published: June 25, 2026 - 2:05 PM
by stan
The problem was resolved in a rather unexpected way.

Simply change the type in launch.json to "debugpy", as apparently the "python" type will become obsolete:
gLYb7Yp.png
gLYb7Yp.png (19.58 KB) Viewed 1774 times
And to restart VS Code.

Re: [SOLVED] No module named 'requests'

Published: June 25, 2026 - 5:38 PM
by dcardon
Hi Stan,

thanks for the feedback and the link to the documentation. We'll run some internal tests to make sure it doesn't cause any other problems (the wapt Python loader is being rewritten to better control environment variables).

Best regards,

Denis

Re: [SOLVED] No module named 'requests'

Published: June 25, 2026 - 6:31 PM
by stan
Hello,

No problem with the update, however, I don't think it's related to that after all. :lol:

It's more likely that I didn't have the correct Python interpreter selected in VSCode.

I don't know why, though; the first time, just changing that and reloading VSCode fixed it, I hadn't noticed the interpreter issue yet.