No rhinoscript.selection

Hi, I keep getting a message “No module named rhinoscript.selection” when trying to run a sample on rhino. When running on grashopper i get, “no module named rhinoscript.application,” can someone help me out.
Thanks!

Hello - do you see RhinoScript as a enabled and loaded plug-in in Options > Plug-ins page?

-Pascal