* [PATCH 0/1] Error gracefully on systems which don't support Hob
@ 2012-03-31 1:05 Joshua Lock
2012-03-31 1:05 ` [PATCH 1/1] lib/bb/ui/hob: exit cleanly if the required pygtk version isn't available Joshua Lock
2012-04-03 23:52 ` [PATCH 0/1] Error gracefully on systems which don't support Hob Joshua Lock
0 siblings, 2 replies; 5+ messages in thread
From: Joshua Lock @ 2012-03-31 1:05 UTC (permalink / raw)
To: bitbake-devel
Hob requires pygtk 2.22 or later and systems without that will see a Python
backtrace.
This small change tests whether pygtk is installed and tests which version of it
is available and prints an error if pytgtk is missing or too low a version.
Cheers,
Joshua
The following changes since commit 035e146ff92236a3eda71ad71e8389737f91753b:
Hob: In building log page, fixed the issue about 'endpath' not clear when next to start build (2012-03-30 17:19:35 +0100)
are available in the git repository at:
git://github.com/incandescant/bitbake josh/hob
https://github.com/incandescant/bitbake/tree/josh/hob
Joshua Lock (1):
lib/bb/ui/hob: exit cleanly if the required pygtk version isn't
available
lib/bb/ui/hob.py | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
--
1.7.7.6
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH 1/1] lib/bb/ui/hob: exit cleanly if the required pygtk version isn't available
2012-03-31 1:05 [PATCH 0/1] Error gracefully on systems which don't support Hob Joshua Lock
@ 2012-03-31 1:05 ` Joshua Lock
2012-04-05 16:32 ` Paul Eggleton
2012-04-03 23:52 ` [PATCH 0/1] Error gracefully on systems which don't support Hob Joshua Lock
1 sibling, 1 reply; 5+ messages in thread
From: Joshua Lock @ 2012-03-31 1:05 UTC (permalink / raw)
To: bitbake-devel
Hob uses API from pygtk 2.22, therefore check to see whether this
version is available and exit cleanly if not.
Signed-off-by: Joshua Lock <josh@linux.intel.com>
---
lib/bb/ui/hob.py | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/lib/bb/ui/hob.py b/lib/bb/ui/hob.py
index e72ab23..2f595cb 100755
--- a/lib/bb/ui/hob.py
+++ b/lib/bb/ui/hob.py
@@ -20,10 +20,17 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-import gobject
-import gtk
import sys
import os
+try:
+ import gobject
+ import gtk
+ import pygtk
+ pygtk.require('2.0') # to be certain we don't have gtk+ 1.x !?!
+ if gtk.pygtk_version < (2, 22, 0):
+ sys.exit("FATAL: PyGtk version 2.22.x or later is required to use Hob")
+except:
+ sys.exit("FATAL: PyGtk (version 2.22.x or later) is required to use Hob")
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
try:
import bb
--
1.7.7.6
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH 1/1] lib/bb/ui/hob: exit cleanly if the required pygtk version isn't available
2012-03-31 1:05 ` [PATCH 1/1] lib/bb/ui/hob: exit cleanly if the required pygtk version isn't available Joshua Lock
@ 2012-04-05 16:32 ` Paul Eggleton
2012-04-05 16:44 ` Joshua Lock
0 siblings, 1 reply; 5+ messages in thread
From: Paul Eggleton @ 2012-04-05 16:32 UTC (permalink / raw)
To: bitbake-devel; +Cc: Giulia Piu
On Friday 30 March 2012 18:05:29 Joshua Lock wrote:
> Hob uses API from pygtk 2.22, therefore check to see whether this
> version is available and exit cleanly if not.
Apparently Belen and Giulia have been doing their hob testing on an F15
machine (fully up-to-date) and it was working OK, now it is blocked by this
check - the version of PyGTK+ on there is 2.17.
Is that intended/desirable?
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] lib/bb/ui/hob: exit cleanly if the required pygtk version isn't available
2012-04-05 16:32 ` Paul Eggleton
@ 2012-04-05 16:44 ` Joshua Lock
0 siblings, 0 replies; 5+ messages in thread
From: Joshua Lock @ 2012-04-05 16:44 UTC (permalink / raw)
To: Paul Eggleton; +Cc: bitbake-devel, Giulia Piu
On 05/04/12 09:32, Paul Eggleton wrote:
> On Friday 30 March 2012 18:05:29 Joshua Lock wrote:
>> Hob uses API from pygtk 2.22, therefore check to see whether this
>> version is available and exit cleanly if not.
>
> Apparently Belen and Giulia have been doing their hob testing on an F15
> machine (fully up-to-date) and it was working OK, now it is blocked by this
> check - the version of PyGTK+ on there is 2.17.
>
> Is that intended/desirable?
Not at all, we're definitely using method calls which the API docs tell
me are only available in pygtk 2.22 or newer... I guess this isn't the case.
It's beginning to look like the API is from Gtk+ 2.22 but that pygtk
fell out of sync for version numbers, I'll change the check to test the
Gtk+ version.
FYI the goal is to lower the required API to Gtk+ 2.18.x and pygtk
2.16.x as are shipped with CentOS 6.
Cheers,
Joshua
--
Joshua '贾詡' Lock
Yocto Project "Johannes factotum"
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/1] Error gracefully on systems which don't support Hob
2012-03-31 1:05 [PATCH 0/1] Error gracefully on systems which don't support Hob Joshua Lock
2012-03-31 1:05 ` [PATCH 1/1] lib/bb/ui/hob: exit cleanly if the required pygtk version isn't available Joshua Lock
@ 2012-04-03 23:52 ` Joshua Lock
1 sibling, 0 replies; 5+ messages in thread
From: Joshua Lock @ 2012-04-03 23:52 UTC (permalink / raw)
To: bitbake-devel
I have a more informative version of this patch which I'll submit shortly.
On 30/03/12 18:05, Joshua Lock wrote:
> Hob requires pygtk 2.22 or later and systems without that will see a Python
> backtrace.
> This small change tests whether pygtk is installed and tests which version of it
> is available and prints an error if pytgtk is missing or too low a version.
>
> Cheers,
> Joshua
>
> The following changes since commit 035e146ff92236a3eda71ad71e8389737f91753b:
>
> Hob: In building log page, fixed the issue about 'endpath' not clear when next to start build (2012-03-30 17:19:35 +0100)
>
> are available in the git repository at:
> git://github.com/incandescant/bitbake josh/hob
> https://github.com/incandescant/bitbake/tree/josh/hob
>
> Joshua Lock (1):
> lib/bb/ui/hob: exit cleanly if the required pygtk version isn't
> available
>
> lib/bb/ui/hob.py | 11 +++++++++--
> 1 files changed, 9 insertions(+), 2 deletions(-)
>
--
Joshua '贾詡' Lock
Yocto Project "Johannes factotum"
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-04-05 16:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-31 1:05 [PATCH 0/1] Error gracefully on systems which don't support Hob Joshua Lock
2012-03-31 1:05 ` [PATCH 1/1] lib/bb/ui/hob: exit cleanly if the required pygtk version isn't available Joshua Lock
2012-04-05 16:32 ` Paul Eggleton
2012-04-05 16:44 ` Joshua Lock
2012-04-03 23:52 ` [PATCH 0/1] Error gracefully on systems which don't support Hob Joshua Lock
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.