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

AttributeError: 'module' object has no attribute 'gate' #1

Closed
tagsys opened this issue May 22, 2017 · 5 comments
Closed

AttributeError: 'module' object has no attribute 'gate' #1

tagsys opened this issue May 22, 2017 · 5 comments

Comments

@tagsys
Copy link

tagsys commented May 22, 2017

Dear Nikosl:

I found such issue: "AttributeError: 'module' object has no attribute 'gate'" when I try to compile the source code. Do you have any idea about this error? Do I miss something?

Best

Lei

@nkargas
Copy link
Owner

nkargas commented May 22, 2017

Hello, I tried installing the software on another computer. I got the same error when I run the software without running "sudo ldconfig" first. You need to run sudo ldconfig once, after installing the software. This fixed the problem for me.

@tagsys
Copy link
Author

tagsys commented May 23, 2017

Thank you very much! It works now. Appreciate your efforts and sharing.

@nkargas nkargas closed this as completed May 23, 2017
@nkargas nkargas reopened this May 23, 2017
@nkargas nkargas closed this as completed May 24, 2017
@AdamLaurie
Copy link

Note this error will also be caused if you ran 'cmake' before you installed swig.

@nkargas nkargas reopened this Oct 11, 2020
@trov4
Copy link

trov4 commented Oct 3, 2021

I'm getting a similar problem now where I get the output:

[INFO] [UHD] linux; GNU C++ version 8.2.0; Boost_106700; UHD_3.13.1.0-3
[INFO] [B200] Detected Device: B200mini
[INFO] [B200] Operating over USB 2.
[INFO] [B200] Initialize CODEC control...
[INFO] [B200] Initialize Radio control...
[INFO] [B200] Performing register loopback test...
[INFO] [B200] Register loopback test passed
[INFO] [B200] Setting master clock rate selection to 'automatic'.
[INFO] [B200] Asking for clock rate 16.000000 MHz...
[INFO] [B200] Actually got clock rate 16.000000 MHz.
[INFO] [B200] Asking for clock rate 32.000000 MHz...
[INFO] [B200] Actually got clock rate 32.000000 MHz.
Traceback (most recent call last):
  File "reader.py", line 122, in <module>
    main_block = reader_top_block()
  File "reader.py", line 90, in __init__
    self.connect(self.matched_filter, self.gate)
  File "/usr/lib/python2.7/dist-packages/gnuradio/gr/hier_block2.py", line 92, in __getattr__
    return getattr(self._impl, name)
AttributeError: 'top_block_sptr' object has no attribute 'gate'

Ran ldconfig and made sure to install swig and reinstall files, but still no luck in changing this.

@trov4
Copy link

trov4 commented Oct 3, 2021

Turns out by default line 76 is commented out on reader.py on master which is what led to this error. Not an issue with compiling this time!

Issue solved.

@nkargas nkargas closed this as completed Mar 1, 2022
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

4 participants