DGSN_bigwhoop icon indicating copy to clipboard operation
DGSN_bigwhoop copied to clipboard

bigwhoop.py crashes when run on raspberry pi 1 even with rtl-sdr installed

Open amki opened this issue 9 years ago • 7 comments

I'm running a Raspberry Pi (1 Model B) with a Rafael Micro R820T tuner attached and rtl_tcp works pretty good. Even though I installed pyrtlsdr from https://github.com/roger-/pyrtlsdr and rtl-sdr from git://git.osmocom.org/rtl-sdr.git I get the following:

python bigwhoop.py Traceback (most recent call last): File "bigwhoop.py", line 4, in from rtlsdr import RtlSdr File "/usr/local/lib/python2.7/dist-packages/rtlsdr/init.py", line 18, in try: from librtlsdr import librtlsdr File "/usr/local/lib/python2.7/dist-packages/rtlsdr/librtlsdr.py", line 52, in f = librtlsdr.rtlsdr_get_device_count File "/usr/lib/python2.7/ctypes/init.py", line 378, in getattr func = self.getitem(name) File "/usr/lib/python2.7/ctypes/init.py", line 383, in getitem func = self._FuncPtr((name_or_ordinal, self)) AttributeError: python: undefined symbol: rtlsdr_get_device_count

amki avatar Apr 20 '15 04:04 amki

Hi! I have a similar problem on my RPi (model B+). Rtl dongle works fine with another app (for example dump1090, modeSdeco2, rtl_power) but bigwhoop generate error:

Traceback (most recent call last): File "bigwhoop.py", line 4, in <module> from rtlsdr import RtlSdr ImportError: No module named rtlsdr

3835 avatar May 02 '15 08:05 3835

hi there, thanks for the comments! That will help to find the cause for it. We just need to fine someone with Raspis, because our few people in Stuttgart don't have one, so we cannot check for ourselves. Do you know a good Raspi community, where we could ask for help?

hornig avatar May 05 '15 20:05 hornig

I have a couple of Raspis. I am very willing to help. Tell me what you need. On 5 May 2015 21:39, "hornig" [email protected] wrote:

hi there, thanks for the comments! That will help to find the cause for it. We just need to fine someone with Raspis, because our few people in Stuttgart don't have one, so we cannot check for ourselves. Do you know a good Raspi community, where we could ask for help?

— Reply to this email directly or view it on GitHub https://github.com/aerospaceresearch/DGSN_bigwhoop/issues/1#issuecomment-99214088 .

bnt2025 avatar May 05 '15 20:05 bnt2025

I don't think you will find that many Raspberry Pis laying around with rtl-sdr devices on them, but the Raspberry Pi I had the problem with is online 24/7 and has the rtl-sdr on it. I could give you (root) access via ssh if you supply a public key. (Standard raspbian is running)

amki avatar May 05 '15 22:05 amki

I already started and asked here https://www.raspberrypi.org/forums/viewtopic.php?f=32&t=109670 for possible help. Have you been able to narrow it down where we could have a test with new/altered code?

hornig avatar May 15 '15 22:05 hornig

@3835 could it be, that you don't have the pyrtlsd library installed? Because when it gives you an error at that line where the import pyrtlsdr is done, then it seems your python cannot find it in the lib folder. Did you already download it, because we don't have that in our github repo. (And I now speculate that dump1090 and the other programmes you mentioned simply bundle that) if not you can use "pip install pyrtlsdr" to download it and afterwards you come here again and tell us, if that worked for you. Best regards, Andreas

hornig avatar May 31 '15 08:05 hornig

@hornig Thanks for your feedback, I have been having the same issue with my Debian Wheezy servers so it could be a general problem with Debian based OS's. I have installed pyrtlsd like you suggested which has solved the origional import error on line 7, however the script is now complaining of an issue with line 14 which I guess is where it is importing requests? Hopefully this helps a little:
Traceback (most recent call last): File "bigwhoop.py", line 14, in import requests ImportError: No module named requests

Kind Regards, Dan

ghost avatar Jun 04 '15 11:06 ghost