Hello! I am still getting used to Raspberry Pi. But, I have a breadboard hooked up via an Adafruit T-Cobbler, and have run a blink.py test, which has worked.
I have opened up a terminal, changed directory to Pifm, done sudo python and import PiFm, which worked.
Next is where I am having a problem, when I enter PiFm.play_sound("sound.wav"), I get this:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "PiFm.py", line 7, in play_sound
call(["./pifm", filename])
File "/usr/lib/python2.7/subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied
If you could please help me with this, I would appreciate it.
Thank you!
For reference, here is the full list from my open terminal:
pi@raspberrypi:~ $ cd Pifm
pi@raspberrypi:~/Pifm $ sudo python
Python 2.7.9 (default, Sep 17 2016, 20:26:04)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import PiFm
>>> PiFm.play_sound("sound.wav")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "PiFm.py", line 7, in play_sound
call(["./pifm", filename])
File "/usr/lib/python2.7/subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied
>>>
John Miller
Raspbian Jessie with Pixel
Raspberry Pi 2 Model B