discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] New Module using gr_modtool Error


From: vamsi krishna
Subject: Re: [Discuss-gnuradio] New Module using gr_modtool Error
Date: Mon, 21 Nov 2016 15:04:49 +0000 (UTC)

Hi Micheal,

That fixed the issue! I was trying to figure it out for 10hours!
But I'm not sure why the error occurs only for new OOT modules created (either in my computer or other ubuntu computer). The cmake command which I used previously (with only install prefix option) works alright with older OOT modules, is there a particular reason for this?

Here is the error:
Process:               Python [10887]
Path:                  /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier:            Python
Version:               2.7.12 (2.7.12)
Code Type:             X86-64 (Native)
Parent Process:        Python [10873]
Responsible:           Python [10887]
User ID:               501

Date/Time:             2016-11-20 15:09:10.468 -0800
OS Version:            Mac OS X 10.12.1 (16B2555)
Report Version:        12
Anonymous UUID:        D8090335-A434-F732-61A3-656D0819D724


Time Awake Since Boot: 10000 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
abort() called

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib         0x00007fffbb01edda __pthread_kill + 10
1   libsystem_pthread.dylib       0x00007fffbb10a787 pthread_kill + 90
2   libsystem_c.dylib             0x00007fffbaf84420 abort + 129
3   org.python.python             0x000000010dbfa8ee Py_FatalError + 49
4   org.python.python             0x000000010dbf9de8 PyThreadState_Get + 28
5   org.python.python             0x000000010dbf6ce2 Py_InitModule4_64 + 62
6   _test_swig.so                 0x000000010db27750 init_test_swig + 800
7   org.python.python             0x000000010d37fd5c _PyImport_LoadDynamicModule + 140


Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000000000000006  rcx: 0x00007fff52959058  rdx: 0x0000000000000000
  rdi: 0x0000000000000307  rsi: 0x0000000000000006  rbp: 0x00007fff52959080  rsp: 0x00007fff52959058
   r8: 0x0000000000000040   r9: 0x00007fffc3bf4040  r10: 0x0000000008000000  r11: 0x0000000000000206
  r12: 0x00007f9854065c00  r13: 0x000000010db3db40  r14: 0x00007fffc3c103c0  r15: 0x000000010d43cbc8
  rip: 0x00007fffbb01edda  rfl: 0x0000000000000206  cr2: 0x00007fffc3bf2128
  
Logical CPU:     0
Error Code:      0x02000148
Trap Number:     133

Binary Images:
       0x10d2a4000 -        0x10d2a5ff3 +org.python.python (2.7.12 - 2.7.12) <16EBCFCB-E223-3DC8-BD98-C06C340AA66E> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
       0x10d2a9000 -        0x10d3e3fff +org.python.python (2.7.12, [c] 2001-2016 Python Software Foundation. - 2.7.12) <46884AF3-8723-3B6C-9F97-F5EAD025F5E6> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python
       0x10d669000 -        0x10d66bfff +_locale.so (0) <87303438-30DB-3508-862B-F0E6A79F6446> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_locale.so
       0x10d66f000 -        0x10d677ff3 +libintl.8.dylib (0) <34C7A792-8F97-3B47-BE05-892044CF0A65> /opt/local/lib/libintl.8.dylib
       0x10d67c000 -        0x10d770ff7 +libiconv.2.dylib (0) <D1DF370F-D618-3944-9662-67D25BDADA0F> /opt/local/lib/libiconv.2.dylib
       0x10d7bd000 -        0x10d7bfffb +time.so (0) <001BA328-F9D1-3831-810C-8916DCCA4FE8> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/time.so
       0x10d7c5000 -        0x10d7c8ff7 +select.so (0) <BF7C62C8-016B-3FA0-8361-6C3AA942EB32> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/select.so
       0x10d7ce000 -        0x10d7cffff +fcntl.so (0) <1B78FFA3-4806-3385-AB55-39609E51BF83> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/fcntl.so
       0x10d812000 -        0x10d815ff3 +_struct.so (0) <62217510-38EC-3D1F-96E8-DB78FDE40379> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_struct.so
       0x10d81c000 -        0x10d81fff3 +binascii.so (0) <D1B97F16-1A4F-39E5-803D-9D19294901F2> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/binascii.so
       0x10d823000 -        0x10d832fff +libz.1.dylib (0) <6D714A00-1700-3CE7-9C1E-17746B562709> /opt/local/lib/libz.1.dylib
       0x10d836000 -        0x10d837ff3 +cStringIO.so (0) <16091FFA-D088-3455-838D-B2548B846D6C> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cStringIO.so
       0x10d83c000 -        0x10d83fffb +_collections.so (0) <B43753C0-90EE-3813-A46C-84FA13305388> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_collections.so
       0x10d845000 -        0x10d848ff3 +operator.so (0) <9F3F7A4F-2EA8-33B1-92DF-E6E0E3FD7ED9> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/operator.so
       0x10d84f000 -        0x10d854ff3 +itertools.so (0) <CD37243A-948A-3FE8-82F0-6D79DC02BC2B> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/itertools.so
       0x10d85f000 -        0x10d860ff7 +_heapq.so (0) <B5F8D47E-15CF-32F0-8DB1-AFB2D8F08C97> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_heapq.so
       0x10d8a4000 -        0x10d8a9fff +_json.so (0) <A1C52EC7-989C-3EBD-8C23-F88DA180CA51> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_json.so
       0x10d8ae000 -        0x10d8b2ffb +math.so (0) <030D8F3F-D8B6-3AD4-BB35-C19F053AD4C4> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/math.so
       0x10d8b9000 -        0x10d8bbffb +_hashlib.so (0) <C8508C90-8F7C-3F14-85B5-6EC5937AD6E3> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_hashlib.so
       0x10d8c0000 -        0x10d907ff7 +libssl.1.0.0.dylib (0) <BCEBF488-03B6-3DE0-ABB5-C06428F1D772> /opt/local/lib/libssl.1.0.0.dylib
       0x10d924000 -        0x10daa9877 +libcrypto.1.0.0.dylib (0) <C2B33484-A2D9-3DBA-B387-29662B7D6A69> /opt/local/lib/libcrypto.1.0.0.dylib
       0x10db1f000 -        0x10db20fff +_random.so (0) <9FE5A9E0-82DF-33C3-A19C-D52FEFFF1776> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_random.so
       0x10db24000 -        0x10db43ff7 +_test_swig.so (0) <38A9F267-D15F-37AD-A746-D05F1243C65A> /opt/local/lib/*/_test_swig.so
       0x10db59000 -        0x10dc4afff  org.python.python (2.7.10 - 2.7.10) <9A7B981D-B190-38FF-A861-770007B7FCD9> /System/Library/Frameworks/Python.framework/Versions/2.7/Python
       0x10dcb2000 -        0x10dcb8ff3 +libgnuradio-test.1.0.0git.dylib (0) <A4351946-0AFB-3E06-81D5-0B4C6FE96B77> /opt/local/lib/libgnuradio-test.1.0.0git.dylib
       0x10dcc1000 -        0x10dccfff7 +libboost_filesystem-mt.dylib (0) <85C65F2C-FCB4-38F0-9CD4-431BF243B211> /opt/local/lib/libboost_filesystem-mt.dylib
       0x10dce1000 -        0x10dce3fff +libboost_system-mt.dylib (0) <ED86ABC8-84C1-3508-9362-6E2AB9295F0D> /opt/local/lib/libboost_system-mt.dylib
       0x10dce8000 -        0x10dd56ff7 +libgnuradio-runtime.3.7.10.1.dylib (0) <6EF29378-AC7C-3F20-BE56-99B1D71A2EDB> /opt/local/lib/libgnuradio-runtime.3.7.10.1.dylib
       0x10ddb0000 -        0x10dde1ffb +libgnuradio-pmt.3.7.10.1.dylib (0) <033E8687-C0A3-3FC1-93C1-3B6D6A374F45> /opt/local/lib/libgnuradio-pmt.3.7.10.1.dylib
       0x10de07000 -        0x10de97ff7 +libvolk.1.3.dylib (0) <4A05A971-7F81-328C-8CCB-6AA056327105> /opt/local/lib/libvolk.1.3.dylib
       0x10df45000 -        0x10df49fff +libboost_date_time-mt.dylib (0) <BD287B22-EE37-3A1D-9249-8BB46389ECF9> /opt/local/lib/libboost_date_time-mt.dylib
       0x10df58000 -        0x10df8cfff +libboost_program_options-mt.dylib (0) <2E935CBA-E26F-3563-82DD-55B36E9A5A9A> /opt/local/lib/libboost_program_options-mt.dylib

Thank you,
Vamsi
On Monday, 21 November 2016 5:20 AM, Michael Dickens <address@hidden> wrote:


Hi Vamsi - You didn't post the error, though I'm guessing it's that when
you execute anything that uses your new OOT Python does not find the OOT
install. Also I'm not sure where you're getting your instructions from,
but you don't "sudo make" ... just "make" is plenty good enough.

For a "normal" OOT, you'll want to specify something like (watch wrap):
{{{
cmake -DCMAKE_INSTALL_PREFIX=/opt/local
-DPYTHON_EXECUTABLE=/opt/local/bin/python2.7
-DPYTHON_INCLUDE_DIR=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Headers[http://python.framework/Versions/2.7/Headers]
-DPYTHON_LIBRARY=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python[http://python.framework/Versions/2.7/Python]
-DGR_PYTHON_DIR=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages[http://python.framework/Versions/2.7/lib/python2.7/site-packages]
..
}}}
to (1) make sure you're using the correct Python (assuming
PYTHON_EXECUTABLE, PYTHON_INCLUDE_DIR, and PYTHON_LIBRARY are correct)
and (2) that the various Python installs are into the correct locations
(GR_PYTHON_DIR is correct). If you are using some other Python, you'll
need to set all of the PYTHON variables accordingly.

Hope this is useful! - MLD

On Mon, Nov 21, 2016, at 08:13 AM, Michael Dickens wrote:
>
> ---------- Forwarded message ----------
> From: *vamsi krishna* <address@hidden>
> Date: Sun, Nov 20, 2016 at 11:09 PM
> Subject: Re: [Discuss-gnuradio] New Module using gr_modtool Error
> To: "address@hidden" <address@hidden>
>
>
> Hi,
>
> I tried the following solution, but it didn't work for me.
>
> Re: [Discuss-gnuradio] gr_modtool cmake/make problems on OSX[https://lists.gnu.org/archive/html/discuss-gnuradio/2013-02/msg00497.html]
>
>
> Re: [Discuss-gnuradio] gr_modtool cmake/make problems on OSX


>
>
>
>
> I have tried the same on another macOS system with similar results.
> I have even installing gnuradio-devel macport, which gave the same error.
>
> Thanks
> Vamsi
>
> On Sunday, 20 November 2016 3:17 PM, vamsi krishna <address@hidden> wrote:
>
>
> Hi,
>
> I run into the attached error when I create a OOT module and installed it using the following commands.
>
> #gnuradio commands
> #inside gr directory
> mkdir build
> cd build
>
> #the install prefix should be given as gnuradio was installed in that folder by MacPorts
> cmake -DCMAKE_INSTALL_PREFIX:PATH=/opt/local ../
> #to build all files
> sudo make
>
> #to build and install files into correct directory to be used by GRC
> sudo make install
>
> #To remove certain error for GNURadio companion
>
> export PYTHONPATH=/opt/local/lib/python2.7/site-packages/
>
> I do not have problem using existing blocks, but when I create a new (empty module without any code in work function)
>
> I'm running GNURadio on Mac installed using MacPorts
> sudo port install gnuradio -universal
>
> There is a python error twice (once during initial GNURadio startup and later when I click on block the gnuradio crashes with that error again)
>
> Could you please let me know how to resolve the issue?


reply via email to

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