in my case the issue was i had python 3.11.9 and 3.12.8 installed on my system. after uninstalling the 3.12.8 (which was preferd by vs code) the error "import "moviepy.editor" could not be resolved" gone. how stupid of me