Hi Michael,
I tried that command you mentioned, but I can't see that the path
/opt/local/lib/python2.7/site-packages is there.
{{{
python -c import sys; print sys.path
}}}
gives:
['', '/Library/Python/2.7/site-packages/Pygments-1.6-py2.7.egg',
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gtk-2.0',
'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-3.0-osx_cocoa',
'/Library/Python/2.7/site-packages']
Maybe that's the reason why the rds package isn't found then.
/Ulf
On 14 jan 2014, at 14:16, Michael Dickens michael.dick...@ettus.com wrote:
Hi Ulf - Your directory listings look OK. Ideally, you'd actually use
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
as the Python files install location since that's the normal for MacPorts.
But, using /opt/local/lib/python2.7/site-packages is OK and an easy default.
Both should be in the default PYTHONPATH; you can see this via the command
{{{
python -c import sys; print sys.path
}}}
So, you should not have to set PYTHONPATH to anything special for this
install. If you have Python files installed elsewhere, you might still need
it for those files.
The otool listing for the RDS library:
{{{
libgnuradio-rds.dylib:
libgnuradio-rds.dylib (compatibility version 0.0.0, current version
0.0.0)
}}}
is fine since nobody is going to be linking against it. Ideally, this first
entry would be the actual path/name combination
(/opt/local/lib/libgnuradio-rds.dylib), but since it won't be used for
anything else it doesn't really matter. If you want to correct it, you can
do so via:
{{{
install_name_tool -id /opt/local/lib/libgnuradio-rds.dylib
libgnuradio-rds.dylib
}}}
If you do the otool command on _rds_swig.so, I think you'll find that it
contains:
{{{
_rds_swig.so (compatibility version 0.0.0, current version 0.0.0)
libgnuradio-rds.dylib (compatibility version 0.0.0, current version
0.0.0)
}}}
and this is where the issue is because the dylib cannot be found since DYLD
does not know where to look for it (DYLD can do a lot of things, but it does
-not- do arbitrary searches, generally, very well). Again, the actual path
to the .so is not important since this library (shared object) will never
be linked to, just used by Python.
You can change this incorrect linkage via:
{{{
install_name_tool -change libgnuradio-rds.dylib
/opt/local/lib/libgnuradio-rds.dylib _rds_swig.so
}}}
and then Python should be able to load RDS correctly.
Hope this helps! - MLD
On Jan 14, 2014, at 12:51 AM, Ulf Söderberg u...@soderbergsoftware.com
wrote:
These are the files that gets installed in
/opt/local/lib/python2.7/site-packages/rds:
-rwxr-xr-x 1 root admin 373688 Jan 14 06:39 _rds_swig.so
In /opt/local/lib, the only file installed is:
-rwxr-xr-x1 root admin549160 Jan 14 06:39 libgnuradio-rds.dylib
The command otool -L libgnuradio-rds.dylib renders the following:
libgnuradio-rds.dylib:
libgnuradio-rds.dylib (compatibility version 0.0.0, current version
0.0.0)
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio