I am trying to follow the following tutorial: http://www.icrobotics.co.uk/wiki/index.php/Turning_the_Raspberry_Pi_Into_an_FM_Transmitter
I created a folder to put the module in and went to the directory with:
mkdir pifm cd pifm
Then I downloaded and extracted the module with
wget http://omattos.com/pifm.tar.gz tar xvfz pifm.tar.gz
and now I tried to type
sudo python in IDLE and the terminal (I didn't know where to type it) both seemed to do nothing but okay.
Then I typed in IDLE
import PiFm PiFm.play_sound("sound.wav")
And I get an error: PiFm is not defined
If however I type pifm.play_sound(...) I get that pifm has no attribute named play_sound.
I used latest version of raspbian, raspberry pi 1 and IDLE 3
Thank you, Most of the credit for this post goes to the user at stackoverflow MrHug, but since that was the wrong forum the thread was closed. You can see it here https://stackoverflow.com/questions/34291947/how-to-install-a-python-module-in-raspbian
Thanks in advance everyone