Opened 15 years ago

Closed 15 years ago

#24032 closed defect (worksforme)

gnuradio 3.2.2+python25 install failure

Reported by: jeremy.holleman@… Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: gnuradio

Description (last modified by mf2k (Frank Schima))

Intel MacBook Pro running OS X 10.5.8
XCode version 3.1.2
MacPorts 1.8.2


When attempting to install the python2.5 variant of gnuradio, the installation aborts with an error. It seems to be failing in the configure phase of gnuradio-wxgui. If I attempt to install gnuradio-wxgui+python25 directly, the result looks similar. Some components, including gnuradio-core, are installed, and I am able to run the dialtone.py example.

I had initially tried to install the default python26 variant, but ran into problems related to libusb, and switched to the python25 version based on the information in ticket #18104. I attempted to uninstall all of the python26 variants, but it is possible that I missed some.

One line near the end says that USRP2 is only supported on linux, but presumably, but I cannot tell whether that is actually the source of the problem.

I've pasted an edited version of the end of the output of the install command below. I can provide the complete output (with -d flag) if it would be helpful.

Thanks, Jeremy


### My added comments are marked with this ### at the beginning of the line
### Command line: "sudo port -d install gnuradio +python25 >& gr_install_dump.txt"
### many lines omitted 
DEBUG: Requested variant darwin is not provided by port gnuradio-wxgui.
DEBUG: Requested variant i386 is not provided by port gnuradio-wxgui.
DEBUG: Requested variant macosx is not provided by port gnuradio-wxgui.
DEBUG: Executing variant python25 provides python25
### skipping some lines ...
--->  Configuring gnuradio-wxgui
DEBUG: Using compiler 'Mac OS X gcc 4.0'
DEBUG: Executing org.macports.configure (gnuradio-wxgui)
DEBUG: Environment: CFLAGS='-O2 -arch i386'
CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2 -arch i386'
MACOSX_DEPLOYMENT_TARGET='10.5' CXX='/usr/bin/g++-4.0' F90FLAGS='-O2
-m32' LDFLAGS='-L/opt/local/lib' FCFLAGS='-O2 -m32'
OBJC='/usr/bin/gcc-4.0' INSTALL='/usr/bin/install -c'
PYTHON='/opt/local/bin/python2.5' OBJCFLAGS='-O2 -arch i386'
FFLAGS='-O2 -m32' CC='/usr/bin/gcc-4.0'
DEBUG: Assembled command: 'cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.
org_release_ports_science_gnuradio-wxgui/work/gnuradio-3.2.2"
&& ./configure --prefix=/opt/local --disable-all-components
--with-omnithread --with-gruel --with-gnuradio-core --enable-gr-wxgui
--disable-doxygen --disable-docs'
checking build system type... i386-apple-darwin9.8.0
###  lots of "checking <something>" lines omitted
Not building component gcell
### Also Not building component pmt, mblock, usrp
checking whether host_os is linux*... no
### This next line seems suspicious.
configure: USRP2 currently requires Linux host OS, not found
Not building component usrp2.
### Also not building gr-usrp, gr-usrp2, gr-gcell, gr-audio-alsa,
    gr-audio-jack, gr-audio-oss, gr-audio-osx, gr-audio-portaudio,
    gr-audio-windows, gr-cvsd-vocoder, gr-gpio, gr-gsm-fr-vocoder,
    gr-pager, gr-radar-mono, gr-radio-astronomy, gr-trellis,
    gr-video-sdl
checking for Python wxWidgets wrappers >= 2.8... no
checking for Numeric Python extensions... yes
configure: error: Component gr-wxgui has errors; stopping.
Error: Target org.macports.configure returned: configure failure:
shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_gnuradio-wxgui/work/gnuradio-3.2.2"
&& ./configure --prefix=/opt/local --disable-all-components
--with-omnithread --with-gruel --with-gnuradio-core --enable-gr-wxgui
--disable-doxygen --disable-docs " returned error 1
DEBUG: Backtrace: configure failure: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_gnuradio-wxgui/work/gnuradio-3.2.2"
&& ./configure --prefix=/opt/local --disable-all-components
--with-omnithread --with-gruel --with-gnuradio-core --enable-gr-wxgui
--disable-doxygen --disable-docs " returned error 1
    while executing
"$procedure $targetname"
Warning: the following items did not execute (for gnuradio-wxgui):
org.macports.activate org.macports.configure org.macports.build
org.macports.destroot org.macports.install
Error: The following dependencies failed to build: gnuradio-grc
gnuradio-wxgui gnuradio-gsm-fr-vocoder gnuradio-pager
gnuradio-radar-mono gnuradio-radio-astronomy gnuradio-sounder
gnuradio-trellis gnuradio-usrp gnuradio-utils gnuradio-video-sdl
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>


Attachments (1)

config.log (161.3 KB) - added by jeremy.holleman@… 15 years ago.
config.log from gnuradio-3.2.2

Download all attachments as: .zip

Change History (11)

comment:1 Changed 15 years ago by michaelld (Michael Dickens)

Owner: changed from macports-tickets@… to michaelld@…

From the 'configure' output, wxPython isn't being found
("checking for Python wxWidgets wrappers >= 2.8... no").
What does "port installed | grep wx" return for you in terms of "py25" or "py26"?

comment:2 in reply to:  1 Changed 15 years ago by jeremy.holleman@…

Replying to michaelld@…:

From the 'configure' output, wxPython isn't being found
("checking for Python wxWidgets wrappers >= 2.8... no").
What does "port installed | grep wx" return for you in terms of "py25" or "py26"?

Here's what I get.

jhollema@lap3>port installed | grep -i wx
  py25-wxpython @2.8.9.1_0 (active)
  wxWidgets @2.8.9_1 (active)

comment:3 Changed 15 years ago by michaelld (Michael Dickens)

Interesting; not what I expected. How about the results of the following (the second might return nothing):

python -V
python -c "import wx"
which python

also, can you attach the 'config.log' file generated by configure;
should be in the directory (IIRC): port dir gnuradio-wxgui/work/gnuradio-3.2.2/

comment:4 Changed 15 years ago by mf2k (Frank Schima)

Cc: michaelld@… removed
Description: modified (diff)
Keywords: gnuradio wxgui removed

Changed 15 years ago by jeremy.holleman@…

Attachment: config.log added

config.log from gnuradio-3.2.2

comment:5 in reply to:  3 Changed 15 years ago by jeremy.holleman@…

python -V

Python 2.5.5

which python

/opt/local/bin/python

python -c "import wx"

I had tried import wx from an interactive session and got this result:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/local/lib/python2.5/site-packages/wx-2.8-mac-unicode/wx/__init__.py", line 45, in <module>
    from wx._core import *
  File "/opt/local/lib/python2.5/site-packages/wx-2.8-mac-unicode/wx/_core.py", line 4, in <module>
    import _core_
ImportError: dlopen(/opt/local/lib/python2.5/site-packages/wx-2.8-mac-unicode/wx/_core_.so, 2): Library not loaded: /opt/local/lib/libjpeg.62.dylib
  Referenced from: /opt/local/lib/libwx_macu-2.8.0.dylib
  Reason: image not found

So I uninstalled and re-installed py25-wxpython. But now 'python -c "import wx"' gives the same result except that in the first line 'File "<stdin>"' is replaced by 'File "<string>"'. Also, based on the error message, I checked for the file /opt/local/lib/libjpeg.62.dylib and it does not exist in that location.

comment:6 Changed 15 years ago by jmroot (Joshua Root)

The revision on wxWidgets was bumped after the jpeg port was updated to version 7, so theoretically it should have been rebuilt and thus no longer linked against jpeg 6.

comment:7 Changed 15 years ago by michaelld (Michael Dickens)

The config.log file is useless since the checks for wxPython print nothing; as well, thanks anyway for uploading.

Have you done a 'selfupdate' recently? Try that, followed by "sudo port upgrade outdated",
or whatever flavor of "upgrade" you prefer.

comment:8 Changed 15 years ago by michaelld (Michael Dickens)

It seems as though wxWidgets didn't get updated when jpeg did (even though, as pointed out, they both should have, simultaneously, in changeset:61377 ). So, there's a new libjpeg but wxWidgets is looking for the old version. I don't know how/why this could have happened; quite strange really, but I've already heard from someone else on the GNU Radio discussion email list of the same issue, so you're not alone.

Hence my thinking that the selfupdate followed by upgrading the outdated ports might do the trick.

Another option would be to uninstall and reinstall wxWidgets, in order to get the new libjpeg correctly.

Let us know if either of these works.

comment:9 Changed 15 years ago by jeremy.holleman@…

I actually did selfupdate and upgrade outdated on Friday before submitting the ticket.

However, when I uninstalled wxWidgets and re-installed it, that did the trick. So now I have a working install of gnuradio.

Thanks for the help!

Lastly, it seems like both the 'upgrade outdated' and the initial install attempt should have caught the fact that wxWidgets needed to be updated. Is there anything I should do to get the information to those ports?

comment:10 Changed 15 years ago by michaelld (Michael Dickens)

Resolution: worksforme
Status: newclosed

You're welcome for the help; I'm glad it worked out so well & reasonably quickly too!

I also would have thought 'upgrade outdated' or an initial install would work; I have no idea why they didn't, nor what you / anyone would do to be more precise in getting 'port' to "do the right thing". In my experience, these little glitches just happen from time to time and you have be explicit at those times, by tracking down the exact port that's having issues and uninstalling and reinstalling that port (and sometimes from there forward). Maybe that's the "price" of progress sometimes? Sorry I can't be more precise.

Note: See TracTickets for help on using tickets.