BastilleResearch / gr-lora

GNU Radio OOT module implementing the LoRa PHY, based on https://github.com/matt-knight/research/tree/master/2016_05_20_jailbreak
GNU General Public License v3.0
470 stars 92 forks source link

Ettus E313 SDR module' object has no attribute ‘demod' #38

Open themightykay opened 5 years ago

themightykay commented 5 years ago

Hello!

I am trying to install the module on my Ettus E313 - embedded SDR with AMR Cortex A9. The OS seems to be a custom flavour of Debian. I follow the instructions given here and I set my system paths as

export LD_LIBRARY_PATH=/gr-lora/lib:$LD_LIBRARY_PATH export CPATH=/gr-lora/include:$CPATH export PYTHONPATH=/usr/local/lib/python2.7/site-packages:/gr-lora/lib/python2.7/site-packages:$PYTHONPATH export GRC_BLOCKS_PATH=/gr-lora/share/gnuradio/grc/blocks:$GRC_BLOCKS_PATH

The error I get in grc is File "/home/root/grc_programs/Kyp/433_LoRa/I433_LoRa_scan.py", line 86, in init self.lora_demod_0_0 = lora.demod(spreading_factor, ldr, 25.0, 2) AttributeError: 'module' object has no attribute ‘demod'

Any help is appreciated. I have tried all the suggestions in #12 and #11 . Another thing to note is that when I run the ldconfig command at the end of the process I get /usr/lib/libstdc++.so.6.0.20-gdb.py is not an ELF file - it has the wrong magic bytes at the start.

Any help is appreciated. Please let me know if you require more information.

phildubach commented 4 years ago

Regarding the missing attribute 'demod': I had the same problem, which was easily fixed by installing swig before building gr-lora (sudo apt install swig). Unfortunately, the build appears to work without swig, but the result is not functional. See also: https://github.com/BastilleResearch/gr-lora/issues/20, which has a one word fix that's not yet merged due to contributor license issues, :-)