Project

General

Profile

Bug #4426

Errors when running GNURadio Flow or Osmocom on MacOS 10.15.3.

Added by PeterDragon 8 months ago. Updated 4 months ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
02/28/2020
Due date:
% Done:

0%

Resolution:
Spec Reference:

Description

When running GNU radio or Osmocom I am getting errors, see below for details. I have been scouring GIT, Google, and other sites for some information on what I am seeing.

Is this a known issue, or did I miss a step? Any help/information would be welcomed.

System information:

% system_profiler SPSoftwareDataType
Software:

    System Software Overview:

      System Version: macOS 10.15.3 (19D76)
      Kernel Version: Darwin 19.3.0
      Boot Volume: System HD
      Boot Mode: Normal
      Secure Virtual Memory: Enabled
      System Integrity Protection: Enabled
      Time since boot: 1 day 20:32

Installed the following:

sudo port install gnuradio +grc +swig +wxgui +qtgui

sudo port install gr-osmosdr

sudo port install gr-fosphor

NOTE: GNURadio Flow uploaded as attached image.

When testing Osmocom

xxxxxxx@hostname ~ % osmocom_fft -F
gr-osmosdr v0.1.x-xxx-xunknown (0.1.5git) gnuradio 3.7.13.5
built-in source types: file fcd rtl rtl_tcp uhd sdrplay hackrf bladerf rfspace airspy soapy
[INFO] [UHD] Mac OS; Clang version 11.0.0 (clang-1100.0.33.17); Boost_107100; UHD_3.15.0.0-MacPorts-Release
get_devices started
Device count: 0
get_devices end
Using HackRF One with firmware local-79baef77
Traceback (most recent call last):
  File "/opt/local/bin/osmocom_fft", line 850, in <module>
    main ()
  File "/opt/local/bin/osmocom_fft", line 846, in main
    app = stdgui2.stdapp(app_top_block, "osmocom Spectrum Browser", nstatus=1)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 46, in __init__
    wx.App.__init__ (self, redirect=False)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-3.0-osx_cocoa/wx/_core.py", line 8628, in __init__
    self._BootstrapApp()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-3.0-osx_cocoa/wx/_core.py", line 8196, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 49, in OnInit
    frame = stdframe (self.top_block_maker, self.title, self._nstatus)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 76, in __init__
    self.panel = stdpanel (self, self, top_block_maker)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 98, in __init__
    self.top_block = top_block_maker (frame, self, vbox, sys.argv)
  File "/opt/local/bin/osmocom_fft", line 229, in __init__
    self.scope = fosphor.wx_sink_c(panel, size=(800,300))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/fosphor/__init__.py", line 31, in <module>
    from wx_sink_c import wx_sink_c
ImportError: No module named wx_sink_c
xxxxxxx@hostname ~ %

When running GNU Radio from the command line.

% gnuradio-companion fosphor-cfile.2grc.grc
<<< Welcome to GNU Radio Companion 3.7.13.5 >>>

Block paths:
    /opt/local/share/gnuradio/grc/blocks

Loading: "/Users/xxxxxxx/fosphor-cfile.2grc.grc" 
>>> Done

Generating: '/Users/xxxxxxx/top_block.py'

Executing: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u /Users/xxxxxxx/top_block.py

gr-osmosdr v0.1.x-xxx-xunknown (0.1.5git) gnuradio 3.7.13.5
built-in source types: file fcd rtl rtl_tcp uhd sdrplay hackrf bladerf rfspace airspy soapy
[INFO] [UHD] Mac OS; Clang version 11.0.0 (clang-1100.0.33.17); Boost_107100; UHD_3.15.0.0-MacPorts-Release
get_devices started
Device count: 0
get_devices end
Using HackRF One with firmware local-79baef77
Traceback (most recent call last):
  File "/Users/xxxxxxx/top_block.py", line 123, in <module>
    main()
  File "/Users/xxxxxxx/top_block.py", line 117, in main
    tb = top_block_cls()
  File "/Users/xxxxxxx/top_block.py", line 89, in __init__
    self.top_grid_layout.addWidget(self._fosphor_qt_sink_c_0_win)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/gr/hier_block2.py", line 92, in __getattr__
    return getattr(self._impl, name)
AttributeError: 'top_block_sptr' object has no attribute 'top_grid_layout'

Screen Shot 2020-02-28 at 3.02.45 PM.png View Screen Shot 2020-02-28 at 3.02.45 PM.png 41.4 KB GNU Radio Flow PeterDragon, 02/28/2020 08:03 PM
4035

History

#1 Updated by fixeria 8 months ago

Hi,

gr-osmosdr v0.1.x-xxx-xunknown (0.1.5git) gnuradio 3.7.13.5

the latest stable version of GNU Radio is 3.8, gr-osmosdr is v0.2.0. I have absolutely no experience with MacOS ports (I guess they'tr like BSD ports?), but I would either build everything from source myself (without using ports) or use some Linux distribution / Docker image that ships the recent working versions.

Is this a known issue, or did I miss a step?

Works for me with the recent stable versions.

#2 Updated by sawdustgang@gmail.com 6 months ago

Hi PeterDragon,

Did you ever get past the "ImportError: No module named wx_sink_c"? I am experiencing the same and wondered if you found a resolution.

Thanks

#3 Updated by 0xroot 4 months ago

Get the same +1

osmocom_fft -f 315e6 -s 2e6 -F
gr-osmosdr v0.1.x-xxx-xunknown (0.1.5git) gnuradio 3.7.13.5
built-in source types: file fcd rtl rtl_tcp uhd sdrplay hackrf bladerf rfspace airspy soapy
[INFO] [UHD] Mac OS; Clang version 11.0.3 (clang-1103.0.32.62); Boost_107100; UHD_3.15.0.0-MacPorts-Release
get_devices started
Device count: 0
get_devices end
Using device #0 Realtek RTL2838UHIDIR SN: 00000001
Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
Exact sample rate is: 2000000.052982 Hz
[R82XX] PLL not locked!
Traceback (most recent call last):
  File "//opt/local/bin/osmocom_fft", line 850, in <module>
    main ()
  File "//opt/local/bin/osmocom_fft", line 846, in main
    app = stdgui2.stdapp(app_top_block, "osmocom Spectrum Browser", nstatus=1)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 46, in __init__
    wx.App.__init__ (self, redirect=False)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-3.0-osx_cocoa/wx/_core.py", line 8628, in __init__
    self._BootstrapApp()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-3.0-osx_cocoa/wx/_core.py", line 8196, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 49, in OnInit
    frame = stdframe (self.top_block_maker, self.title, self._nstatus)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 76, in __init__
    self.panel = stdpanel (self, self, top_block_maker)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 98, in __init__
    self.top_block = top_block_maker (frame, self, vbox, sys.argv)
  File "//opt/local/bin/osmocom_fft", line 229, in __init__
    self.scope = fosphor.wx_sink_c(panel, size=(800,300))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/fosphor/__init__.py", line 31, in <module>
    from wx_sink_c import wx_sink_c
ImportError: No module named wx_sink_c

os:10.15.5

port installed:

gr-fcdproplus @20180828_1 (active)
gr-fosphor @20160522_12 (active)
gr-osmosdr @20170704_11+airspy+bladeRF+docs+fcdproplus+hackrf+rtlsdr+sdrplay+soapysdr+swig+uhd (active)
gnuradio @3.7.13.5_6+docs+grc+log4cpp+logging+qtgui+sdl+swig+uhd+wavelet+wxgui+zeromq (active)

#4 Updated by tnt 4 months ago

You should report that to the macport bug report tool.
None of the dev use OSX and this works fine on other OSes. So either the WX option isn't enabled during build/install or for some reason it's not finding it.

#5 Updated by fixeria 4 months ago

  • Status changed from New to Rejected

You should report that to the macport bug report tool.

ACK.

gr-fcdproplus @20180828_1 (active)
gr-fosphor @20160522_12 (active)
gr-osmosdr @20170704_11+airspy+bladeRF+docs+fcdproplus+hackrf+rtlsdr+sdrplay+soapysdr+swig+uhd (active)
gnuradio @3.7.13.5_6+docs+grc+log4cpp+logging+qtgui+sdl+swig+uhd+wavelet+wxgui+zeromq (active)

So you're using 4-2 year old software in 2020, compiled and packaged by a third-party. Not sure if we can help here.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)