pybombs
pybombs copied to clipboard
pygtk >= 2.10.0 - not found
When I install using pybombs prefix init ~/prefix -a myprefix -R gnuradio-default
, pybombs fails to find pygtk.
I have tried installing pygtk through conda using the following conda packages:
conda install -c jochym pygtk
conda install -c ska pygtk
conda install -c ostrokach gtk
Each time after installing through conda, python -c "import pygtk"
works, but the pybombs installer says Python checking for pygtk >= 2.10.0 - not found
.
I am on Ubuntu 16.04, Python 2.7.15 from Anaconda, and trying to build pybombs from commit f8a198a3aa8abb4c68aba3158c2c6f82013d05db.
Here's my full pybombs installation output:
(siglab) rytse@SEDRSSHYPRES:~/usrlibs/pybombs$ pybombs prefix init ~/prefix -a myprefix -R gnuradio-default
PyBOMBS.ConfigManager - INFO - Prefix Python version is: 2.7.15
PyBOMBS - INFO - PyBOMBS Version 2.3.3a0
PyBOMBS.prefix - WARNING - There already is a prefix in `/home/rytse/prefix'.
Continue using this path Y/[N]? y
PyBOMBS.ConfigManager - INFO - Prefix Python version is: 2.7.15
Alias `myprefix' already exists, overwrite Y/[N]? y
PyBOMBS.ConfigManager - INFO - Prefix Python version is: 2.7.15
PyBOMBS.prefix - INFO - Installing default packages for prefix...
PyBOMBS.prefix - INFO -
- gnuradio
PyBOMBS.Packager.apt - INFO - Install python-apt to speed up apt processing.
PyBOMBS.install_manager - INFO - Phase 1: Creating install tree and installing binary packages:
Install tree:
|
\- gnuradio
PyBOMBS.install_manager - INFO - Phase 2: Recursively installing source packages to prefix:
PyBOMBS.install_manager - INFO - Installing package: gnuradio
PyBOMBS.Packager.apt - INFO - Install python-apt to speed up apt processing.
PyBOMBS.Packager.source - WARNING - Build dir already exists: /home/rytse/prefix/src/gnuradio/build
Configuring: (100%) [==================================================================================================================]
PyBOMBS.Packager.source - WARNING - Configuration failed. Re-trying with higher verbosity.
-- Build type set to RelWithDebInfo.
-- Extracting version information from git describe...
-- Compiler Version: cc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-- Compiler Flags: /usr/bin/cc:::-O2 -g -DNDEBUG -std=gnu99 -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized
/usr/bin/c++:::-O2 -g -DNDEBUG -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized
-- ADDING PERF COUNTERS
-- Building Static Libraries: OFF
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- date_time
-- program_options
-- filesystem
-- system
-- regex
-- thread
-- unit_test_framework
-- chrono
-- atomic
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.15", minimum required is "2.7")
--
-- Checking for module SWIG
-- Found SWIG version 2.0.12.
--
-- The build system will automatically enable all components.
-- Use -DENABLE_DEFAULT=OFF to disable components by default.
--
-- Configuring python-support support...
-- Dependency PYTHONLIBS_FOUND = TRUE
-- Dependency SWIG_FOUND = TRUE
-- Dependency SWIG_VERSION_CHECK = TRUE
-- Enabling python-support support.
-- Override with -DENABLE_PYTHON=ON/OFF
--
-- Configuring testing-support support...
-- Dependency Boost_FOUND = 1
-- Enabling testing-support support.
-- Override with -DENABLE_TESTING=ON/OFF
--
-- Configuring VOLK support...
-- Build type set to RelWithDebInfo.
-- Extracting version information from git describe...
--
-- Python checking for python >= 2.7
-- Python checking for python >= 2.7 - found
--
-- Python checking for mako >= 0.4.2
-- Python checking for mako >= 0.4.2 - found
--
-- Python checking for six - python 2 and 3 compatibility library
-- Python checking for six - python 2 and 3 compatibility library - found
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- filesystem
-- system
-- Checking for module 'orc-0.4 > 0.4.11'
-- No package 'orc-0.4' found
-- orc files (missing: ORC_LIBRARY ORC_INCLUDE_DIR ORCC_EXECUTABLE)
-- QA Testing is enabled.
-- Modify using: -DENABLE_TESTING=ON/OFF
-- System profiling is disabled.
-- Modify using: -DENABLE_PROFILING=ON/OFF
-- Compiler name: GNU
-- x86* CPU detected
-- ORC support not found, Overruled arch orc
-- CPU width is 64 bits, Overruled arch 32
-- Available architectures: generic;64;3dnow;abm;popcount;mmx;fma;sse;sse2;norc;sse3;ssse3;sse4_a;sse4_1;sse4_2;avx;avx2
-- Available machines: generic;sse2_64_mmx;sse3_64_mmx;ssse3_64_mmx;sse4_a_64_mmx;sse4_1_64_mmx;sse4_2_64_mmx;avx_64_mmx;avx2_64_mmx
-- BUILD TYPE = RELWITHDEBINFO
-- Base cflags = -O2 -g -DNDEBUG -std=gnu99 -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -Wall
-- BUILD INFO ::: generic ::: GNU ::: -O2 -g -DNDEBUG -std=gnu99 -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -Wall
-- BUILD INFO ::: sse2_64_mmx ::: GNU ::: -O2 -g -DNDEBUG -std=gnu99 -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -Wall -m64 -mmmx -msse -msse2
-- BUILD INFO ::: sse3_64_mmx ::: GNU ::: -O2 -g -DNDEBUG -std=gnu99 -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -Wall -m64 -mmmx -msse -msse2 -msse3
-- BUILD INFO ::: ssse3_64_mmx ::: GNU ::: -O2 -g -DNDEBUG -std=gnu99 -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -Wall -m64 -mmmx -msse -msse2 -msse3 -mssse3
-- BUILD INFO ::: sse4_a_64_mmx ::: GNU ::: -O2 -g -DNDEBUG -std=gnu99 -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -Wall -m64 -mmmx -msse -msse2 -msse3 -msse4a -mpopcnt
-- BUILD INFO ::: sse4_1_64_mmx ::: GNU ::: -O2 -g -DNDEBUG -std=gnu99 -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -Wall -m64 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1
-- BUILD INFO ::: sse4_2_64_mmx ::: GNU ::: -O2 -g -DNDEBUG -std=gnu99 -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -Wall -m64 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt
-- BUILD INFO ::: avx_64_mmx ::: GNU ::: -O2 -g -DNDEBUG -std=gnu99 -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -Wall -m64 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mavx
-- BUILD INFO ::: avx2_64_mmx ::: GNU ::: -O2 -g -DNDEBUG -std=gnu99 -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -Wall -m64 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mavx -mfma -mavx2
-- Compiler Version: cc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-- c flags: -std=gnu99 -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -Wall;
-- asm flags:
-- Did not find liborc and orcc, disabling orc support...
-- Loading version 1.4 into constants...
-- Using install prefix: /home/rytse/prefix
--
-- Configuring volk support...
-- Enabling volk support.
-- Override with -DENABLE_VOLK=ON/OFF
-- Override with -DENABLE_INTERNAL_VOLK=ON/OFF
-- ENABLE_GR_LOG set to ON.
-- HAVE_LOG4CPP set to True.
-- LOG4CPP_LIBRARIES set to /usr/lib/liblog4cpp.so.
--
-- Configuring doxygen support...
-- Dependency DOXYGEN_FOUND = YES
-- Disabling doxygen support.
-- Override with -DENABLE_DOXYGEN=ON/OFF
--
-- Configuring sphinx support...
-- Dependency SPHINX_FOUND = TRUE
-- Enabling sphinx support.
-- Override with -DENABLE_SPHINX=ON/OFF
--
-- Configuring gnuradio-runtime support...
-- Dependency Boost_FOUND = 1
-- Dependency ENABLE_VOLK = ON
-- Dependency PYTHONINTERP_FOUND = TRUE
-- Enabling gnuradio-runtime support.
-- Override with -DENABLE_GNURADIO_RUNTIME=ON/OFF
--
-- Configuring gr-ctrlport support...
-- Dependency Boost_FOUND = 1
-- Dependency SWIG_FOUND = TRUE
-- Dependency SWIG_VERSION_CHECK = TRUE
-- Dependency ENABLE_GNURADIO_RUNTIME = ON
-- Enabling gr-ctrlport support.
-- Override with -DENABLE_GR_CTRLPORT=ON/OFF
-- Loading build date Mon, 06 Aug 2018 13:03:18 into constants...
-- Loading version 3.7.12.0 into constants...
--
-- Python checking for Thrift
-- Python checking for Thrift - found
-- Found and enabling Thrift backend to ControlPort
-- Running thrift to build C++ bindings
-- TRY_SHM_VMCIRCBUF set to ON.
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.15", minimum required is "2")
--
-- Configuring gr-blocks support...
-- Dependency Boost_FOUND = 1
-- Dependency ENABLE_VOLK = ON
-- Dependency ENABLE_GNURADIO_RUNTIME = ON
-- Enabling gr-blocks support.
-- Override with -DENABLE_GR_BLOCKS=ON/OFF
--
-- Python checking for python >= 2.5
-- Python checking for python >= 2.5 - found
--
-- Python checking for Cheetah >= 2.0.0
-- Python checking for Cheetah >= 2.0.0 - found
--
-- Python checking for lxml >= 1.3.6
-- Python checking for lxml >= 1.3.6 - found
--
-- Python checking for pygtk >= 2.10.0
-- Python checking for pygtk >= 2.10.0 - not found
--
-- Python checking for numpy
-- Python checking for numpy - found
--
-- Configuring gnuradio-companion support...
-- Dependency ENABLE_GNURADIO_RUNTIME = ON
-- Dependency ENABLE_PYTHON = ON
-- Dependency PYTHON_MIN_VER_FOUND = TRUE
-- Dependency CHEETAH_FOUND = TRUE
-- Dependency LXML_FOUND = TRUE
-- Dependency PYGTK_FOUND = FALSE
-- Dependency NUMPY_FOUND = TRUE
CMake Error at cmake/Modules/GrComponent.cmake:75 (message):
user force-enabled gnuradio-companion but configuration checked failed
Call Stack (most recent call first):
grc/CMakeLists.txt:45 (GR_REGISTER_COMPONENT)
-- Configuring incomplete, errors occurred!
See also "/home/rytse/prefix/src/gnuradio/build/CMakeFiles/CMakeOutput.log".
See also "/home/rytse/prefix/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.
Same problem here,
while trying to install gnuradio from source, I never managed to get pygtk recognized or installed on my computer (Ubuntu 14.04.5 LTS).
I tried pip that told me:
* Building PyGTK using distutils is only supported on windows. *
* To build PyGTK in a supported way, read the INSTALL file. *
Tried using apt-get (actually installed everything that looked like gtk something), no luck .
Tried to build from source using jhbuild
which is a nightmare on itself (never worked).
Finally I ran into PyGObject documentation (and forums) which tells that pygtk is depreccated (?).
I also tried to build gnuradio using pybombs but once I the build start it fails on the same error as OP's...
Any clue ?
Edit: apparently same problem was reported elsewhere (see links), but no solution given.
https://github.com/gnuradio/pybombs/issues/485 https://stackoverflow.com/questions/51731082/pygtk-issue-when-installing-gnuradio
I have personally given up on running PyBOMBS at all, much less through conda, as it is so unstable. However, the apt package worked fine for me after installing a few other dependencies through apt (though I am on Ubuntu 16.04).
I installed using the following command (omitting gr-osmosdr and libosmocore-dev since you only asked for vanilla GNURadio) as recommended by velichov in a not-totally-related post.
sudo apt-get install -y \
cmake \
autoconf \
libtool \
pkg-config \
build-essential \
python-docutils \
libcppunit-dev \
swig \
doxygen \
liblog4cpp5-dev \
python-scipy \
python-gtk2 \
gnuradio-dev
What is your output when you run that?
Hello @rytse
thank you for your message, apt-get works for gnuradio (and gnuradio-dev) but only allows me to get an 'older' version. I need a more recent one installed in order to install a fork of gr-osmosdr... Hence my attempts for building it, but no success so far.
When building gr-osmosdr:
CMake Error at CMakeLists.txt:156 (MESSAGE):
GnuRadio version required: >="3.7.8" found: "3.7.2.1"
Maybe it's time to upgrade my old ubuntu to a fresh 18.04 and simply get a newer version of gnuradio with apt-get...
In that case, try sudo apt install libgtk2.0-dev libgtk2.0-0
to resolve your PyGTK issue. Here's a related StackOverflow post. I never did get get it working in a virtualenv or a conda env, but maybe it will work in a global PyBOMBS install.
Thank you for the suggestion but
libgtk2.0-0 is already the newest version.
libgtk2.0-dev is already the newest version.
no luck...
it must be something trivial though because I cannot do
$ python
Python 2.7.14 |Anaconda, Inc.| (default, Dec 7 2017, 17:05:42)
[GCC 7.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygtk
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pygtk
but with root privilege:
$ sudo python
Python 2.7.6 (default, Nov 23 2017, 15:49:48)
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygtk
>>>
I played with so many different tools and environment managers that my python environment is probably a mess today...
What is the output of ls /usr/lib/python2.7/dist-packages
adium_theme_ubuntu-0.3.4.egg-info
amqp
amqp-1.3.3.egg-info
ANSI.py
ANSI.pyc
anyjson
anyjson-0.3.3.egg-info
apptools
apptools-4.1.0.egg-info
apt
aptdaemon
apt_inst.so
apt_pkg.so
aptsources
apt_xapian_index-0.45.egg-info
axi
babel
Babel-1.3.egg-info
binwalk
binwalk-1.0.egg-info
blueman
_blueman.so
bluetooth
boost
bpdb
bpython
bpython-0.12.egg-info
bzr-2.7.0dev1.egg-info
bzrlib
cairo
chardet
chardet-2.0.1.egg-info
Cheetah
Cheetah-2.4.4.egg-info
CommandNotFound
command_not_found-0.3.egg-info
configobj-4.7.2.egg-info
configobj.py
configobj.pyc
Crypto
cupsext.la
cupsext.so
cupshelpers
cups.so
dateutil
dbus
_dbus_bindings.so
_dbus_glib_bindings.so
deb822.py
deb822.pyc
debconf.py
debconf.pyc
debian
debian_bundle
debtagshw
debtagshw-0.1.egg-info
decorator-3.4.0.egg-info
decorator.py
decorator.pyc
defer
defer-1.0.6.egg-info
dirspec
dirspec-13.10.egg-info
dns
DNS
dnspython-1.11.1.egg-info
dogpile
dogpile.cache-0.5.1.egg-info
dogpile.cache-0.5.1-nspkg.pth
dogpile.core-0.4.1.egg-info
dogpile.core-0.4.1-nspkg.pth
drv_libxml2.py
drv_libxml2.pyc
dsml.py
dsml.pyc
duplicity
duplicity-0.6.23.egg-info
easy_install.py
easy_install.pyc
enchant
envisage
envisage-4.1.0.egg-info
eventlet
eventlet-0.13.0.egg-info
fcdproplus
fdpexpect.py
fdpexpect.pyc
formencode
FormEncode-1.2.6.egg-info
frontend_ice.py
frontend_ice.pyc
FSM.py
FSM.pyc
gi
glib
gnuradio
gnuradio_ice.py
gnuradio_ice.pyc
gobject
gpgme
grc_gnuradio
greenlet-0.4.2.egg-info
greenlet.so
gst-0.10
gstoption.so
gtk-2.0
gtk-2.0-pysupport-compat.pth
gtksourceview2.so
gtkspellcheck
gtkvnc.so
gts
hgext
hpmudext.la
hpmudext.so
httplib2
httplib2-0.8.egg-info
ibus
indicator_keyboard
iso8601
iso8601-0.1.10.egg-info
jsonschema
jsonschema-2.3.0.egg-info
keyring
keyring-3.5.egg-info
keystone
keystone-2014.1.5.egg-info
keystoneclient
kombu
kombu-3.0.7.egg-info
launchpadlib
launchpadlib-1.10.2.egg-info
lazr
lazr.restfulclient-0.13.3.egg-info
lazr.uri-1.0.3.egg-info
lazr.uri-1.0.3-nspkg.pth
ldap
_ldap.so
ldapurl.py
ldapurl.pyc
ldb.so
_ldb_text.py
_ldb_text.pyc
ldif.py
ldif.pyc
librabbitmq
librabbitmq-1.0.3.egg-info
_librabbitmq.so
libxml2mod.so
libxml2.py
libxml2.pyc
linaro_image_tools
lockfile-0.8.egg-info
lockfile.py
lockfile.pyc
lsb_release.py
lsb_release.pyc
lxml
lxml-3.3.3.egg-info
Magic_file_extensions-0.2.egg-info
magic.py
magic.pyc
mako
Mako-0.9.1.egg-info
_markerlib
markupsafe
MarkupSafe-0.18.egg-info
mayavi
mayavi-4.1.0.egg-info
mercurial
mercurial-2.8.2.egg-info
migrate
mock-1.0.1.egg-info
mock.py
mock.pyc
netaddr
netaddr-0.7.10.egg-info
numpy
numpy-1.8.2.egg-info
oauth
oauth-1.0.1.egg-info
oauthlib
oauthlib-0.6.1.egg-info
ogg
oneconf
oneconf-0.3.7.14.04.1.egg-info
OpenGL
openid
OpenSSL
oslo
oslo.config-1.2.1.egg-info
oslo.config-1.2.1-nspkg.pth
oslo.messaging-1.3.0.egg-info
oslo.messaging-1.3.0-nspkg.pth
PAM-0.4.2.egg-info
PAM.x86_64-linux-gnu.so
paramiko
paramiko-1.10.1.egg-info
parted
passlib
passlib-1.5.3.egg-info
paste
Paste-1.7.5.1.egg-info
PasteDeploy-1.5.2.egg-info
PasteScript-1.7.5.egg-info
pbr
pbr-0.7.0.egg-info
pcardext.la
pcardext.so
pdfshuffler
pdfshuffler-0.6.0.egg-info
_pedmodule.so
pexpect
pexpect-3.1.egg-info
PIL
PILcompat
PILcompat.pth
Pillow-2.3.0.egg-info
piston_mini_client
piston_mini_client-0.7.5.egg-info
pkg_resources.py
pkg_resources.pyc
pmt
poppler.so
prettytable-0.7.2.egg-info
prettytable.py
prettytable.pyc
pxssh.py
pxssh.pyc
PyBluez-0.18.egg-info
pycadf
pycadf-0.4.1.egg-info
pycrypto-2.6.1.egg-info
pycups-1.9.66.egg-info
pydns-2.3.6.egg-info
pyenchant-1.6.5.egg-info
pyface
pyface-4.1.0.egg-info
pygments
Pygments-1.6.egg-info
pygobject-3.12.0.egg-info
pygpgme-0.3.egg-info
pygst.pth
pygst.py
pygst.pyc
pygtkcompat
pygtk.pth
pygtk.py
pygtk.pyc
pygtkspellcheck-3.0.egg-info
pygts-0.3.1.egg-info
PyKate4
pylocales
pyogg-1.3.egg-info
PyOpenGL-3.0.2.egg-info
pyOpenSSL-0.13.egg-info
pyparsing-2.0.1.egg-info
pyparsing.py
pyparsing.pyc
PyQt4
pyserial-2.6.egg-info
pysmbc-1.0.14.1.egg-info
python_apt-0.9.3.5ubuntu3.egg-info
python_dateutil-1.5.egg-info
python_debian-0.1.21_nmu2ubuntu2.egg-info
python_keystoneclient-0.7.1.egg-info
python_ldap-2.4.10.egg-info
python_openid-2.2.5.egg-info
python-support.pth
pytz
pytz-2012c.egg-info
pyvorbis-1.5.egg-info
pyxdg-0.25.egg-info
PyYAML-3.10.egg-info
pyzmq-14.0.1.egg-info
README
reportlab
reportlab-3.0.egg-info
repoze
repoze.lru-0.6.egg-info
repoze.lru-0.6-nspkg.pth
requests
requests-2.2.1.egg-info
routes
Routes-2.0.egg-info
samba
scanext.la
scanext.so
scgi
scgi-1.13.egg-info
scipy
scipy-0.13.3.egg-info
screen.py
screen.pyc
secretstorage
SecretStorage-2.0.0.egg-info
serial
sessioninstaller
sessioninstaller-0.0.0.egg-info
setuptools
setuptools-3.3.egg-info
setuptools.pth
simplejson
simplejson-3.3.1.egg-info
sipconfig_nd.py
sipconfig_nd.pyc
sipconfig.py
sipconfig.pyc
sip.so
six-1.5.2.egg-info
six.py
six.pyc
smbc
_smbc.so
softwarecenter_aptd_plugins
software_center_aptd_plugins-0.0.0.egg-info
sqlalchemy
SQLAlchemy-0.8.4.egg-info
sqlalchemy_migrate-0.8.2.egg-info
stevedore
stevedore-0.14.1.egg-info
system_service-0.1.6.egg-info
tagpy
tagpy-2013.1.egg-info
_tagpy.so
talloc.so
tdb.so
_tdb_text.py
_tdb_text.pyc
tempita
Tempita-0.5.2.egg-info
traits
traits-4.1.0.egg-info
traitsui
traitsui-4.1.0.egg-info
tvtk
twisted
Twisted_Core-13.2.0.egg-info
Twisted_Web-13.2.0.egg-info
ubuntu-sso-client
ubuntu-sso-client.pth
UbuntuSystemService
unity_lens_photos-1.0.egg-info
urllib3
urllib3-1.7.1.egg-info
validate.py
validate.pyc
vboxapi
vboxapi-1.0.egg-info
volk_modtool
wadllib
wadllib-1.3.2.egg-info
webob
WebOb-1.3.1.egg-info
wx-2.8-gtk2-unicode
wxglade
wxGlade-0.6.8.egg-info
wx.pth
wxPython_common-2.8.12.1.egg-info
wxversion.py
wxversion.pyc
xapian
xdg
xdiagnose
xdiagnose-3.6.3build2.egg-info
yaml
_yaml.so
zmq
zope
zope.interface-4.0.5.egg-info
zope.interface-4.0.5-nspkg.pth
It looks like you have gtk but not gobject. Once you have that, try following bohrax's instructions for adding symbolic symlinks to gtk, pygobject, and pygtk so that non-root python can see those packages.
Edit: Just kidding, I can't read. gobject is in that directory
Did you create the simlinks that bohrax advises?
I did, but in the wrong place... I did not realize that my user python depends on conda lib path. Just tried again in conda folder, cleaned all my pybombs mess and started again... In progress.
Was looking good... Until:
-- Dependency LXML_FOUND = TRUE
-- Dependency PYGTK_FOUND = FALSE
-- Dependency NUMPY_FOUND = TRUE
CMake Error at cmake/Modules/GrComponent.cmake:75 (message):
user force-enabled gnuradio-companion but configuration checked failed
Call Stack (most recent call first):
grc/CMakeLists.txt:45 (GR_REGISTER_COMPONENT)
...
Which is weird because now the following works:
$ python
Python 2.7.14 |Anaconda, Inc.| (default, Dec 7 2017, 17:05:42)
[GCC 7.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygtk
>>>
Do which pybombs
and which python
both point to the conda environment?
Also, what's the output of
import gtk
import gobject
$ which pybombs
{myhomefolder}/miniconda2/bin/pybombs
$ which python
{myhomefolder}/miniconda2/bin/python
$ python
Python 2.7.14 |Anaconda, Inc.| (default, Dec 7 2017, 17:05:42)
[GCC 7.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gobject
>>> import gtk
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "{myhomefolder}/miniconda2/lib/python2.7/gtk/__init__.py", line 40, in <module>
from gtk import _gtk
File "{myhomefolder}/.local/lib/python2.7/site-packages/cairo/__init__.py", line 1, in <module>
from ._cairo import * # noqa: F401,F403
ImportError: {myhomefolder}/.local/lib/python2.7/site-packages/cairo/_cairo.so: undefined symbol: cairo_tee_surface_index
Will look after cairo symlink maybe...
import cairo
?
after symlinking cairo:
$ python
Python 2.7.14 |Anaconda, Inc.| (default, Dec 7 2017, 17:05:42)
[GCC 7.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
{myhomefolder}/miniconda2/lib/python2.7/gtk/__init__.py:40: RuntimeWarning: tp_compare didn't return -1 or -2 for exception
from gtk import _gtk
ImportError: could not import pango
ImportError: could not import pango
GLib-GIO-Message: 16:24:42.776: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.
>>>
import cairo
raised an error before I added the symlink.
Now loads ok; but gtk complains about pango...
Started another run of pybombs... Will let you know a bit later I have to go. Thank you for your support btw !
You're welcome! I would like to be able to run GNURadio through conda as well, so I'm happy to help. If you figure out how to do it, please do post how you did it here so that I and others can recreate it :smiley:
I had issues installing GNU Radio (unrelated to PyBOMBS though) with respect to PyGTK (see also this discussion: https://github.com/gnuradio/gnuradio/issues/1859). I was missing the gir
packages. This is our CI builder: https://github.com/gnuradio/gnuradio-buildbot/blob/public/worker/ubuntu-18.04.Dockerfile
Just an update, after solving disk space problems and overheating crash during compilation, I managed to get through the full installation process. I have also been able to compile gr-osmosdr on top of that.
However gnuradio-companion crashes on startup with the following message:
$ ./gnuradio-companion
{myhomefolder}/miniconda2/lib/python2.7/gtk/__init__.py:40: RuntimeWarning: tp_compare didn't return -1 or -2 for exception
from gtk import _gtk
ImportError: could not import pango
ImportError: could not import pango
GLib-GIO-Message: 15:57:44.957: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.
Traceback (most recent call last):
File "./gnuradio-companion", line 96, in <module>
check_gnuradio_import()
File "./gnuradio-companion", line 72, in check_gnuradio_import
die(err, GR_IMPORT_ERROR_MESSAGE)
File "./gnuradio-companion", line 43, in die
d = gtk.MessageDialog(
AttributeError: 'module' object has no attribute 'MessageDialog'
I guess pygtk is not happy even though it has been detected correctly during compilation. I tried messing a bit more with symlinks in miniconda lib folder with no results.
Probably going to give up and upgrade my ubuntu to a fresh 18.04... Spent too much time on this.
Hello, I finally took the easy path and reinstalled a newer ubuntu on my laptop... Took me 2 hours in total, including configuration of gnuradio (apt-get) and compilation of gr-osmosdr ;)
Sorry, I know that does not really help people reading this thread, but all this took too much of my time already. Thank you for your great support !
My experience with pybombs hasn't been great either I have to say.
Anyway, in case it helps someone, try and build both py2cairo
and pygtk
manually. Follow the instructions here: https://stackoverflow.com/a/17126095/1278365
The installation is done in a virtualenv which is quite convenient.