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 <michael.dick...@ettus.com> Date: Monday, September 16, 2019 at 5:21 PM To: Mark Koenig <mark.koe...@iubelttechnologies.com> Cc: "discuss-gnuradio@gnu.org" <discuss-gnuradio@gnu.org> Subject: Re: [Discuss-gnuradio] Error with gnuradio 3.8 and python 3 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 <mark.koe...@iubelttechnologies.com<mailto:mark.koe...@iubelttechnologies.com>> wrote: Hello, I am trying to build a module and I keep seeing the error below during cmake. Any deas? #9 3.713 -- Found VOLK: Volk::volk #9 3.729 -- Checking for module 'thrift' #9 3.761 -- Found thrift, version 0.10.0 #9 3.840 CMake Error at /opt/truearrow/6.3/lib/cmake/gnuradio/FindTHRIFT.cmake:68 (GR_PYTHON_CHECK_MODULE): #9 3.840 Unknown CMake command "GR_PYTHON_CHECK_MODULE". #9 3.840 Call Stack (most recent call first): #9 3.840 /usr/share/cmake-3.10/Modules/CMakeFindDependencyMacro.cmake:48 (find_package) #9 3.840 /opt/truearrow/6.3/lib/cmake/gnuradio/gnuradio-runtimeConfig.cmake:24 (find_dependency) #9 3.840 /opt/truearrow/6.3/lib/cmake/gnuradio/GnuradioConfig.cmake:45 (include) #9 3.840 CMakeLists.txt:23 (find_package) #9 3.840 #9 3.840 #9 3.842 -- Configuring incomplete, errors occurred! #9 3.842 See also "/workspaces/ta/gr-vrt/Release/CMakeFiles/CMakeOutput.log". #9 3.842 See also "/workspaces/ta/gr-vrt/Release/CMakeFiles/CMakeError.log". #9 3.849 [ Build gr-vrt (Release) FAILED with error code 1 ] Thank you Mark _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org<mailto:Discuss-gnuradio@gnu.org> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio -- Michael Dickens, Mac OS X Programmer Ettus Research Technical Support Email: supp...@ettus.com<mailto:supp...@ettus.com> Web: http://www.ettus.com
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio