Module manager is probably not properly installed. Had the same error and reinstalled module manager and it worked fine after.