-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error running PirateRadio.py #26
Comments
Looks like you haven't installed ffmpeg on your RaspberryPi? |
@Morosko ffmpeg does not exist anymore. It has been replaced by avconv. I just ran into this error too http://askubuntu.com/questions/432542/is-ffmpeg-missing-from-the-official-repositories-in-14-04 I have hacked away at the python code to use avconv and remove some things that were preventing it from working. https://github.com/0xicl33n/PirateRadio
|
That's not exactly true. The project still exits and Debian has gone back to using it. In fact it is currently available in the Jessie-backports and Testing repositories. |
It test your repo and the code works but it doesnt send the signal. @0xicl33n Do you know if it works for any Pi? (Ex. Pi3) |
i got this error when executing PirateRadio.py pi@raspberrypi: what should i do ? |
I have exactly the same error |
Which version of python are you using? the keyword fallback is in python 3, but not in python 2 |
Hi, thanks for your answer. I’am just trying to launch the script in terminal as python PirateRadio.py
After you asked I tried to use python3 and even tried it with sudo, but got even more errors:
sudo python3 PirateRadio.py
Traceback (most recent call last):
File "/usr/lib/python3.5/configparser.py", line 1135, in _unify_values
sectiondict = self._sections[section]
KeyError: 'pirateradio'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "PirateRadio.py", line 180, in <module>
main()
File "PirateRadio.py", line 35, in main
setup()
File "PirateRadio.py", line 152, in setup
read_config()
File "PirateRadio.py", line 98, in read_config
frequency = config.get("pirateradio",'frequency')
File "/usr/lib/python3.5/configparser.py", line 778, in get
d = self._unify_values(section, vars)
File "/usr/lib/python3.5/configparser.py", line 1138, in _unify_values
raise NoSectionError(section)
configparser.NoSectionError: No section: 'pirateradio'
… On Dec 22, 2017, at 4:02 PM, d4m4s74 ***@***.***> wrote:
Which version of python are you using? the keyword fallback is in python 3, but not in python 2
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#26 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFLpF7mB_b1cg7C8oGyJdLnczrX6yowKks5tC7ZxgaJpZM4HmSLp>.
|
Made it work, thanks, there were issues with file paths
… On Dec 22, 2017, at 4:05 PM, Alexander Golubets ***@***.***> wrote:
Hi, thanks for your answer. I’am just trying to launch the script in terminal as python PirateRadio.py
After you asked I tried to use python3 and even tried it with sudo, but got even more errors:
sudo python3 PirateRadio.py
Traceback (most recent call last):
File "/usr/lib/python3.5/configparser.py", line 1135, in _unify_values
sectiondict = self._sections[section]
KeyError: 'pirateradio'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "PirateRadio.py", line 180, in <module>
main()
File "PirateRadio.py", line 35, in main
setup()
File "PirateRadio.py", line 152, in setup
read_config()
File "PirateRadio.py", line 98, in read_config
frequency = config.get("pirateradio",'frequency')
File "/usr/lib/python3.5/configparser.py", line 778, in get
d = self._unify_values(section, vars)
File "/usr/lib/python3.5/configparser.py", line 1138, in _unify_values
raise NoSectionError(section)
configparser.NoSectionError: No section: 'pirateradio'
Best regards,
Oleksandr Golubets
+38(063) 871 51 31
***@***.*** ***@***.***>
> On Dec 22, 2017, at 4:02 PM, d4m4s74 ***@***.*** ***@***.***>> wrote:
>
> Which version of python are you using? the keyword fallback is in python 3, but not in python 2
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub <#26 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFLpF7mB_b1cg7C8oGyJdLnczrX6yowKks5tC7ZxgaJpZM4HmSLp>.
>
|
Hi guys, sorry for bothering. The script works and says it is playing the files (use regular mp3s), but I can’t find the transmission on any frequency I tried. I use RasPi 3, so maybe there is something that needs to be changed? I also used a 60 cm copper wire as an antenna and connected it to the pin 4 on my RasPi 3. Should the PIN number be the same on RasPi 2 & 3? |
I get this error during the execution of PirateRadio.py:
PS: I'm running the last image of Raspbian, on my Raspberry Pi B+
Help?
Thanks
The text was updated successfully, but these errors were encountered: