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 303 subscribers
  • Views 3334 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
  • phoenixcomm
    phoenixcomm over 4 years ago

    colporteur   try it with a fresh install with the latest debian version (stable)..

    ~~Cris

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • colporteur
    colporteur over 4 years ago in reply to phoenixcomm

    Thanks for the suggestion. I'm partial to the debian variant Ubuntu.

     

    I did try your suggestion of an install with a pristine version of Ubuntu 20.04 in place. No luck, same issues. The package installs had no issues.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • phoenixcomm
    phoenixcomm over 4 years ago in reply to colporteur

    colporteur your copy might be "pristine" but its out of date current is 20.9 Im running 10,7

    ~Cris

    oh I had a problem I count mount my ISO #! I had to do a dd to a flash drive.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • colporteur
    colporteur over 4 years ago in reply to phoenixcomm

    Well I was sporting 18 LTS for the longest time. 20.04 LTS has just been in the last three months. I carved a path on at the bleeding edge in my early days. Now I just seek reliability and stability:)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • phoenixcomm
    phoenixcomm over 4 years ago in reply to colporteur

    colporteur  20.9 is a ROCK!! I have my webserver on it  running RAID 5      www.phoenixcomm.net   ||  www.NexGen-Simuations.com  and others

     

    old box short on memory. works, and works, and works.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • phoenixcomm
    phoenixcomm over 4 years ago in reply to colporteur

    colporteur  20.9 is a ROCK!! I have my webserver on it  running RAID 5      www.phoenixcomm.net   ||  www.NexGen-Simuations.com  and others

     

    old box short on memory. works, and works, and works.

    • Cancel
    • Vote Up 0 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