r/learnpython • • Jun 05 '26

Trying to study python but TestMyCode is not working (VSCode)

Whenever I try to initialize TMC I get the same errors. It started happening when I disabled Pylance.

[2026-06-05 17:21:04:622] [ERROR] Mismatch between CLI and checksum, trying redownload
[2026-06-05 17:21:04:623] [DEBUG] CLI "probably some text I shouldn't share", hash ""
[2026-06-05 17:21:04:640] [ERROR] Fatal error during initialization:
Error: ENOTEMPTY, Directory not empty: \\?\c:\Users\henkk\AppData\Roaming\Code\User\globalStorage\moocfi.test-my-code\cli '\\?\c:\Users\henkk\AppData\Roaming\Code\User\globalStorage\moocfi.test-my-code\cli'.

How can I get it to work again?

3 Upvotes

26 comments sorted by

View all comments

Show parent comment

2

u/CapOpposite8979 Jun 09 '26

Thanks, bro, I had the same problem as you, I lost a whole day of studying and had a lot of stress trying to fix this yesterday

1

u/kalevala_568b Jun 09 '26

Just shortly after I posting my update, I bumped into another error LOL This time is an authentication error. I was then stuck in a loop of 'Cannot authenticate' & 'Already authenticated'. IF YOU EXPERIENCE THE SAME ERROR:
Upgrade your VS Code to the latest version & then install TMC, of course you will be hit by the same error of "directory is not empty". What you need to do is: Look for the downward arrow next to 'Uninstall' option of TMC extension, click on the arrow & select: 'Install Specific Version', you will see a drop-down list of all previous version of TMC, choose 3.3.0. You should be fine.
Note: DO NOT tick the box of 'Auto Update' of TMC extension.

2

u/CapOpposite8979 Jun 10 '26

what a headache bruh😅 Well let's not give up learning python. Than you