-
Notifications
You must be signed in to change notification settings - Fork 45
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
Can't run a diagram with the osmocom source #92
Comments
I have same problem, hope someone will find solution. |
Same here. |
This is my first time experimenting with GNURadio and I ran into this problem as well. I believe that the problem is that _osmosdr_swig.so references Python twice and the path to the second reference doesn't exist. That can be seen with the following command: $ otool -L /Applications/GNURadio.app/Contents/MacOS/usr/share/gnuradio/python/site-packages/osmosdr/_osmosdr_swig.so which gives: /Applications/GNURadio.app/Contents/MacOS/usr/share/gnuradio/python/site-packages/osmosdr/_osmosdr_swig.so: I was able to fix the problem by running this command which changes the second Python reference in _osmosdr_swig.so to the correct one: $ install_name_tool -change /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/Python /Library/Frameworks/Python.framework/Versions/3.7/Python /Applications/GNURadio.app/Contents/MacOS/usr/share/gnuradio/python/site-packages/osmosdr/_osmosdr_swig.so I didn't try to look into why the library has that second reference but I suspect it has something to do with Python 3.7 having been installed on the build machine via brew at some point. |
Thanks @RocketManRC - This worked a treat. Down side is that it needs to install Xcode; but, it did get things working :) |
I also have this issue using my hack rf one, the core reason is there is no /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/Python exist, but I found that there is python 3.9 in the same path, so I make a soft link to that python dir, and it turn out working. |
I tried a lot of things to fix this same issue, but @RocketManRC's install_name_tool suggestion finally got my RTL-SDR working for me on MacOS. I saw that it is mentioned on the official MacInstall section of the gnuradio wiki, but just don't know enough about these systems yet to have known that was the solution. https://wiki.gnuradio.org/index.php/MacInstall Following the simplest bare-bones tutorial I've seen on the topic: |
Stright after installation GNU Radio is working but I'm not able to start any diagram with the osmocom Source. I'm getting a trace:
"<<< Welcome to GNU Radio Companion 3.8.0.0 >>>
Block paths:
/Applications/GNURadio.app/Contents/MacOS/usr/share/gnuradio/grc/blocks
Loading: "/Users/tomek/RadioFM.grc"
Loading: "/Users/tomek/test.grc"
Generating: '/Users/tomek/some_test.py'
Executing: /Library/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python -u /Users/tomek/some_test.py
Generating: '/Users/tomek/top_block.py'
Executing: /Library/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python -u /Users/tomek/top_block.py
Traceback (most recent call last):
File "/Users/tomek/top_block.py", line 38, in
import osmosdr
File "/Applications/GNURadio.app/Contents/MacOS/usr/share/gnuradio/python/site-packages/osmosdr/init.py", line 25, in
from .osmosdr_swig import *
File "/Applications/GNURadio.app/Contents/MacOS/usr/share/gnuradio/python/site-packages/osmosdr/osmosdr_swig.py", line 13, in
from . import _osmosdr_swig
ImportError: dlopen(/Applications/GNURadio.app/Contents/MacOS/usr/share/gnuradio/python/site-packages/osmosdr/_osmosdr_swig.so, 2): Library not loaded: /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/Python
Referenced from: /Applications/GNURadio.app/Contents/MacOS/usr/share/gnuradio/python/site-packages/osmosdr/_osmosdr_swig.so
Reason: image not found
The text was updated successfully, but these errors were encountered: