Rock Generator says it doesn't work in 2.8
The error message you're seeing means that the add-on has not been updated for 2.8.  Until it is, it will not work in Blender 2.8.

You can either use it in Blender 2.79 (assuming it's compatible with 2.79), or wait for the add-on to be updated for 2.8.