When the Ephesians believed on Christ, they examined the moral nature of each aspect of their lives. This led them to burn their curious arts books.
There are always two spirits at work: the Holy Ghost and a satanic or false spirit. Witchcraft comes from a satanic spirit and opposes God's Spirit.
Those who meddle with astrologers and sorcerers (and like practices) put themselves on a collision course with God's judgment.
God expects His people to avoid unholy practices (i.e., divination, observing of times, witchcraft, wizardry, necromancing) that ensnare the world.
Seeking counsel or instruction from spirits or from the deceased is a wicked practice and demands God's righteous judgment.
Many unsaved people practice astrology (i.e., horoscopes) and other unscriptural use of the signs in the heavens. Believers should reject these practices.