Try to update the GrovePi library installed on your computer. If not run this command
pip install --upgrade grovepi