Hi All: OS : Linux Mint 18.3, 64 bits.
A similar problem is here: https://lists.gnu.org/archive/html/discuss-gnuradio/2017-01/msg00212.html But there is no solution, yet. Here are steps I used to install gnuradio using pybombs in Anaconda environment using guidance from https://www.gnuradio.org/blog/pybombs-the-what-the-how-and-the-why and https://github.com/gnuradio/pybombs/ : # I am using python 2.7 since gnuradio is not available for python 3. # create virtual env with packages pip, python27, ... conda create -n gradiopy27 pip python=2.7 # To activate this environment, use conda activate gradiopy27 #Now I am in gradiopy27 environment from hereon. (gradiopy27) $ pip install --upgrade pip (gradiopy27) $ pip install pybombs # https://www.gnuradio.org/blog/pybombs-the-what-the-how-and-the-why (gradiopy27) $ pybombs auto-config (gradiopy27) $ pybombs recipes add-defaults (gradiopy27) $ pybombs recipes add gr-recipes git+ https://github.com/gnuradio/gr-recipes.git (gradiopy27) $ mkdir gr37prefix #do these imports first to avoid failed import commands in pybombs # See mako import error here: https://github.com/gnuradio/pybombs/issues/341 (gradiopy27) $ conda install numpy (gradiopy27) $ conda install mako (gradiopy27) $ conda install cheetah (gradiopy27) $ conda install -c ska pygtk # But this does not work? Explained below # pybombs command below gave errror "-- Python checking for pygtk >= 2.10.0 - not found" pybombs prefix init -a default gr37prefix/default/ -R gnuradio-default #===================== #Here is why: pybombs looks for -- Python checking for pygtk >= 2.10.0 - not found # I now check for what is imported by Python 2 (gradiopy27) ~ $ python Python 2.7.15 |Anaconda, Inc.| (default, May 1 2018, 23:32:55) [GCC 7.2.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pygtk as pygtk *# Here is a possible source of the problem* >>> pygtk._get_available_versions() {'2.0': '/home/ml/anaconda3/envs/gradiopy27/lib/python2.7/site-packages/gtk-2.0'} # However, I double check anaconda's installed pygtk like so: (gradiopy27) ~ $ conda search -c ska pygtk Loading channels: done # Name Version Build Channel pygtk *2.16.0* 0 ska pygtk *2.16.0* 1 ska (gradiopy27) ~ $ conda install -c ska pygtk=2.16 # forcing version Solving environment: done # All requested packages already installed. # I still get same errors when running pybombs like so: # pybombs prefix init -a default gr37prefix/default/ -R gnuradio-default # Here us location of pygtk for python 2 (gradiopy27) ~ $ locate pygtk | grep python2 /usr/lib/python2.7/dist-packages/pygtk.pth /usr/lib/python2.7/dist-packages/pygtk.py /usr/lib/python2.7/dist-packages/pygtk.pyc ... ... /usr/lib/python2.7/dist-packages/pygtkcompat/pygtkcompat.pyc # As a result, I get this pybomb install errors: ... ... -- Configuring incomplete, errors occurred! See also "/home/ml/gr37prefix/default/src/gnuradio/build/CMakeFiles/CMakeOutput.log". See also "/home/ml/gr37prefix/default/src/gnuradio/build/CMakeFiles/CMakeError.log". PyBOMBS.Packager.source - ERROR - Configuration failed after running at least twice. PyBOMBS.Packager.source - ERROR - Problem occurred while building package gnuradio: Configuration failed PyBOMBS.install_manager - ERROR - Error installing package gnuradio. *Aborting*. #====================== Summary of problem: Installed latest pygtk version is 2.16, but imported version inside python interpreter is 2.0. Pybombs needs 2.10 or higher. How do I fix this problem? Thank you in advance * Signature:* Live Long And Prosper, "Hoe-Phuan" Ng (First name is "Hoe-Phuan")
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio