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.
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.
Good friends are a tremendous blessing to be nurtured and treasured. Yet, friendships are to have certain God-ordained limitations. The wrong kinds of friends and inappropriate associations have led many people away from the truth and astray from God. The Bible provides detailed instructions to help people avoid any relationship that tends to lead to rebellion against God. Although these instructions were explicitly given while Israel remained under the Law of God, they forever reveal God's feelings toward those who would lead someone away from Him. Just as it was instructed of the Israelites, men today should never consent nor hearken to those who seek to lure them astray (Deuteronomy 13:8). In refusing to listen to those individuals, a believer should never feel guilt or pity the so-called friend, but rather find joy from making the right decision.