-
Notifications
You must be signed in to change notification settings - Fork 92
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
AttributeError when running examples/txrx_sim.grc #11
Comments
Hi @matt-knight, thanks for your quick response! I'm running a dockerized Debian GNU/Linux 9.0 (stretch) with GNU Radio 3.7.10.1 from the most recent version of master (0be096f). You could try my Docker image if you want to reproduce it exactly. I put a Dockerfile up on Gist. |
@pgorczak Awesome, thanks for the detailed reply! I'll try to reproduce over the next few days. It's possible that with the GNURadio or Debian version bump some things got moved around. |
Hi, I've got the exact same issue on Ubuntu 16.04 and GNU Radio v.3.7.9 installed from the official repos. When I go into my /usr/local/lib/python2.7/ my gr-lora files are in dist-package/lora (not in site-packages like mentionned in issue #12) When I import the "lora" package in Python prompt, it's working but indeed it has not "mod" attributed (thus the initial error). What did I missed ? I know the thread is a bit old but have you finally managed to get it work ? |
I tried the "usrlocal.pth" trick in the #7 but without any success. My build manifest for the gr-lora module is as follows : I have a lot of less file that in #7 . What could have happen ?
|
Hey @pierreduf, I'm sorry but I didn't get around to do more troubleshooting on this yet. |
try running Traceback (most recent call last): File "/home/USER/git/gr-lora/build/top_block.py", line 131, in main() File "/home/USER/git/gr-lora/build/top_block.py", line 119, in main tb = top_block_cls() File "/home/USER/git/gr-lora/build/top_block.py", line 87, in __init__ self.lora_mod_0 = lora.mod(8, 0x12) AttributeError: 'module' object has no attribute 'mod' Assume its just a symptom of the python code not finding the compiled library. Probably stores a reference to it in mod? |
All, I'm checking in to note that I haven't been able to reproduce this issue. I just stood up the following in a VM without issues. Ubuntu 16.04.1 For starters, please run If that's not fruitful, I'll ask you to share your system configuration and versions so I can attempt to reproduce. Best, |
Given that several have had installation issues, I added some build and configuration guidelines to the Wiki: https://github.com/BastilleResearch/gr-lora/wiki/Installation There are several viable ways to install GNU Radio and related modules, but this is the process I use. If your method isn't working, document it here and I'll see if I can troubleshoot. |
I got around to trying again. When checking the CMake output, I discovered some suspicious lines:
I guess no Doxygen is OK but I'll look further into the PkgConfig and SWIG issues. FWIW, install still works with output
|
@Flamewires : I've made the ldconfig but made it again after your comment, unfortunately it doesn't change anything. @matt-knight : this is the output of the command :
My LD_LIBRARY_PATH variable is empty. I think I'm gonna follow your updated installation guide : I guess something concerning the paths is messed up. I installed nothing in /opt. I'll keep you updated. |
My bad ! After installing SWIG and making a clean install (following the new guide with the correct way to set path environment variables) everything is OK. I think that missing SWIG was the problem, thanks @pgorczak for the hint ! No more errors now, the flowgraph is compiling and running ! I can't decode LoRa signals yet but that's another story. Thank you again all for your support. |
Good news - I could get it to work on Ubuntu and Debian 😄 It was definitely SWIG ( These are the lines that were previously missing from the install output
|
Thanks @pgorczak and @pierreduf for working through this! |
When running examples/txrx_sim.grc, I get
Seems like unlike in #7, the module is found but it does not contain the
mod
function. Could this be an issue with swig? I'm running on Debian Stretch.The text was updated successfully, but these errors were encountered: