gr-dect2 icon indicating copy to clipboard operation
gr-dect2 copied to clipboard

dect2 QT error on mac

Open aneitzel opened this issue 6 years ago • 5 comments

MACOS 10.14.3 (Mojave) fresh install + macports GNU 3.7.12

After compile dect2 on mac and try to run dect2_hackrf.grc i got this message. Any idea whats wrong and why QT4 AND QT5 is involved?

Generating: '/Users/alpha/Desktop/gr-dect2/grc/top_block.py' Executing: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u /Users/alpha/Desktop/gr-dect2/grc/top_block.py

Traceback (most recent call last): File "/Users/alpha/Desktop/gr-dect2/grc/top_block.py", line 35, in import dect2 File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/dect2/init.py", line 46, in from console import * File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/dect2/console.py", line 27, in from PyQt5 import QtCore, QtGui, QtWidgets

RuntimeError: the PyQt5.QtCore and PyQt4.QtCore modules both wrap the QObject class

aneitzel avatar Feb 14 '19 11:02 aneitzel

Getting the same issue when running on Ubuntu (16.04). Anyone done a proper fix for this? Don't mix Qt4 and Qt5, stick to one of them.

krihal avatar Mar 17 '19 10:03 krihal

When have older version of GNURadio depending on QT4:

$ gnuradio-companion --version
GNU Radio Companion 3.7.10
$ apt-cache depends gnuradio
gnuradio
[..]
  Depends: python-qt4
[..]

Below is the right order to proceed:

git clone git://github.com/pavelyazev/gr-dect2.git
cd gr-dect2/
# Below one switches to the older QT4 branch:
git checkout pyqt4  
mkdir build
cd build
cmake ../
make
sudo make install
sudo ldconfig

deHakkelaar avatar Apr 09 '19 23:04 deHakkelaar

Verified your steps on MAC OS Mojave - same issue :-( (GNU Radio Companion 3.7.12) note that sudo ldconfig as last step is not found as a valid cli command... Andres-iMac:build alpha$ sudo ldconfig

sudo: ldconfig: command not found


Andres-iMac:~ alpha$ gnuradio-companion --version

GNU Radio Companion 3.7.12.0

This program is part of GNU Radio

GRC comes with ABSOLUTELY NO WARRANTY.

This is free software, and you are welcome to redistribute it.

Andres-iMac:Desktop alpha$ git clone git:// github.com/pavelyazev/gr-dect2.git

Cloning into 'gr-dect2'...

remote: Enumerating objects: 117, done.

remote: Total 117 (delta 0), reused 0 (delta 0), pack-reused 117

Receiving objects: 100% (117/117), 136.40 KiB | 502.00 KiB/s, done.

Resolving deltas: 100% (44/44), done.

Andres-iMac:Desktop alpha$ cd gr-dect2/

Andres-iMac:gr-dect2 alpha$ git checkout pyqt4

Branch 'pyqt4' set up to track remote branch 'pyqt4' from 'origin'.

Switched to a new branch 'pyqt4'

Andres-iMac:gr-dect2 alpha$ mkdir build

Andres-iMac:gr-dect2 alpha$ cd build/

Andres-iMac:build alpha$ cmake ../

-- The CXX compiler identification is AppleClang 10.0.0.10001145

-- The C compiler identification is AppleClang 10.0.0.10001145

-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++

-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Detecting CXX compile features

-- Detecting CXX compile features - done

-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc

-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Detecting C compile features

-- Detecting C compile features - done

-- Build type not specified: defaulting to release.

-- Boost version: 1.66.0

-- Found the following Boost libraries:

-- filesystem

-- system

-- Found PkgConfig: /opt/local/bin/pkg-config (found version "0.29.2")

-- Checking for module 'cppunit'

-- Found cppunit, version 1.14.0

-- Found CPPUNIT: /opt/local/lib/libcppunit.dylib

-- Found Doxygen: /opt/local/bin/doxygen (found version "1.8.14") found components: doxygen dot

Checking for GNU Radio Module: RUNTIME

-- Checking for module 'gnuradio-runtime'

-- Found gnuradio-runtime, version 3.7.12.0

  • INCLUDES=/opt/local/include

LIBS=/opt/local/lib/libgnuradio-runtime.dylib;/opt/local/lib/libgnuradio-pmt.dylib;/opt/local/lib/libmpirxx.dylib;/opt/local/lib/libmpir.dylib;/opt/local/lib/liblog4cpp.dylib

-- Found GNURADIO_RUNTIME: /opt/local/lib/libgnuradio-runtime.dylib;/opt/local/lib/libgnuradio-pmt.dylib;/opt/local/lib/libmpirxx.dylib;/opt/local/lib/libmpir.dylib;/opt/local/lib/liblog4cpp.dylib

GNURADIO_RUNTIME_FOUND = TRUE

Checking for GNU Radio Module: BLOCKS

-- Checking for module 'gnuradio-blocks'

-- Found gnuradio-blocks, version 3.7.12.0

  • INCLUDES=/opt/local/include

LIBS=/opt/local/lib/libgnuradio-blocks.dylib;/opt/local/lib/libgnuradio-runtime.dylib;/opt/local/lib/libgnuradio-pmt.dylib;/opt/local/lib/libmpirxx.dylib;/opt/local/lib/libmpir.dylib;/opt/local/lib/liblog4cpp.dylib

-- Found GNURADIO_BLOCKS: /opt/local/lib/libgnuradio-blocks.dylib;/opt/local/lib/libgnuradio-runtime.dylib;/opt/local/lib/libgnuradio-pmt.dylib;/opt/local/lib/libmpirxx.dylib;/opt/local/lib/libmpir.dylib;/opt/local/lib/liblog4cpp.dylib

GNURADIO_BLOCKS_FOUND = TRUE

CMake Warning (dev) at /opt/local/share/cmake/gnuradio/GrTest.cmake:45 (get_target_property):

Policy CMP0026 is not set: Disallow use of the LOCATION target property.

Run "cmake --help-policy CMP0026" for policy details. Use the cmake_policy

command to set the policy and suppress this warning.

The LOCATION property should not be read from target "test-dect2". Use the

target name directly with add_custom_command, or use the generator

expression $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):

lib/CMakeLists.txt:79 (GR_ADD_TEST)

This warning is for project developers. Use -Wno-dev to suppress it.

--

-- Checking for module SWIG

-- Found SWIG version 3.0.12.

-- Found SWIG: /opt/local/bin/swig

-- Found PythonLibs: /usr/lib/libpython2.7.dylib (found suitable version "2.7.10", minimum required is "2")

-- Found PythonInterp: /opt/local/bin/python2.7 (found suitable version "2.7.15", minimum required is "2")

-- Performing Test HAVE_WNO_UNUSED_BUT_SET_VARIABLE

-- Performing Test HAVE_WNO_UNUSED_BUT_SET_VARIABLE - Failed

-- Configuring done

CMake Warning (dev):

Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake

--help-policy CMP0042" for policy details. Use the cmake_policy command to

set the policy and suppress this warning.

MACOSX_RPATH is not specified for the following targets:

gnuradio-dect2

This warning is for project developers. Use -Wno-dev to suppress it.

-- Generating done

-- Build files have been written to: /Users/alpha/Desktop/gr-dect2/build

Andres-iMac:build alpha$ make

Scanning dependencies of target gnuradio-dect2

[ 3%] Building CXX object lib/CMakeFiles/gnuradio-dect2.dir/phase_diff_impl.cc.o

[ 7%] Building CXX object lib/CMakeFiles/gnuradio-dect2.dir/packet_decoder_impl.cc.o

/Users/alpha/Desktop/gr-dect2/lib/packet_decoder_impl.cc:403:44: warning: equality comparison result unused [-Wunused-comparison]

                d_cur_part->rpf_fn_cor ==  false;

                ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~

/Users/alpha/Desktop/gr-dect2/lib/packet_decoder_impl.cc:403:44: note: use '=' to turn this equality comparison into an assignment

                d_cur_part->rpf_fn_cor ==  false;

                                       ^~

                                       =

1 warning generated.

[ 11%] Building CXX object lib/CMakeFiles/gnuradio-dect2.dir/packet_receiver_impl.cc.o

[ 15%] Linking CXX shared library libgnuradio-dect2.dylib

[ 15%] Built target gnuradio-dect2

Scanning dependencies of target test-dect2

[ 19%] Building CXX object lib/CMakeFiles/test-dect2.dir/test_dect2.cc.o

[ 23%] Building CXX object lib/CMakeFiles/test-dect2.dir/qa_dect2.cc.o

[ 26%] Linking CXX executable test-dect2

[ 26%] Built target test-dect2

Scanning dependencies of target _dect2_swig_doc_tag

[ 30%] Building CXX object swig/CMakeFiles/_dect2_swig_doc_tag.dir/_dect2_swig_doc_tag.cpp.o

[ 34%] Linking CXX executable _dect2_swig_doc_tag

[ 34%] Built target _dect2_swig_doc_tag

Scanning dependencies of target dect2_swig_swig_doc

[ 38%] Generating doxygen xml for dect2_swig_doc docs

warning: Tag XML_SCHEMA' at line 1478 of file /Users/alpha/Desktop/gr-dect2/build/swig/dect2_swig_doc_swig_docs/Doxyfile' has become obsolete.

     To avoid this warning please remove this line from your

configuration file or upgrade it using "doxygen -u"

warning: Tag XML_DTD' at line 1484 of file /Users/alpha/Desktop/gr-dect2/build/swig/dect2_swig_doc_swig_docs/Doxyfile' has become obsolete.

     To avoid this warning please remove this line from your

configuration file or upgrade it using "doxygen -u"

[ 42%] Generating python docstrings for dect2_swig_doc

[ 42%] Built target dect2_swig_swig_doc

Scanning dependencies of target _dect2_swig_swig_tag

[ 46%] Building CXX object swig/CMakeFiles/_dect2_swig_swig_tag.dir/_dect2_swig_swig_tag.cpp.o

[ 50%] Linking CXX executable _dect2_swig_swig_tag

[ 50%] Built target _dect2_swig_swig_tag

[ 53%] Generating dect2_swig.tag

Scanning dependencies of target dect2_swig_swig_2d0df

[ 57%] Building CXX object swig/CMakeFiles/dect2_swig_swig_2d0df.dir/dect2_swig_swig_2d0df.cpp.o

[ 61%] Linking CXX executable dect2_swig_swig_2d0df

Swig source

[ 61%] Built target dect2_swig_swig_2d0df

Scanning dependencies of target _dect2_swig

[ 65%] Building CXX object swig/CMakeFiles/_dect2_swig.dir/dect2_swigPYTHON_wrap.cxx.o

[ 69%] Linking CXX shared module _dect2_swig.so

[ 76%] Built target _dect2_swig

Scanning dependencies of target pygen_swig_da4e7

[ 80%] Generating dect2_swig.pyc

[ 84%] Generating dect2_swig.pyo

[ 88%] Built target pygen_swig_da4e7

Scanning dependencies of target pygen_python_2a2b7

[ 92%] Generating init.pyc, console.pyc

[ 96%] Generating init.pyo, console.pyo

[ 96%] Built target pygen_python_2a2b7

Scanning dependencies of target pygen_apps_9a6dd

[ 96%] Built target pygen_apps_9a6dd

Scanning dependencies of target doxygen_target

[100%] Generating documentation with doxygen

warning: Tag XML_SCHEMA' at line 1510 of file /Users/alpha/Desktop/gr-dect2/build/docs/doxygen/Doxyfile' has become obsolete.

     To avoid this warning please remove this line from your

configuration file or upgrade it using "doxygen -u"

warning: Tag XML_DTD' at line 1516 of file /Users/alpha/Desktop/gr-dect2/build/docs/doxygen/Doxyfile' has become obsolete.

     To avoid this warning please remove this line from your

configuration file or upgrade it using "doxygen -u"

[100%] Built target doxygen_target

Andres-iMac:build alpha$ sudo make install

Password:

[ 15%] Built target gnuradio-dect2

[ 26%] Built target test-dect2

[ 34%] Built target _dect2_swig_doc_tag

[ 42%] Built target dect2_swig_swig_doc

[ 50%] Built target _dect2_swig_swig_tag

[ 61%] Built target dect2_swig_swig_2d0df

[ 76%] Built target _dect2_swig

[ 88%] Built target pygen_swig_da4e7

[ 96%] Built target pygen_python_2a2b7

[ 96%] Built target pygen_apps_9a6dd

[100%] Built target doxygen_target

Install the project...

-- Install configuration: "Release"

-- Installing: /usr/local/lib/cmake/dect2/dect2Config.cmake

-- Installing: /usr/local/include/dect2/api.h

-- Installing: /usr/local/include/dect2/phase_diff.h

-- Installing: /usr/local/include/dect2/packet_decoder.h

-- Installing: /usr/local/include/dect2/packet_receiver.h

-- Installing: /usr/local/lib/libgnuradio-dect2.dylib

-- Installing: /usr/local/lib/python2.7/site-packages/dect2/_dect2_swig.so

-- Installing: /usr/local/lib/python2.7/site-packages/dect2/dect2_swig.py

-- Installing: /usr/local/lib/python2.7/site-packages/dect2/dect2_swig.pyc

-- Installing: /usr/local/lib/python2.7/site-packages/dect2/dect2_swig.pyo

-- Installing: /usr/local/include/dect2/dect2/swig/dect2_swig.i

-- Installing: /usr/local/include/dect2/dect2/swig/dect2_swig_doc.i

-- Installing: /usr/local/lib/python2.7/site-packages/dect2/init.py

-- Installing: /usr/local/lib/python2.7/site-packages/dect2/console.py

-- Installing: /usr/local/lib/python2.7/site-packages/dect2/init.pyc

-- Installing: /usr/local/lib/python2.7/site-packages/dect2/console.pyc

-- Installing: /usr/local/lib/python2.7/site-packages/dect2/init.pyo

-- Installing: /usr/local/lib/python2.7/site-packages/dect2/console.pyo

-- Installing: /usr/local/share/gnuradio/grc/blocks/dect2_console.xml

-- Installing: /usr/local/share/gnuradio/grc/blocks/dect2_phase_diff.xml

-- Installing: /usr/local/share/gnuradio/grc/blocks/dect2_packet_decoder.xml

-- Installing: /usr/local/share/gnuradio/grc/blocks/dect2_packet_receiver.xml

-- Installing: /usr/local/share/doc/gr-dect2/xml

-- Installing: /usr/local/share/doc/gr-dect2/xml/packet__receiver__impl_8h.xml

-- Installing: /usr/local/share/doc/gr-dect2/xml/dir_97aefd0d527b934f1d99a682da8fe6a9.xml

-- Installing: /usr/local/share/doc/gr-dect2/xml/classgr_1_1dect2_1_1packet__decoder.xml

-- Installing: /usr/local/share/doc/gr-dect2/xml/index.xml

-- Installing: /usr/local/share/doc/gr-dect2/xml/classgr_1_1dect2_1_1packet__decoder__impl.xml

-- Installing: /usr/local/share/doc/gr-dect2/xml/combine.xslt

-- Installing: /usr/local/share/doc/gr-dect2/xml/phase__diff_8h.xml

-- Installing: /usr/local/share/doc/gr-dect2/xml/phase__diff__impl_8h.xml

-- Installing: /usr/local/share/doc/gr-dect2/xml/packet__decoder_8h.xml

-- Installing: /usr/local/share/doc/gr-dect2/xml/indexpage.xml

-- Installing: /usr/local/share/doc/gr-dect2/xml/compound.xsd

-- Installing: /usr/local/share/doc/gr-dect2/xml/group__block.xml

-- Installing: /usr/local/share/doc/gr-dect2/xml/namespacestd.xml

-- Installing: /usr/local/share/doc/gr-dect2/xml/main__page_8dox.xml

-- Installing: /usr/local/share/doc/gr-dect2/xml/classgr_1_1dect2_1_1packet__receiver.xml

-- Installing: /usr/local/share/doc/gr-dect2/xml/group__defs_8dox.xml

-- Installing: /usr/local/share/doc/gr-dect2/xml/index.xsd

-- Installing: /usr/local/share/doc/gr-dect2/xml/classgr_1_1dect2_1_1phase__diff__impl.xml

-- Installing: /usr/local/share/doc/gr-dect2/xml/dir_a6feadd46a28e32d0017436253cb6206.xml

-- Installing: /usr/local/share/doc/gr-dect2/xml/packet__receiver_8h.xml

-- Installing: /usr/local/share/doc/gr-dect2/xml/classgr_1_1dect2_1_1phase__diff.xml

-- Installing: /usr/local/share/doc/gr-dect2/xml/namespacegr.xml

-- Installing: /usr/local/share/doc/gr-dect2/xml/packet__decoder__impl_8h.xml

-- Installing: /usr/local/share/doc/gr-dect2/xml/structgr_1_1dect2_1_1packet__decoder__impl_1_1part__descriptor__item.xml

-- Installing: /usr/local/share/doc/gr-dect2/xml/api_8h.xml

-- Installing: /usr/local/share/doc/gr-dect2/xml/namespacegr_1_1dect2.xml

-- Installing: /usr/local/share/doc/gr-dect2/xml/classgr_1_1dect2_1_1packet__receiver__impl.xml

-- Installing: /usr/local/share/doc/gr-dect2/xml/dir_d44c64559bbebec7f509842c48db8b23.xml

-- Installing: /usr/local/share/doc/gr-dect2/html

-- Installing: /usr/local/share/doc/gr-dect2/html/inherit_graph_0.md5

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1packet__decoder__impl__inherit__graph.png

-- Installing: /usr/local/share/doc/gr-dect2/html/group__defs_8dox.html

-- Installing: /usr/local/share/doc/gr-dect2/html/splitbar.png

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1packet__receiver__impl.js

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1phase__diff__impl__inherit__graph.map

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1packet__decoder-members.html

-- Installing: /usr/local/share/doc/gr-dect2/html/annotated_dup.js

-- Installing: /usr/local/share/doc/gr-dect2/html/inherit_graph_1.md5

-- Installing: /usr/local/share/doc/gr-dect2/html/dir_a6feadd46a28e32d0017436253cb6206.html

-- Installing: /usr/local/share/doc/gr-dect2/html/doxygen.css

-- Installing: /usr/local/share/doc/gr-dect2/html/dir_d44c64559bbebec7f509842c48db8b23.html

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1phase__diff__inherit__graph.png

-- Installing: /usr/local/share/doc/gr-dect2/html/api_8h.js

-- Installing: /usr/local/share/doc/gr-dect2/html/group__block.html

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__receiver_8h__dep__incl.map

-- Installing: /usr/local/share/doc/gr-dect2/html/phase__diff_8h__incl.md5

-- Installing: /usr/local/share/doc/gr-dect2/html/graph_legend.md5

-- Installing: /usr/local/share/doc/gr-dect2/html/inherit_graph_2.md5

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1packet__receiver__impl.html

-- Installing: /usr/local/share/doc/gr-dect2/html/hierarchy.js

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__decoder_8h__dep__incl.md5

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__receiver_8h__incl.png

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1packet__decoder__inherit__graph.map

-- Installing: /usr/local/share/doc/gr-dect2/html/index.html

-- Installing: /usr/local/share/doc/gr-dect2/html/functions.html

-- Installing: /usr/local/share/doc/gr-dect2/html/sync_off.png

-- Installing: /usr/local/share/doc/gr-dect2/html/phase__diff__impl_8h_source.html

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1packet__receiver__impl__inherit__graph.md5

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1packet__receiver__inherit__graph.map

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__decoder__impl_8h__incl.png

-- Installing: /usr/local/share/doc/gr-dect2/html/modules.html

-- Installing: /usr/local/share/doc/gr-dect2/html/sync_on.png

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__decoder_8h.html

-- Installing: /usr/local/share/doc/gr-dect2/html/api_8h__incl.md5

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__decoder_8h_source.html

-- Installing: /usr/local/share/doc/gr-dect2/html/dir_97aefd0d527b934f1d99a682da8fe6a9_dep.map

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1packet__decoder.js

-- Installing: /usr/local/share/doc/gr-dect2/html/annotated.html

-- Installing: /usr/local/share/doc/gr-dect2/html/phase__diff__impl_8h__incl.md5

-- Installing: /usr/local/share/doc/gr-dect2/html/doc.png

-- Installing: /usr/local/share/doc/gr-dect2/html/phase__diff_8h__dep__incl.map

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1packet__receiver__impl__inherit__graph.png

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__decoder__impl_8h__incl.md5

-- Installing: /usr/local/share/doc/gr-dect2/html/hierarchy.html

-- Installing: /usr/local/share/doc/gr-dect2/html/bc_s.png

-- Installing: /usr/local/share/doc/gr-dect2/html/nav_g.png

-- Installing: /usr/local/share/doc/gr-dect2/html/nav_f.png

-- Installing: /usr/local/share/doc/gr-dect2/html/tabs.css

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__receiver_8h__incl.md5

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__decoder_8h__dep__incl.png

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__receiver__impl_8h__incl.map

-- Installing: /usr/local/share/doc/gr-dect2/html/closed.png

-- Installing: /usr/local/share/doc/gr-dect2/html/phase__diff_8h.html

-- Installing: /usr/local/share/doc/gr-dect2/html/phase__diff__impl_8h__incl.png

-- Installing: /usr/local/share/doc/gr-dect2/html/doxygen.png

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1packet__receiver__impl-members.html

-- Installing: /usr/local/share/doc/gr-dect2/html/api_8h__incl.png

-- Installing: /usr/local/share/doc/gr-dect2/html/tab_s.png

-- Installing: /usr/local/share/doc/gr-dect2/html/api_8h__dep__incl.map

-- Installing: /usr/local/share/doc/gr-dect2/html/inherit_graph_1.png

-- Installing: /usr/local/share/doc/gr-dect2/html/namespacegr.html

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1packet__decoder__impl.html

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__decoder_8h__incl.map

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1phase__diff__impl.html

-- Installing: /usr/local/share/doc/gr-dect2/html/phase__diff__impl_8h.html

-- Installing: /usr/local/share/doc/gr-dect2/html/files.html

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1packet__decoder.html

-- Installing: /usr/local/share/doc/gr-dect2/html/tab_a.png

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1packet__decoder__impl__inherit__graph.md5

-- Installing: /usr/local/share/doc/gr-dect2/html/inherit_graph_0.png

-- Installing: /usr/local/share/doc/gr-dect2/html/phase__diff_8h__incl.png

-- Installing: /usr/local/share/doc/gr-dect2/html/inherit_graph_2.png

-- Installing: /usr/local/share/doc/gr-dect2/html/functions_func.html

-- Installing: /usr/local/share/doc/gr-dect2/html/graph_legend.png

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__receiver__impl_8h.js

-- Installing: /usr/local/share/doc/gr-dect2/html/api_8h.html

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1packet__receiver-members.html

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1phase__diff__inherit__graph.md5

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1packet__receiver.js

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1phase__diff-members.html

-- Installing: /usr/local/share/doc/gr-dect2/html/tab_b.png

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1packet__receiver.html

-- Installing: /usr/local/share/doc/gr-dect2/html/inherit_graph_0.map

-- Installing: /usr/local/share/doc/gr-dect2/html/bdwn.png

-- Installing: /usr/local/share/doc/gr-dect2/html/navtree.css

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__decoder__impl_8h_source.html

-- Installing: /usr/local/share/doc/gr-dect2/html/dir_000002_000000.html

-- Installing: /usr/local/share/doc/gr-dect2/html/namespacegr.js

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__decoder__impl_8h.html

-- Installing: /usr/local/share/doc/gr-dect2/html/navtree.js

-- Installing: /usr/local/share/doc/gr-dect2/html/graph_legend.html

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__decoder_8h__incl.png

-- Installing: /usr/local/share/doc/gr-dect2/html/namespacegr_1_1dect2.html

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1phase__diff__impl__inherit__graph.md5

-- Installing: /usr/local/share/doc/gr-dect2/html/dir_97aefd0d527b934f1d99a682da8fe6a9.html

-- Installing: /usr/local/share/doc/gr-dect2/html/inherit_graph_1.map

-- Installing: /usr/local/share/doc/gr-dect2/html/navtreeindex0.js

-- Installing: /usr/local/share/doc/gr-dect2/html/phase__diff_8h_source.html

-- Installing: /usr/local/share/doc/gr-dect2/html/phase__diff_8h__incl.map

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__receiver_8h__dep__incl.md5

-- Installing: /usr/local/share/doc/gr-dect2/html/inherit_graph_2.map

-- Installing: /usr/local/share/doc/gr-dect2/html/modules.js

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__decoder_8h__dep__incl.map

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1packet__decoder__inherit__graph.md5

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__receiver_8h.html

-- Installing: /usr/local/share/doc/gr-dect2/html/nav_h.png

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1phase__diff__impl-members.html

-- Installing: /usr/local/share/doc/gr-dect2/html/tab_h.png

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1packet__receiver__impl__inherit__graph.map

-- Installing: /usr/local/share/doc/gr-dect2/html/phase__diff_8h__dep__incl.png

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1packet__receiver__inherit__graph.md5

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__decoder__impl_8h.js

-- Installing: /usr/local/share/doc/gr-dect2/html/api_8h__dep__incl.png

-- Installing: /usr/local/share/doc/gr-dect2/html/api_8h__incl.map

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1packet__decoder__impl.js

-- Installing: /usr/local/share/doc/gr-dect2/html/classes.html

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__receiver__impl_8h_source.html

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1packet__decoder__impl-members.html

-- Installing: /usr/local/share/doc/gr-dect2/html/dir_97aefd0d527b934f1d99a682da8fe6a9_dep.md5

-- Installing: /usr/local/share/doc/gr-dect2/html/phase__diff__impl_8h__incl.map

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__receiver__impl_8h__incl.png

-- Installing: /usr/local/share/doc/gr-dect2/html/phase__diff_8h__dep__incl.md5

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1packet__receiver__inherit__graph.png

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__decoder__impl_8h__incl.map

-- Installing: /usr/local/share/doc/gr-dect2/html/namespacegr_1_1dect2.js

-- Installing: /usr/local/share/doc/gr-dect2/html/main__page_8dox.html

-- Installing: /usr/local/share/doc/gr-dect2/html/resize.js

-- Installing: /usr/local/share/doc/gr-dect2/html/open.png

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1packet__decoder__inherit__graph.png

-- Installing: /usr/local/share/doc/gr-dect2/html/globals_defs.html

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__receiver_8h__incl.map

-- Installing: /usr/local/share/doc/gr-dect2/html/functions_type.html

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__receiver__impl_8h__incl.md5

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__receiver_8h_source.html

-- Installing: /usr/local/share/doc/gr-dect2/html/navtreedata.js

-- Installing: /usr/local/share/doc/gr-dect2/html/api_8h_source.html

-- Installing: /usr/local/share/doc/gr-dect2/html/dir_97aefd0d527b934f1d99a682da8fe6a9_dep.png

-- Installing: /usr/local/share/doc/gr-dect2/html/api_8h__dep__incl.md5

-- Installing: /usr/local/share/doc/gr-dect2/html/folderclosed.png

-- Installing: /usr/local/share/doc/gr-dect2/html/files_dup.js

-- Installing: /usr/local/share/doc/gr-dect2/html/dynsections.js

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__decoder_8h__incl.md5

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1phase__diff__impl__inherit__graph.png

-- Installing: /usr/local/share/doc/gr-dect2/html/folderopen.png

-- Installing: /usr/local/share/doc/gr-dect2/html/inherits.html

-- Installing: /usr/local/share/doc/gr-dect2/html/globals.html

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1packet__decoder__impl__inherit__graph.map

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1phase__diff__impl.js

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__receiver_8h__dep__incl.png

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1phase__diff__inherit__graph.map

-- Installing: /usr/local/share/doc/gr-dect2/html/jquery.js

-- Installing: /usr/local/share/doc/gr-dect2/html/packet__receiver__impl_8h.html

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1phase__diff.html

-- Installing: /usr/local/share/doc/gr-dect2/html/classgr_1_1dect2_1_1phase__diff.js

Andres-iMac:build alpha$ sudo ldconfig

sudo: ldconfig: command not found

Andres-iMac:build alpha$ gr

gr2fonttest gr_plot_int gr_psd_plot_i gr_time_plot_c grealpath grolbp

gr_constellation_plot gr_plot_iq gr_psd_plot_s gr_time_plot_f grep grolj4

gr_filter_design gr_plot_psd gr_read_file_metadata gr_time_plot_i gresource grops

gr_modtool gr_plot_psd_c gr_spectrogram_plot gr_time_plot_s grm grotty

gr_plot_char gr_plot_psd_f gr_spectrogram_plot_b gr_time_raster_b grmdir groups

gr_plot_const gr_plot_qt gr_spectrogram_plot_c gr_time_raster_f grn gruncon

gr_plot_fft gr_plot_short gr_spectrogram_plot_f graphicssession grodvi

gr_plot_fft_c gr_psd_plot_b gr_spectrogram_plot_i graphml2gv groff

gr_plot_fft_f gr_psd_plot_c gr_spectrogram_plot_s grcc groffer

gr_plot_float gr_psd_plot_f gr_time_plot_b greadlink grog

Andres-iMac:build alpha$ gr

gr2fonttest gr_plot_int gr_psd_plot_i gr_time_plot_c grealpath grolbp

gr_constellation_plot gr_plot_iq gr_psd_plot_s gr_time_plot_f grep grolj4

gr_filter_design gr_plot_psd gr_read_file_metadata gr_time_plot_i gresource grops

gr_modtool gr_plot_psd_c gr_spectrogram_plot gr_time_plot_s grm grotty

gr_plot_char gr_plot_psd_f gr_spectrogram_plot_b gr_time_raster_b grmdir groups

gr_plot_const gr_plot_qt gr_spectrogram_plot_c gr_time_raster_f grn gruncon

gr_plot_fft gr_plot_short gr_spectrogram_plot_f graphicssession grodvi

gr_plot_fft_c gr_psd_plot_b gr_spectrogram_plot_i graphml2gv groff

gr_plot_fft_f gr_psd_plot_c gr_spectrogram_plot_s grcc groffer

gr_plot_float gr_psd_plot_f gr_time_plot_b greadlink grog

Andres-iMac:build alpha$ ls

CMakeCache.txt Makefile get_swig_deps.py python

CMakeDoxyfile.in apps grc python_compile_helper.py

CMakeDoxygenDefaults.cmake cmake_install.cmake include swig

CMakeFiles cmake_uninstall.cmake install_manifest.txt

CTestTestfile.cmake docs lib

Andres-iMac:build alpha$ cd ..

Andres-iMac:gr-dect2 alpha$ ls

AUTHORS COPYING apps cmake examples include python

CMakeLists.txt README build docs grc lib swig

Andres-iMac:gr-dect2 alpha$ cd apps/

Andres-iMac:apps alpha$ ls

CMakeLists.txt

Andres-iMac:apps alpha$ cd ..

Andres-iMac:gr-dect2 alpha$ gnuradio-companion

<<< Welcome to GNU Radio Companion 3.7.12.0 >>>

Block paths:

/opt/local/share/gnuradio/grc/blocks

Loading: "/Users/alpha/Desktop/gr-dect2/grc/dect2_Hackrf.grc"

Done

AttributeError("'module' object has no attribute 'QWidget'",)

AttributeError("'module' object has no attribute 'QWidget'",)

AttributeError("'module' object has no attribute 'QWidget'",)

AttributeError("'module' object has no attribute 'QWidget'",)

AttributeError("'module' object has no attribute 'QWidget'",)

AttributeError("'module' object has no attribute 'QWidget'",)

AttributeError("'module' object has no attribute 'QWidget'",)

AttributeError("'module' object has no attribute 'QWidget'",)

AttributeError("'module' object has no attribute 'QWidget'",)

AttributeError("'module' object has no attribute 'QWidget'",)

AttributeError("'module' object has no attribute 'QWidget'",)

AttributeError("'module' object has no attribute 'QWidget'",)

Loading: "/Users/alpha/Desktop/gr-dect2/grc/dect2_Hackrf.grc"

Done

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/grc/main.py:54: GtkWarning: Attempting to store changes into `/Users/alpha/.local/share/recently-used.xbel', but failed: Datei »/Users/alpha/.local/share/recently-used.xbel.1T3SZZ« konnte nicht angelegt werden: No such file or directory

gtk.main()

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/grc/main.py:54: GtkWarning: Attempting to set the permissions of `/Users/alpha/.local/share/recently-used.xbel', but failed: No such file or directory

gtk.main()

Generating: '/Users/alpha/Desktop/gr-dect2/grc/top_block.py'

Executing: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u /Users/alpha/Desktop/gr-dect2/grc/top_block.py

Traceback (most recent call last):

File "/Users/alpha/Desktop/gr-dect2/grc/top_block.py", line 35, in

import dect2

File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/dect2/init.py", line 46, in

from console import *

File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/dect2/console.py", line 27, in

from PyQt5 import QtCore, QtGui, QtWidgets

RuntimeError: the PyQt5.QtCore and PyQt4.QtCore modules both wrap the QObject class

Done (return code 1)

Am Mi., 10. Apr. 2019 um 01:15 Uhr schrieb deHakkelaar < [email protected]>:

When have older version of GNURadio depending on QT4:

$ gnuradio-companion --version GNU Radio Companion 3.7.10

$ apt-cache depends gnuradio gnuradio [..] Depends: python-qt4 [..]

Below is the right order to proceed:

git clone git://github.com/pavelyazev/gr-dect2.git cd gr-dect2/

Below one switches to the older QT4 branch:

git checkout pyqt4 mkdir build cd build cmake ../ make sudo make install sudo ldconfig

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pavelyazev/gr-dect2/issues/10#issuecomment-481474293, or mute the thread https://github.com/notifications/unsubscribe-auth/AJXimC-eruSztE-IMEqS4L2LamESPtnbks5vfR8LgaJpZM4a7Z2m .

aneitzel avatar Apr 10 '19 11:04 aneitzel

note that sudo ldconfig as last step is not found as a valid cli command...

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 9.8 (stretch)
Release:        9.8
Codename:       stretch
$ sudo ldconfig --help
Usage: ldconfig [OPTION...]
Configure Dynamic Linker Run Time Bindings.
[..]
$ sudo which ldconfig
/sbin/ldconfig
$ dpkg -S /sbin/ldconfig
libc-bin: /sbin/ldconfig

libc-bin is the package containing ldconfig for Debian Stretch and needs to be run as root.

deHakkelaar avatar Apr 10 '19 22:04 deHakkelaar

RuntimeError: the PyQt5.QtCore and PyQt4.QtCore modules both wrap the

You still have QT5 installed conflicting with QT4 (I believe). For Debian Stretch, I needed to remove by doing:

sudo apt remove python-pyqt5

And maybe more QT5 related stuff needs to be removed.

deHakkelaar avatar Apr 10 '19 22:04 deHakkelaar