#import pynput.keyboard
# str (key
When I try to run the Python file above (with only comments!) I get this error:
PS C:\Users\[my name]\Documents> python3 test.py
C:\Users\[my name]\AppData\Local\Microsoft\WindowsApps\python3.exe: can't open file 'test.py': [Errno 22] Invalid argument
It happens both when I run it with VS Code and in Windows PowerShell and I get the same thing with some similar codes. For example:
#import pynput.keyboard
key = 2
print(str(key))
and
import pynput.keyboard
key = 2
print(str(key))
and
#import pynput.keyboard
#aastr (keyaa
When I started getting these errors (in a larger file) the file also got deleted every time, but now I can't replicate that anymore. Can anyone explain what is happening?