Review the sticky
Calibre + iDevices: Start here.
If iTunes is in the process of updating its database or it has a dialog up requesting something from you, this error could occur.
Close calibre, open iTunes with a connected iDevice, and make sure that all activities (sync, database update, etc) are completed.
Then open calibre and select 'Connect to iTunes'.
G