discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Cygwin Python Import Error


From: Don Ward
Subject: Re: [Discuss-gnuradio] Cygwin Python Import Error
Date: Sun, 11 Feb 2007 20:15:23 -0500

"Brian Padalino" <address@hidden> wrote:

I had an old version of GNURadio installed on my cygwin setup, but
decided to get the current development version in the svn repository.

After checking it out, bootstrapping, configuring and starting a make
- I had an error where the linker complained about omnithread being
made into a static library and not shared followed by a whole bunch of
missing omnithread declarations.

I got around this by doing --enable-shared=omnithread at configure,
and it went past that point.

This has the same effect as --enable-shared=no, which won't work. (The documentation on the --enable-shared option is misleading.)

 Once the build was successful, I went
and did an make install and tried to run python and import gr.  Here
are the results:

$ python
Python 2.4.3 (#1, May 18 2006, 07:40:45)
[GCC 3.3.3 (cygwin special)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
from gnuradio import gr
Traceback (most recent call last):
 File "<stdin>", line 1, in ?
 File "/usr/local/lib/python2.4/site-packages/gnuradio/gr/__init__.py",
line 27, in ?
   from gnuradio_swig_python import *
File "/usr/local/lib/python2.4/site-packages/gnuradio/gr/gnuradio_swig_python.py",
line 23, in ?
   from gnuradio_swig_py_runtime import *
File "/usr/local/lib/python2.4/site-packages/gnuradio/gr/gnuradio_swig_py_runtime.py",
line 6, in ?
   import _gnuradio_swig_py_runtime
ImportError: No module named _gnuradio_swig_py_runtime

I have 2 files in /usr/local/lib/python2.4/site-packages/gnuradio/gr
with the name _gnuradio_swig_py_runtime - one an ar archive and the
other a libtool library file.

As expected, no .dll files are produced when --enable-shared is turned off.

When the omnithread library was made into a separate module, some magic needed to make it work on windows was omitted. These are supplied in the attached .patch files (to use: cd gnuradio; patch -p0 -i foo.patch). Rerun ./bootstrap and ./config after applying the patches. See ticket #138 at www.gnuradio.org/trac for more details.

-- Don W.


Attachment: omni070211.patch
Description: Binary data

Attachment: mblock070211.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]