Hi all. I am trying to install Gnu Radio with OS X Leopard, following the instructions on: https://radioware.nd.edu/documentation/install-gui... , and several others for inspiration. Most components seem to configure without a problem, but when using ./configure --enable-grc , a problem occurs, and the errors are: checking for xdg-mime... false checking for Python version 2.5... yes checking for Python Cheetah templates... no checking for Python GTK wrappers... no checking for Python XML wrappers... no checking for GTK version >= 2.10.0... Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named gtk ./configure: line 46951: test: =: unary operator expected no configure: error: Component grc has errors; stopping. I have installed the latest gtk2 using port, and all other recomended packages. Is there any other trics that I am missing? -- Einar T. Singsakerbakken 2B-26 N-7030 Trondheim +47 958 77 206 email@example.com
on 2008-12-21 00:40
on 2008-12-21 01:57
The check for the gtk module is failing, however, a second check for the gtk version is also failing, I need to fix this so its test is run conditionally upon gtk actually existing. Anway -> > checking for Python Cheetah templates... no > checking for Python GTK wrappers... no > checking for Python XML wrappers... no this means that the import of these modules has failed. Python cannot find them... Perhaps your python path is not set up properly. Consult the relevant mac os guides. Maybe someone familiar with mac os will chime in... -Josh
on 2008-12-22 14:45
> checking for GTK version >= 2.10.0... Traceback (most recent call > last): > File "<string>", line 1, in <module> > ImportError: No module named gtk > ./configure: line 46951: test: =: unary operator expected > no > configure: error: Component grc has errors; stopping. > > I have installed the latest gtk2 using port, and all other > recomended packages. Is there any other trics that I am missing? On top of what is listed on https://radioware.nd.edu/documentation/install-gui... you need to also install (via MacPorts): py25-cheetah py25-gtk2 py25-libxml2 If adding in those doesn't work for you, email me off list with the "configure" results & we'll work out whatever other ports you need. I was working on updating various install guides, but keep getting distracted by other things ... Ah the life of a grad student! Also, some things to note that are out of date there and elsewhere: * SDCC 2.8+ works on both Intel- and PPC-OSX. No need for the special install any longer! * At this time, LIBUSB 1.0 does not have an OSX port; it is for Linux only. You must use 0.1.X (which, luckily, is the version provided by MacPorts). --> As GNU Radio has a custom written (by me) USB for Darwin implementation (fusb_darwin), which is under GPLv3; and LIBUSB version 1 is in need to such an implementation and is under LGPLv2: Is it a possibility of transferring code from one project to the other? --> Is the GNU Radio project ("powers that be") thinking of moving to LIBUSB version 1? Clearly it is not yet possible, but if it is desired to do so, then the previous query is of more importance. OTOH, we can keep using version 0.1.X since it clearly works.
on 2008-12-22 19:45
I removed everything and started over again with the mentioned guide ( https://radioware.nd.edu/documentation/install-gui... ), and installed the modules Michael recommended (py25-cheetah, py25-gtk and py25-lxml). In addition I installed gsl, which was needed. Now most components configure correctly, so this seemed to be the way to go. The USRP2-modules was not configured, but I will probably only be using the original USRP anyway. There was problem with the path as suggested by Josh, but setting the path in .profile fixed the problem (somehow it seems that .bachrc wasn't executed when opening a terminal). Thank you for your help guys, and have a merry Christmas (in a few days). -- Einar T. Singsakerbakken 2B-26 N-7030 Trondheim +47 958 77 206 firstname.lastname@example.org
on 2008-12-22 20:10
> you need to also install (via MacPorts): > > py25-libxml2 My bad; this should have been the -other- python xml package: py25- lxml .
on 2009-02-04 13:44
I had the same problem and i added the paths for the installed modules to the PythonPath (i used "export PYTHONPATH:/opt/local/var/macports/software/[modulename]/" i however wont pass the check for GRC it still refuses. I also have gsl installed, i whould appreciate any help Einar T. wrote: > There was problem with the path as suggested by Josh, but setting the > N-7030 Trondheim > -- View this message in context: http://www.nabble.com/GRC-and-OS-X-10.5.6-tp211096... Sent from the GnuRadio mailing list archive at Nabble.com.
on 2009-02-04 15:44
On Feb 4, 2009, at 6:42 AM, emil.molin wrote: > I had the same problem and i added the paths for the installed > modules to the > PythonPath (i used "export > PYTHONPATH:/opt/local/var/macports/software/[modulename]/" i however > wont > pass the check for GRC it still refuses. > I also have gsl installed, i whould appreciate any help Yes, I need to update the GNU Radio / OSX install info on both radioware.nd.edu and gnuradio.org ... I'll put that on my ToDo list ;) The files in /opt/local/var/macports/software/[...] are also installed in /opt/local/lib/python25/site-packages ... so you should use the latter in your PYTHONPATH instead (set in your .profile or .bash_login or whatever). Doing so, for me, allows GRC to execute properly on OSX. Hope this helps. - MLD