gnuradio / pybombs

PyBOMBS (Python Build Overlay Managed Bundle System) is the GNU Radio install management system for resolving dependencies and pulling in out-of-tree projects.
https://gnuradio.org
GNU General Public License v3.0
416 stars 189 forks source link

Error installing package uhd after running, `pybombs prefix init ~/gr38 -R gnuradio-default` #613

Open capsulecorplab opened 2 years ago

capsulecorplab commented 2 years ago

After running pybombs auto-config and pybombs recipes add-defaults, pybombs prefix init ~/gr38 -R gnuradio-default encounters an error installing package uhd

[INFO] Prefix Python version is: 3.8.7
[INFO] PyBOMBS Version 2.3.5
[INFO] Creating directory `/home/captainpike/gr38'
[INFO] Prefix Python version is: 3.8.7
[INFO] Creating new config file /home/captainpike/gr38/.pybombs/config.yml
[INFO] Prefix Python version is: 3.8.7
[INFO] Installing default packages for prefix...
[INFO] 
  - gnuradio
[INFO] Install python-apt to speed up apt processing.
[INFO] Phase 1: Creating install tree and installing binary packages:
Install tree:
|
\- gnuradio
   |
   +- libvolk
   |
   \- uhd
[INFO] Phase 1 complete: All binary dependencies installed.
[INFO] Phase 2: Recursively installing source packages to prefix:
[INFO] Installing package: uhd
[INFO] Install python-apt to speed up apt processing.
Cloning into 'uhd'...
remote: Enumerating objects: 1286, done.
remote: Counting objects: 100% (693/693), done.
remote: Total 1286 (delta 693), reused 693 (delta 693), pack-reused 593
Receiving objects: 100% (1286/1286), 1.07 MiB | 2.91 MiB/s, done.
Resolving deltas: 100% (898/898), completed with 210 local objects.
[INFO] Install python-apt to speed up apt processing.
Configuring: (100%) [=======================================================================================================================]
[WARNING] Configuration failed. Re-trying with higher verbosity.
-- 
-- Configuring the Python interpreter...
-- Manually determining build Python version...
-- Python interpreter: /home/captainpike/.pyenv/versions/3.8.7/bin/python3.8 Version: 3.8.7
-- Override with: -DPYTHON_EXECUTABLE=<path-to-python>
-- Manually determining runtime Python version...
-- Python runtime interpreter: /home/captainpike/.pyenv/versions/3.8.7/bin/python3.8 Version: 3.8.7
-- Override with: -DRUNTIME_PYTHON_EXECUTABLE=<path-to-python>
-- Finding Python Libraries...
-- Python Libraries: /home/captainpike/.pyenv/versions/3.8.7/lib/libpython3.8.a
-- Python include directories: /home/captainpike/.pyenv/versions/3.8.7/include/python3.8
-- Operating on release branch (UHD-3.15.LTS).
-- Using UHD Images Directory: /home/captainpike/gr38/share/uhd/images
-- 
-- Configuring Boost C++ Libraries...
-- 
-- Checking for Boost version 1.58 or greater
--   Looking for required Boost components...
--   Enabling Boost Error Code Header Only
--     Disabling boost::asio use of std::string_view
--   Boost version: 1.71.0
--   Boost include directories: /usr/include
--   Boost library directories: /usr/lib/x86_64-linux-gnu
--   Boost libraries: Boost::chrono;Boost::date_time;Boost::filesystem;Boost::program_options;Boost::regex;Boost::unit_test_framework;Boost::serialization;Boost::thread;Boost::system
-- Looking for Boost version 1.58 or greater - found
-- 
-- Python checking for Python version 2.7 or greater
-- Python checking for Python version 2.7 or greater - found
-- 
-- Python checking for Mako templates 0.4.2 or greater
-- Python checking for Mako templates 0.4.2 or greater - "import mako" failed
-- 
-- Python checking for requests 2.0 or greater
-- Python checking for requests 2.0 or greater - found
-- 
-- Python checking for numpy 1.7 or greater
-- Python checking for numpy 1.7 or greater - found
-- 
-- Configuring LibUHD support...
--   Dependency Boost_FOUND = TRUE
--   Dependency HAVE_PYTHON_PLAT_MIN_VERSION = TRUE
--   Dependency HAVE_PYTHON_MODULE_MAKO = FALSE
CMake Error at cmake/Modules/UHDComponent.cmake:59 (message):
  Dependencies for required component LibUHD not met.
Call Stack (most recent call first):
  CMakeLists.txt:363 (LIBUHD_REGISTER_COMPONENT)

-- Configuring incomplete, errors occurred!
See also "/home/captainpike/gr38/src/uhd/host/build/CMakeFiles/CMakeOutput.log".
See also "/home/captainpike/gr38/src/uhd/host/build/CMakeFiles/CMakeError.log".
[ERROR] Configuration failed after running at least twice.
[ERROR] Problem occurred while building package uhd:
Configuration failed
[ERROR] Error installing package uhd. Aborting.
velichkov commented 2 years ago

Hi @capsulecorplab,

-- Python interpreter: /home/captainpike/.pyenv/versions/3.8.7/bin/python3.8 Version: 3.8.7

It looks you are using pyenv but I don't think pybombs has support for it. Try disabling it and use the python that comes from your distribution.

capsulecorplab commented 2 years ago

Hi @capsulecorplab,

-- Python interpreter: /home/captainpike/.pyenv/versions/3.8.7/bin/python3.8 Version: 3.8.7

It looks you are using pyenv but I don't think pybombs has support for it. Try disabling it and use the python that comes from your distribution.

Hi @velichkov ! I reinstalled pybombs from source in a virtual environment, using the apt installed python3.8-venv, and reran the aforementioned steps. Getting a slightly different error now #614