element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Experts, Learning and Guidance
  • Technologies
  • More
Experts, Learning and Guidance
Ask an Expert Forum Looking for support resources for GNURadio
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Experts, Learning and Guidance to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 9 replies
  • Subscribers 302 subscribers
  • Views 3324 views
  • Users 0 members are here
  • gnuradio
  • troubleshooting gnuradio
Related
See a helpful answer?

Be sure to click 'more' and select 'suggest as answer'!

If you're the thread creator, be sure to click 'more' then 'Verify as Answer'!

Looking for support resources for GNURadio

colporteur
colporteur over 4 years ago

Can you share resources you have used or are aware of for troubleshooting issues with GNURadio software installation on Ubuntu?

 

I am receiving error messages when I try to use a Audio Source or Audio Sink block? My goal was to test the GNURadio installation using a audio source and audio sink block and/or Signal Source and Audio sink blocks and have it play a tone from the computer speaker. I have followed the suggested fixes in the following link because they make some reference to Audio. It didn't resolve my issue.

https://wiki.gnuradio.org/index.php/ALSAPulseAudio

https://wiki.gnuradio.org/index.php/Audio_Source

https://wiki.gnuradio.org/index.php/Audio_Sink

 

The environment:

tried

GNURadio version 3.8.1.0 (Python 3.8.5): Ubuntu package install

tried

GNURadio version 3.9 Ubuntu package install

Ubuntu 20.04.2 LTS

uname -r 5.8.0-43-generic

 

I have been unsuccessful in getting a response from the mailing GNURadio list https://lists.gnu.org/mailman/listinfo/discuss-gnuradio so I can post a question. IT appears to be active but I get no response from my subscription attempts. I had hoped someone has experienced a similar problem and can offer advice.

 

I'm looking for your go-to resource for troubleshooting GNURadio issues. Can you help?

 

Error Messages:

Audio Source error

Generating: '/home/user/Documents/GNURadio/audio.py'

 

Executing: /usr/bin/python3 -u /home/user/Documents/GNURadio/audio.py

 

Warning: failed to XInitThreads()

Traceback (most recent call last):

File "/home/user/Documents/GNURadio/audio.py", line 128, in <module>

main()

File "/home/user/Documents/GNURadio/audio.py", line 106, in main

tb = top_block_cls()

File "/home/user/Documents/GNURadio/audio.py", line 76, in __init__

self.audio_source_0 = audio.source(samp_rate, 'pulse_monitor', True)

AttributeError: type object 'audio' has no attribute 'source'

>>> Done (return code 1)

 

Audio Sink error

Generating: '/home/user/Documents/GNURadio/audio.py'

 

Executing: /usr/bin/python3 -u /home/user/Documents/GNURadio/audio.py

 

Warning: failed to XInitThreads()

Traceback (most recent call last):

File "/home/user/Documents/GNURadio/audio.py", line 130, in <module>

main()

File "/home/user/Documents/GNURadio/audio.py", line 108, in main

tb = top_block_cls()

File "/home/user/Documents/GNURadio/audio.py", line 77, in __init__

self.audio_sink_0 = audio.sink(samp_rate, 'hw:0,0', True)

AttributeError: type object 'audio' has no attribute 'sink'

 

>>> Done (return code 1)

  • Sign in to reply
  • Cancel

Top Replies

  • colporteur
    colporteur over 4 years ago +3
    I found a solution but have gained little knowledge of the root cause of the issue. With a complete fresh install of Ubuntu 20.02.2 LTS and using the resident software manager to install GNURadio 3.8.1…
  • cstanton
    cstanton over 4 years ago +1
    At a glance this looks like an outdated library, or a missing library ('audio' , since from "gnuradio import audio"). The type 'audio' not having an attribute 'sink' would mean that the code either couldn…
Parents
  • cstanton
    cstanton over 4 years ago

    At a glance this looks like an outdated library, or a missing library ('audio' , since from "gnuradio import audio"). The type 'audio' not having an attribute 'sink' would mean that the code either couldn't interrogate and create an 'instance' of the audio object to refer to, or it isn't defined in the library for 'audio' that 'sink' even exists in it.

     

    Updating from an older version of the libraries to a newer one, and thus creating the dependencies would explain why GNURadio, when using or compiling the same version, would then work.

     

    Either it was interrogating a more localised python library install for GNURadio or the system wide python library install and somewhere along the line realised the dependencies it needed and installed the right ones.

     

    Other typical explanations for these are often down to permissions and having the correct access to folders.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • cstanton
    cstanton over 4 years ago

    At a glance this looks like an outdated library, or a missing library ('audio' , since from "gnuradio import audio"). The type 'audio' not having an attribute 'sink' would mean that the code either couldn't interrogate and create an 'instance' of the audio object to refer to, or it isn't defined in the library for 'audio' that 'sink' even exists in it.

     

    Updating from an older version of the libraries to a newer one, and thus creating the dependencies would explain why GNURadio, when using or compiling the same version, would then work.

     

    Either it was interrogating a more localised python library install for GNURadio or the system wide python library install and somewhere along the line realised the dependencies it needed and installed the right ones.

     

    Other typical explanations for these are often down to permissions and having the correct access to folders.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube