<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi All:<div><br></div><div>A question and plea for help please!<br><div><br></div><div>I am new to the list.  I have used the rtl-sdr/osmosdr blocks in gnuradio companion before under Ubuntu, but am having problems getting them set up under Mac OS.</div><div><br></div><div>My gnuradio/grc install used the macports facility.  Took a bit of time to get everything to compile, but grc comes up okay.</div><div><br></div><div>I have successfully downloaded, cmake/make, and installed the rtl-sdr and gr-osmocom packages from git.</div><div><br></div><div>I had to move all the installed files from /usr/local to /opt/local in order to get everything into the right place for the macports gnuradio to find it.</div><div><br></div><div>What works:</div><div><br></div><div>I can load grc and see the osmocom/rtl-sdr blocks.  I can add and modify them as usual.</div><div><br></div><div>Here's a screen shot:</div><div><br></div><div><img id="bac60c9a-00b7-4686-a3ca-72e1ce9c5aa2" height="650" width="935" apple-width="yes" apple-height="yes" src="cid:F95C7ACF-E030-445B-ADBB-D9CC7ADBCF0C@boldstreet.net"></div><div><br></div><div><br></div><div>What doesn't work:</div><div><br></div><div>When I generate/run the flow graph, I get messages indicating that the osmosdr module cannot be found:</div><div><br></div><div><div>---</div><div>Executing: "/Users/mcquiggi/Desktop/top_block.py"</div><div><br></div><div>Traceback (most recent call last):</div><div>  File "/Users/mcquiggi/Desktop/top_block.py", line 19, in <module></div><div>    import osmosdr</div><div>ImportError: No module named osmosdr</div><div><br></div><div>>>> Done</div></div><div>---</div><div><br></div><div>Note also that from my xterm if I enter simply:</div><div><br></div><div><div>Kevins-MacBook-Air:~ mcquiggi$ python -c "import osmosdr"</div><div>Traceback (most recent call last):</div><div>  File "<string>", line 1, in <module></div><div>ImportError: No module named osmosdr</div><div>Kevins-MacBook-Air:~ mcquiggi$ </div><div><br></div><div>I get a python error.</div><div><br></div><div>There is an 'osmosdr' directory in /opt/local/lib/python2.7/site-packages/.</div><div><br></div><div>What I have tried:</div><div><br></div><div>- creatling a soft link called 'osmosdr' (ln -s) in /opt/local/lib/python2.7/ to /opt/local/lib/python2.7/site-packages/osmosdr</div><div>- setting PYTHONPATH to /opt/local/lib/python2.7/site-packages/</div><div><br></div><div>Here is the contents of /opt/local/lib/python2.7/site-packages/osmosdr:</div><div><br></div><div><div>Kevins-MacBook-Air:~ mcquiggi$ ls /opt/local/lib/python2.7/site-packages/osmosdr</div><div>__init__.py<span class="Apple-tab-span" style="white-space:pre">               </span>_osmosdr_swig.so<span class="Apple-tab-span" style="white-space:pre">    </span>osmosdr_swig.pyo</div><div>__init__.pyc<span class="Apple-tab-span" style="white-space:pre">         </span>osmosdr_swig.py</div><div>__init__.pyo<span class="Apple-tab-span" style="white-space:pre">          </span>osmosdr_swig.pyc</div><div>Kevins-MacBook-Air:~ mcquiggi$ </div></div><div><br></div><div>So it looks like it -may- be a simple problem to solve, but I lack the necessary knowledge of how osmosdr integrates with gnuradio.</div><div><br></div><div>Any help appreciated,</div><div><br></div><div>Kevin</div><div><br></div><div><br></div><div><br></div></div><div><br></div><div><br></div><div><br></div><div><br></div></div></body></html>