Skip to content

Instantly share code, notes, and snippets.

@citizenrich
Last active August 31, 2022 14:28
Show Gist options
  • Save citizenrich/7af9133be0e78678fb98b8470e610396 to your computer and use it in GitHub Desktop.
Save citizenrich/7af9133be0e78678fb98b8470e610396 to your computer and use it in GitHub Desktop.
pybombs on macos with python3.7

pybombs:

cd
rm -rf .pybombs
rm -rf prefix
pip3 install pybombs
# a lot of other deps are installed but not listed
pybombs recipes add gr-recipes git+https://github.com/gnuradio/gr-recipes.git  
pybombs recipes add gr-etcetera git+https://github.com/gnuradio/gr-etcetera.git
pybombs prefix init ~/prefix
# then edit: code ~/prefix/setup_env.sh
# when you change paths to python3.7 this results in duplicate paths, so end result is:
# export PYTHONPATH="/Users/richard/prefix/python:/Users/richard/prefix/lib/python3.7/dist-packages:/Users/richard/prefix/lib64/python3.7/dist-packages:$PYTHONPATH"
# then edit: code ~/.pybombs/recipes/gr-recipes/gnuradio.lwr
# cmake options are: -DQWT_INCLUDE_DIRS=${qt_dir}/lib/qwt.framework/Versions/Current/Headers -DQWT_LIBRARIES=${qt_dir}/lib/qwt.framework/Versions/Current/qwt -DENABLE_CTRLPORT_THRIFT=OFF -DPYTHON_EXECUTABLE=/usr/local/bin/python3
$ pybombs install gnuradio
PyBOMBS.ConfigManager - INFO - Prefix Python version is: 3.7.3
PyBOMBS - INFO - PyBOMBS Version 2.3.3
PyBOMBS.install_manager - INFO - Phase 1: Creating install tree and installing binary packages:
Password:
Requirement already satisfied: wxPython in /usr/local/lib/python3.7/site-packages (4.0.4)
Requirement already satisfied: six in /usr/local/lib/python3.7/site-packages (from wxPython) (1.12.0)
Requirement already satisfied: Pillow in /usr/local/lib/python3.7/site-packages (from wxPython) (6.0.0)
Requirement already satisfied: lxml in /usr/local/lib/python3.7/site-packages (4.3.3)
Collecting PyGTK
  Using cached https://files.pythonhosted.org/packages/7c/18/fa4f2de77500dd62a314fd845ff6e903ac2ce551164cb421c5750969f799/pygtk-2.24.0.tar.bz2
    Complete output from command python setup.py egg_info:
    ********************************************************************
    * Building PyGTK using distutils is only supported on windows. *
    * To build PyGTK in a supported way, read the INSTALL file.    *
    ********************************************************************

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-install-t_nloii6/PyGTK/
Requirement already satisfied: PythonQwt in /usr/local/lib/python3.7/site-packages (0.5.5)
Requirement already satisfied: NumPy>=1.3 in /usr/local/lib/python3.7/site-packages (from PythonQwt) (1.16.3)
PyBOMBS.install_manager - ERROR - Package has no install method: python
@michaelld
Copy link

Hmm ... interesting. Let me do the same & see if I get the same issue & if so look into fixing it. I think there was a special pybombs branch for Py3 somewhere ...

@citizenrich
Copy link
Author

I built pybombs from source of master and redid the process and it was the same result.

@citizenrich
Copy link
Author

@michaelld any luck?

@michaelld
Copy link

Sorry been occupied by other work. I will get to this ... please poke me every now & then via email. Thx for your patience & persistence here!

@michaelld
Copy link

Can you tag the other gist we're working on here? Makes it much easier to find!

@michaelld
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment