Closed lusiaold closed 4 years ago
Hi @PawelPleskaczynski,
98% tests passed, 6 tests failed out of 349 Total Test time (real) = 145.43 sec The following tests FAILED: 153 - qa_cpp_py_binding (Failed) 154 - qa_cpp_py_binding_set (Failed) 155 - qa_ctrlport_probes (Failed) 194 - qa_skiphead (Failed) 202 - qa_tag_share (Failed) 331 - qa_qtgui (Failed) Errors while running CTest make: *** [Makefile:152: test] Error 8
Run ctest --output-on-failure
from the build directory and provide the output.
And after running the
gnuradio-companion
command in the console I got this error message:
You are installing in /usr/
prefix (the -DCMAKE_INSTALL_PREFIX=/usr
argument) and not in /usr/local/
so try adding /usr/lib/python2.7/dist-packages
to the PYTHONPATH
instead.
I'm using Manjaro Linux with both Python 3.8 and Python 2.7 installed, and with every needed dependency as well.
The dist-packages
is a Debian/Ubuntu specific thing and Manjaro is based on Arch so most probably gnuradio is installed in site-packages
on your system. You could find the location with
$ python2 -c "from distutils import sysconfig; print sysconfig.get_python_lib(plat_specific=True, prefix='')"
$ find /usr -name FlowGraph.py
Hi @velichkov, thank you for responding!
I tried to launch gnuradio-companion
with /usr/lib/python2.7/dist-packages
in PYTHONPATH
, but I got the same error message. I ran the python2
command you provided and got this output:
lib/python2.7/site-packages
and then I ran the find
command:
/usr/lib/python3.8/site-packages/gnuradio/grc/core/FlowGraph.py
/usr/lib/python3.8/site-packages/gnuradio/grc/gui/FlowGraph.py
When I navigated to /lib/python2.7/site-packages
I couldn't find gnuradio package, but I could find it in /usr/lib/python2.7/dist-packages
, I have no idea what's going on.
I tried to launch
gnuradio-companion
with/usr/lib/python2.7/dist-packages
inPYTHONPATH
, but I got the same error message. I ran thepython2
command you provided and got this output:lib/python2.7/site-packages
and then I ran the
find
command:/usr/lib/python3.8/site-packages/gnuradio/grc/core/FlowGraph.py /usr/lib/python3.8/site-packages/gnuradio/grc/gui/FlowGraph.py
Despite the fact that you've configured it with python2.7 it has been built and installed for python3.8. The cmake has a cache that sometimes could cause problems. First uninstall this, then remove the whole build directory, create it again and reinstall from scratch
cd build
sudo make uninstall
cd ..
rm -rvf build
mkdir build
cd build
cmake -DPYTHON_EXECUTABLE=/usr/bin/python2.7 -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_GRC=ON -DENABLE_GR_QTGUI=ON -DENABLE_INTERNAL_VOLK=OFF DENABLE_GR_CTRLPORT=OFF ../
Before building make sure the PYTHON_EXECUTABLE
is set correctly in the CMakeCache.txt
grep PYTHON_EXECUTABLE CMakeCache.txt
make
sudo make install
When I navigated to
/lib/python2.7/site-packages
I couldn't find gnuradio package, but I could find it in/usr/lib/python2.7/dist-packages
, I have no idea what's going on.
As you are not using Debian it has been installed in site-packages
and that's OK. It's in python3.8
subdirectory and not python2.7
and that's why python2 could not find it. You need to reinstall it in /usr/lib/python2.7/site-packages
153/349 Test #153: qa_cpp_py_binding ..................................***Failed 0.22 sec Traceback (most recent call last): File "/home/pawel/gnuradio/gr-blocks/python/blocks/qa_cpp_py_binding.py", line 30, in
from gnuradio.ctrlport import GNURadio ImportError: No module named ctrlport 194/349 Test #194: qa_skiphead ........................................***Failed 0.54 sec /home/pawel/gnuradio/build/gr-blocks/python/blocks/qa_skiphead_test.sh: line 9: 13735 Segmentation fault (core dumped) /usr/bin/python2.7 -B /home/pawel/gnuradio/gr-blocks/python/blocks/qa_skiphead.py
202/349 Test #202: qa_tag_share .......................................***Failed 0.49 sec /home/pawel/gnuradio/build/gr-blocks/python/blocks/qa_tag_share_test.sh: line 9: 14064 Segmentation fault (core dumped) /usr/bin/python2.7 -B /home/pawel/gnuradio/gr-blocks/python/blocks/qa_tag_share.py
Let's first fix the python 2/3 problem and then we could take care of these tests if they still fail.
Okay, I'll try this right now
Okay, it's done. Now I can launch gnuradio-companion
with a blank project, but when I add QT GUI blocks, the program crashes.
Okay, it's done. Now I can launch
gnuradio-companion
with a blank project,
:+1:
but when I add QT GUI blocks, the program crashes. Here's output of
ctest
again: 191/346 Test #191: qa_skiphead ........................................***Failed 0.56 sec /home/pawel/gnuradio/build/gr-blocks/python/blocks/qa_skiphead_test.sh: line 9: 2382 Segmentation fault (core dumped) /usr/bin/python2.7 -B /home/pawel/gnuradio/gr-blocks/python/blocks/qa_skiphead.py
You need to take a backtrace with gdb
. Open /home/pawel/gnuradio/build/gr-blocks/python/blocks/qa_skiphead_test.sh
and change the last line to
gdb --ex run --args /usr/bin/python2.7 -B /home/pawel/gnuradio/gr-blocks/python/blocks/qa_skiphead.py
Then in the terminal execute the qa_skiphead_test.sh
and when it crashes you will see the (gdb)
prompt, execute bt
command and provide the full output.
If it does not print filenames and line numbers you may need to rebuild with -DCMAKE_BUILD_TYPE=RelWithDebInfo
199/346 Test #199: qa_tag_share .......................................***Failed 0.49 sec /home/pawel/gnuradio/build/gr-blocks/python/blocks/qa_tag_share_test.sh: line 9: 2714 Segmentation fault (core dumped) /usr/bin/python2.7 -B /home/pawel/gnuradio/gr-blocks/python/blocks/qa_tag_share.py
328/346 Test #328: qa_qtgui ...........................................***Failed 0.41 sec /home/pawel/gnuradio/build/gr-qtgui/python/qtgui/qa_qtgui_test.sh: line 9: 21730 Segmentation fault (core dumped) /usr/bin/python2.7 -B /home/pawel/gnuradio/gr-qtgui/python/qtgui/qa_qtgui.py
Same procedure as above for qa_tag_share_test.sh
and qa_qtgui_test.sh
scripts.
Okay, here are the outputs
qa_skipahead_test.sh
:Thread 1 "python2.7" received signal SIGSEGV, Segmentation fault. 0x00007ffff6e3ea96 in pmt::is_bool(boost::intrusive_ptr<pmt::pmt_base>) () from /home/pawel/gnuradio/build/gnuradio-runtime/lib/pmt/libgnuradio-pmt-3.7.13.5.so.0.0.0 (gdb) bt #0 0x00007ffff6e3ea96 in pmt::is_bool(boost::intrusive_ptr<pmt::pmt_base>) () from /home/pawel/gnuradio/build/gnuradio-runtime/lib/pmt/libgnuradio-pmt-3.7.13.5.so.0.0.0 #1 0x00007ffff427936f in _wrap_is_bool () from /home/pawel/gnuradio/build/gnuradio-runtime/swig/_pmt_swig.so #2 0x00007ffff7c4ed8b in PyEval_EvalFrameEx () from /usr/lib/libpython2.7.so.1.0
No file names and line numbers unfortunately. Could you do a clean rebuild with -DCMAKE_BUILD_TYPE=RelWithDebInfo
and then take again a backtrace.
qa_tag_share_test.sh
:Thread 1 "python2.7" received signal SIGSEGV, Segmentation fault. 0x00007ffff6e3ea96 in pmt::is_bool(boost::intrusive_ptr<pmt::pmt_base>) () from /home/pawel/gnuradio/build/gnuradio-runtime/lib/pmt/libgnuradio-pmt-3.7.13.5.so.0.0.0 (gdb) bt #0 0x00007ffff6e3ea96 in pmt::is_bool(boost::intrusive_ptr<pmt::pmt_base>) () from /home/pawel/gnuradio/build/gnuradio-runtime/lib/pmt/libgnuradio-pmt-3.7.13.5.so.0.0.0 #1 0x00007ffff427936f in _wrap_is_bool () from /home/pawel/gnuradio/build/gnuradio-runtime/swig/_pmt_swig.so
It's similar to the above one.
qa_qtgui_test.sh
:Program received signal SIGSEGV, Segmentation fault. 0x00007fffef9f86e8 in QMetaObject::className() const () from /usr/lib/libQt5Core.so.5 (gdb) bt #0 0x00007fffef9f86e8 in QMetaObject::className() const () at /usr/lib/libQt5Core.so.5 #1 0x00007ffff04e3cf8 in () at /usr/lib/libQt5Widgets.so.5 #2 0x00007ffff047f997 in () at /usr/lib/libQt5Widgets.so.5
Could you install the Qt5 debug info package/symobls and then take again a backtrace. I'm not familiar with Arch/Manjaro linux and I don't know exactly how to do it.
On fedora you could install the debug info with sudo debuginfo-install qt5-qtbase-devel
and that installs the qt5-qtbase-devel-debuginfo
package.
Oh, I thought this version of GNU Radio uses PyQt4? I have PyQt4 installed for Python 2.7, but I didn't install PyQt5. I'll try to do that first
Well, it crashes anyways, so I'll do what you wrote
Done, but unfortunately there are no debug packages in Arch/Manjaro repositories
Would it be possible to reformat your posts and use <details><summary>
blocks as these long backtrackes make the discussion hard to follow
<details>
<summary>Click to expand</summary>
whatever
</details>
unfortunately there are no debug packages in Arch/Manjaro repositories
See:
Okay, I reformatted my posts, sorry for the trouble. I'll read articles you linked and I'll try to install debug packages (weirdly, when I was looking for Qt debug package with my AUR helper, it didn't come up, so I thought it just wasn't present)
Hi @PawelPleskaczynski,
I reformatted my posts, sorry for the trouble.
Thanks.
I was able to reproduce the failure in qa_skiphead
and qa_tag_share
tests, and applying d6e217cbc00ec0333ba030ab2d84c31b7dbb77d5 on maint-3.7
branch resolve the problem.
git cherry-pick d6e217cbc00ec0333ba030ab2d84c31b7dbb77d5
I thought this version of GNU Radio uses PyQt4?
I don't know. I'm not able to reproduce the failure in qa_qtgui_test
:(, on my system this test seems to not load this libQt5Widgets.so.5
library.
Hi @velichkov, I'll try to apply this commit tomorrow and I'll let you know if it helped to solve these two failed tests. I'm not sure about the Qt failure though, maybe there's something wrong with my Linux installation? I'll try it on a different system in a VM. Anyways, thank you very much for your help!
Hi @velichkov,
I managed to successfully build GNU Radio with GRC from source in Kubuntu. Everything works well, including Qt GUI, and 99% of the tests were passed. qa_zeromq_pub
, qa_zeromq_pubsub
, qa_zeromq_pushpull
, qa_zeromq_reqrep
and qa_zeromq_sub
failed, but it doesn't seem to mess with program's behavior, at least for my usage. It seems that I had to overlook installation of some dependencies on my main Manjaro Linux installation. Thank you very much for help, I think this issue can be closed
Hello, I have a small problem with GNU Radio Companion. I built everything from source using this command:
after cloning this repository's
maint-3.7
branch. I want version 3.7 because I need gr-noaa blocks. Everything was built correctly, but after runningmake test
I got this output:And after running the![image](https://user-images.githubusercontent.com/18142313/71695197-ad68a880-2db1-11ea-9bb9-d6d44bac530a.png)
gnuradio-companion
command in the console I got this error message:I'm using Manjaro Linux with both Python 3.8 and Python 2.7 installed, and with every needed dependency as well. Should I attach more things to help troubleshoot the problem?