Skip to content
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

outernet_rtlsdr.grc: AttributeError: 'module' object has no attribute 'swap_ff' #1

Closed
pavelmc opened this issue Jan 11, 2017 · 4 comments

Comments

@pavelmc
Copy link

pavelmc commented Jan 11, 2017

Hi Dani, good work on this.

But I have problem here, I'm running over a Ubuntu 16.04 LTS with updated (today) repo and code from you gr-kiss / gr-outernet / free-outernet and dependencies...

When I open the outernet_rtlsdr.grc file all looks good and when I hit run an error came, log of grc is pasted below, I would appreciate any comments/help on this.

73 de CO7WT, Pavel.

===== grc log ==========================================
<<< Welcome to GNU Radio Companion 3.7.9 >>>

Preferences file: /home/pavel/.gnuradio/grc.conf
Block paths:
/usr/local/share/gnuradio/grc/blocks
/usr/share/gnuradio/grc/blocks
/home/pavel/.grc_gnuradio

Loading: "/home/pavel/Documentos/Software/Github/gr-outernet/examples/outernet-rtlsdr.grc"

Done

Showing: "/home/pavel/Documentos/Software/Github/gr-outernet/examples/outernet-rtlsdr.grc"

Generating: '/home/pavel/Documentos/Software/Github/gr-outernet/examples/outernet_rtlsdr.py'

Executing: /usr/bin/python -u /home/pavel/Documentos/Software/Github/gr-outernet/examples/outernet_rtlsdr.py

linux; GNU C++ version 5.3.1 20151219; Boost_105800; UHD_003.009.002-0-unknown

gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.9
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy redpitaya
Using device #0 Realtek RTL2838UHIDIR
Found Elonics E4000 tuner
Using Volk machine: avx2_64_mmx_orc
Traceback (most recent call last):
File "/home/pavel/Documentos/Software/Github/gr-outernet/examples/outernet_rtlsdr.py", line 438, in
main()
File "/home/pavel/Documentos/Software/Github/gr-outernet/examples/outernet_rtlsdr.py", line 426, in main
tb = top_block_cls()
File "/home/pavel/Documentos/Software/Github/gr-outernet/examples/outernet_rtlsdr.py", line 233, in init
self.outernet_swap_ff_1 = outernet.swap_ff()
AttributeError: 'module' object has no attribute 'swap_ff'

Done
=====================================================

@daniestevez
Copy link
Owner

Hi Pavel,

I think that this is a problem with SWIG in Ubuntu 16.04. I've several people with this problem in many other out-of-tree modules. I don't have a proper solution and I don't have Ubuntu to try to replicate the problem. However, some advice: look very closely to all the output of cmake and make when compiling gr-outernet. For some reason, if there is a problem with SWIG, the toolchain complains but it doesn't stop compilation, thus producing a OOT module that doesn't work. Also, make sure that you run ldconfig.

Closing this, as it is not an specific problem with gr-outernet, but rather a problem with your particular distribution/GNU Radio/SWIG installation.

In any case, this thread can still be used for further troubleshooting.

@pavelmc
Copy link
Author

pavelmc commented Jan 12, 2017

Yo are absolutely right, my cmake command tell me this:

===== cmake output fragment =========
-- Checking for module SWIG
-- Disabling SWIG because version check failed.
===== fragment end ==================================

So I'm looking for the latest swig for independent compilation to see if it works that way, will report results here.

Saludos desde Cuba.

@pavelmc
Copy link
Author

pavelmc commented Jan 12, 2017

I found a solution to this, please update the README.md about it.

For Ubuntu 16.04 LTS user the must install swig 3.0 from the repo, as easy as that.

sudo apt install swig swig3.0

Compiling the sources in the github swig repo works also, but the repo solution is easier.

73 CO7WT.

@daniestevez
Copy link
Owner

I have just updated the README to include some information about this problem and its solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants