|
From: | Mark Koenig |
Subject: | Re: [Discuss-gnuradio] Error with gnuradio 3.8 and python 3 |
Date: | Wed, 18 Sep 2019 12:39:02 +0000 |
Michael, On line 37, I see the following text. set(ENABLE_PYTHON ON CACHE BOOL “Enable Python & Swig”) So it looks like it is enabled. I added ‘include(GrPython)’ to my CMakeLists.txt file and now it is pulling the wrong python interpreter. I want to use Python 3. #9 2.642 -- Found PythonInterp: /usr/bin/python (found version "2.7.15")
#9 2.652 -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable exact version "2.7.15+")
#9 2.688 -- Found SWIG: /usr/bin/swig3.0 (found version "3.0.12")
#9 2.693 -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found version "2.7.15+") Further down my dockerfile output I am seeing the following, which I believe is because CMake is using the wrong python interpreter. -- Checking for module 'thrift' #9 3.454 -- Found thrift, version 0.10.0 #9 3.553 -- Python checking for Thrift - not found #9 3.555 -- Could NOT find THRIFT (missing: PYTHON_THRIFT_FOUND THRIFT_FOUND)
#9 3.561 CMake Warning at CMakeLists.txt:24 (find_package): #9 3.561 Found package configuration file: #9 3.561 #9 3.561 /opt/truearrow/6.3/lib/cmake/gnuradio/GnuradioConfig.cmake #9 3.561 #9 3.561 but it set Gnuradio_FOUND to FALSE so package "Gnuradio" is considered to #9 3.561 be NOT FOUND. Reason given by package: #9 3.561 #9 3.561 The following imported targets are referenced, but are missing: #9 3.561 gnuradio::gnuradio-runtime Any help would be greatly appreciated. From: Michael Dickens <address@hidden> Hi Mark - Interesting issue. Is SWIG/Python -not- enabled in your GR install? Following the code, that could cause the error you're seeing. If you look through the file "/opt/truearrow/6.3/lib/cmake/gnuradio/GnuradioConfig.cmake", line
37 will show whether ENABLE_PYTHON is enabled or not. - MLD On Mon, Sep 16, 2019 at 2:57 PM Mark Koenig <address@hidden> wrote:
-- Michael Dickens, Mac OS X Programmer |
[Prev in Thread] | Current Thread | [Next in Thread] |