What is meant by “familiar spirits” in Isaiah 19:3, 29:4?

Isaiah 19:3: 3 And the spirit of Egypt shall fail in the midst thereof; and I will destroy the counsel thereof: and they shall seek to the idols, and to the charmers, and to them that have familiar spirits, and to the wizards. [KJV] 3 And...