Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 24 Apr 2014, 17:52
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
Compiling Python 3.2.2 with pygobject gobject-introspection
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
growler


Joined: 24 Mar 2008
Posts: 209
Location: Kapiti - New Zealand

PostPosted: Thu 08 Mar 2012, 04:11    Post subject:  Compiling Python 3.2.2 with pygobject gobject-introspection  

Has anyone done this? I was hoping to make a .pet or .sfs for everyone.... but can't do it Sad

I have toiled and toiled at this using a fresh racy 522 with the devx - which has Python 2.6.4 in it as standard. I am keen to use Python with the new Pygobject bindings to Gtk but it is ridiculously hard to compile a usable set up!! The docs say to use jhbuild - which I tried and failed as it cannot be run as root Sad I understand this would make a sandbox install anyway and want it to be a full install without a pile of duplication. What a heck of a mess gnome is!

First stop was to update glib to 2.30.2 - this went well, then gobject-introspection-1.31.20 was a battle - it won't configure if you have installed python 3.2.2 first as configure uses python print sys.exec to get the exec directory - and the syntax for python 3 is print (sys.exec) not parens -even after figuring out this I got into trouble I couldn't get out of so I deleted my pupsave.sfs and started again.... using the Python 2.6.4 from the devx until this point. Then Python 3.2.2 - I think I got this.... then I changed /usr/bin/python - which was the devx python 2.6.4 binary to link to the new /usr/bin/python3.2m as /usr/bin/python .... then pycairo for python 3 required before you can compile pygobject. Went ok - uses a waf build but seemed to work ok - but was very quick? Now pygobject-3.0.4 the final frontier ... ./configure --prefix=/usr ... all good .... make FAILS miserably, devastatingly with:

Code:

 CC     _gi_cairo_la-pygi-foreign-cairo.lo
pygi-foreign-cairo.c:28:21: error: pycairo.h: No such file or directory
pygi-foreign-cairo.c:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
pygi-foreign-cairo.c: In function 'cairo_context_to_arg':
pygi-foreign-cairo.c:49: warning: implicit declaration of function 'PycairoContext_GET'
pygi-foreign-cairo.c:49: warning: assignment makes pointer from integer without a cast
pygi-foreign-cairo.c: In function 'cairo_context_from_arg':
pygi-foreign-cairo.c:65: warning: implicit declaration of function 'PycairoContext_FromContext'
pygi-foreign-cairo.c:65: error: 'PycairoContext_Type' undeclared (first use in this function)
pygi-foreign-cairo.c:65: error: (Each undeclared identifier is reported only once
pygi-foreign-cairo.c:65: error: for each function it appears in.)
pygi-foreign-cairo.c:65: warning: return makes pointer from integer without a cast
pygi-foreign-cairo.c: In function 'cairo_surface_to_arg':
pygi-foreign-cairo.c:87: error: 'PycairoSurface' undeclared (first use in this function)
pygi-foreign-cairo.c:87: error: expected expression before ')' token
pygi-foreign-cairo.c: In function 'cairo_surface_from_arg':
pygi-foreign-cairo.c:104: warning: implicit declaration of function 'PycairoSurface_FromSurface'
pygi-foreign-cairo.c:104: warning: return makes pointer from integer without a cast
pygi-foreign-cairo.c: At top level:
pygi-foreign-cairo.c:115: warning: missing braces around initializer
pygi-foreign-cairo.c:115: warning: (near initialization for '_gi_cairo_functions[0]')
pygi-foreign-cairo.c: In function 'init_gi_cairo':
pygi-foreign-cairo.c:119: error: 'Pycairo_IMPORT' undeclared (first use in this function)
pygi-foreign-cairo.c:124: error: 'Pycairo_CAPI' undeclared (first use in this function)
make[3]: *** [_gi_cairo_la-pygi-foreign-cairo.lo] Error 1
make[3]: Leaving directory `/root/my-applications/pygobject-3.0.4/gi'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/my-applications/pygobject-3.0.4/gi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/my-applications/pygobject-3.0.4'
make: *** [all] Error 2
#


If have recompiled latest cairo then pycairo ... no joy - stuck!!!

Appreciate any pointers guys

Grrrrrr
Back to top
View user's profile Send private message 
growler


Joined: 24 Mar 2008
Posts: 209
Location: Kapiti - New Zealand

PostPosted: Sun 11 Mar 2012, 02:00    Post subject:  

Fogive me for posting my own reply ... just in case anyone else is foolish enough to venture down this track ... some more notes ... with the solution to the above but only to come unstuck later...

Puppy Racy 522

Building Python 3.x with Gtk+ 3

This is the biggest time-wasting exercise I have ever undertaken!! I am amazed at how difficult this is and that if there is seriously any desire by gnome developers to get this platform to take off then some effort really needs to be put into making these sorts of builds more straightforward. The dependencies that I have had to work out through trial and error are mindless. No wonder there is resistence in moving from Gtk 2 to Gtk 3 - for very good reason - it is a mess! I would strongly recommend anyone developing on Python to stick to Pygtk and really tkinter as the bundled window widget platform makes more sense.

I only started making these notes after a couple of fruitless days messing around.

libffi required before glib will compile - got libffi 3.0.10
made a .pet ok

glib-2.31.20 - wouldn't configure needed
also libiconv got libiconv 1.14
now glib-2.31.6
during configure ...
checking for lock-free atomic intrinsics... no
configure: error: GLib must be build with -march=i486 or later.

so went back for an older glib try 2.30.2
gconvert.c:65:2: error: #error GNU libiconv not in use but included iconv.h is from libiconv
make[4]: *** [gconvert.lo] Error 1

so ... remove libiconv-1.14 - start again

without liniconv-1.14 glib 2.30.2 configures ok ..

now pango-1.29.5 - won't configure requires glib 2.31 go back to
pango-1.28.4
now atk-2.2.0
now gobject-introspection-1.31.20 YES!!
now gtk+-3.2.2 - won't configure requires later pango/glib
go back to gtk +-3.2.1 won't configure requires later pango/glib
go back to gtk+-3.2.0 - ./configure fails again...
Requested 'pango >= 1.29.0' but version of Pango is 1.28.4
Requested 'gdk-pixbuf-2.0 >= 2.23.5' but version of GdkPixbuf is 2.22.1
go back to gtk+-3.1.92
Requested 'pango >= 1.29.0' but version of Pango is 1.28.4
Requested 'gdk-pixbuf-2.0 >= 2.23.5' but version of GdkPixbuf is 2.22.1
go back to gtk+-3.1.18
OK .... try a later pango...
Pango 1.29.4 - YES!
Try gdk-pixbuf-2.24.1 - YES!!
Now Try gtk+-3.2.1 ... configured OK... make OK!!! .... make install

So a working combination of gtk+ 3 appears to be:
libffi 3.0.10
glib 2.30.2
Pango 1.29.4
gdk-pixbuf-2.24.1
gobject-introspection-1.31.20
gtk+-3.2.1

Halleluah - I was concerned that this may in fact munt completely my existing racy install so I did all this in an empty racy system just to see - all appears to work well, with no ill effects on any other applications that I could see.

Python 3.2.2 - didn't specify --prefix=/usr ... redo YES!

pycairo 1.1.0
pygobject 3.0.4
pygi-foreign-cairo.c:28:21: error: pycairo.h: No such file or directory
I do have a py3cairo.h make a symlink to it ...
Looking at the Makefile it is using python 2 includes maybe pass configure the python3 includes
the answer was:

Code:

#PYTHON=python3.2m ./configure --prefix=/usr


However, Gtk didn't work with Python ....

[code]
# /root/my-applications/test.py
Traceback (most recent call last):
File "/root/my-applications/test.py", line 2, in <module>
from gi.repository import Gtk
File "/usr/lib/python3.2/site-packages/gi/__init__.py", line 23, in <module>
from ._gi import _API, Repository
ImportError: /usr/lib/python3.2/site-packages/gi/_gi.so: undefined symbol: _Py_ZeroStruct

So back to the drawing board ...tried to recompile gobject-introspection with python 3 headers....
gobjectintrospection-1.31.20 unable to find Python headers ... the configure script for gobject-introspection uses python -c print sys.exec_prefix and sys.prefix to determine the correct path for python. However, python 3 requires parenthesis around these - changed configure to :

[code]
py_prefix=`$PYTHON -c "import sys; print (sys.prefix)"`
py_exec_prefix=`$PYTHON -c "import sys; print (sys.exec_prefix)"`
[/code]

Still can't find includes directory for python which in my install was includes/python3.2m - not python3.2 as the script was expecting ... added an symlink in /includes/python3.2 for includes/python3.2m - and configure worked. YES!!

make
.....well NO Sad

[code]
CC _giscanner_la-giscannermodule.lo
giscanner/giscannermodule.c:41: warning: return type defaults to 'int'
giscanner/giscannermodule.c:41: warning: no previous prototype for 'DL_EXPORT'
giscanner/giscannermodule.c: In function 'DL_EXPORT':
giscanner/giscannermodule.c:41: error: expected declaration specifiers before 'init_giscanner'
giscanner/giscannermodule.c:73: error: storage class specified for parameter 'PyGISourceType'
giscanner/giscannermodule.c:75: error: storage class specified for parameter 'pygi_source_type_new'
giscanner/giscannermodule.c:80: error: storage class specified for parameter 'PyGISourceSymbol'
giscanner/giscannermodule.c:85: error: storage class specified for parameter 'PyGISourceScanner'
giscanner/giscannermodule.c:87: error: storage class specified for parameter '_PyGISourceSymbol_methods'
giscanner/giscannermodule.c:87: error: parameter 'PyGISourceSymbol_Type' is initialized
giscanner/giscannermodule.c:87: warning: missing braces around initializer
giscanner/giscannermodule.c:87: warning: (near initialization for 'PyGISourceSymbol_Type.ob_base.ob_base')
giscanner/giscannermodule.c:87: warning: initialization makes integer from pointer without a cast
giscanner/giscannermodule.c:87: warning: initialization makes pointer from integer without a cast
giscanner/giscannermodule.c:88: error: storage class specified for parameter '_PyGISourceType_methods'
giscanner/giscannermodule.c:88: error: parameter 'PyGISourceType_Type' is initialized
giscanner/giscannermodule.c:88: warning: missing braces around initializer
giscanner/giscannermodule.c:88: warning: (near initialization for 'PyGISourceType_Type.ob_base.ob_base')
giscanner/giscannermodule.c:88: warning: initialization makes integer from pointer without a cast
giscanner/giscannermodule.c:88: warning: initialization makes pointer from integer without a cast
giscanner/giscannermodule.c:89: error: storage class specified for parameter '_PyGISourceScanner_methods'
giscanner/giscannermodule.c:89: error: parameter 'PyGISourceScanner_Type' is initialized
giscanner/giscannermodule.c:89: warning: missing braces around initializer
giscanner/giscannermodule.c:89: warning: (near initialization for 'PyGISourceScanner_Type.ob_base.ob_base')
giscanner/giscannermodule.c:89: warning: initialization makes integer from pointer without a cast
giscanner/giscannermodule.c:89: warning: initialization makes pointer from integer without a cast
giscanner/giscannermodule.c:96: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
giscanner/giscannermodule.c:112: error: expected ')' before '*' token
giscanner/giscannermodule.c:119: error: expected ')' before '*' token
giscanner/giscannermodule.c:126: error: expected ')' before '*' token
giscanner/giscannermodule.c:133: error: expected ')' before '*' token
giscanner/giscannermodule.c:147: error: expected ')' before '*' token
giscanner/giscannermodule.c:154: error: expected ')' before '*' token
giscanner/giscannermodule.c:167: error: expected ')' before '*' token
giscanner/giscannermodule.c:179: error: expected ')' before '*' token
giscanner/giscannermodule.c:192: error: expected ')' before '*' token
giscanner/giscannermodule.c:204: error: storage class specified for parameter '_PyGISourceSymbol_getsets'
giscanner/giscannermodule.c:204: error: parameter '_PyGISourceSymbol_getsets' is initialized
giscanner/giscannermodule.c:206: warning: braces around scalar initializer
giscanner/giscannermodule.c:206: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:206: warning: initialization from incompatible pointer type
giscanner/giscannermodule.c:206: error: 'symbol_get_type' undeclared (first use in this function)
giscanner/giscannermodule.c:206: error: (Each undeclared identifier is reported only once
giscanner/giscannermodule.c:206: error: for each function it appears in.)
giscanner/giscannermodule.c:206: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:206: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:206: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:206: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:206: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:206: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:208: warning: braces around scalar initializer
giscanner/giscannermodule.c:208: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:208: warning: initialization from incompatible pointer type
giscanner/giscannermodule.c:208: error: 'symbol_get_ident' undeclared (first use in this function)
giscanner/giscannermodule.c:208: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:208: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:208: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:208: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:208: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:208: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:208: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:208: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:209: warning: braces around scalar initializer
giscanner/giscannermodule.c:209: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:209: warning: initialization from incompatible pointer type
giscanner/giscannermodule.c:209: error: 'symbol_get_base_type' undeclared (first use in this function)
giscanner/giscannermodule.c:209: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:209: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:209: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:209: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:209: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:209: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:209: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:209: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:211: warning: braces around scalar initializer
giscanner/giscannermodule.c:211: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:211: warning: initialization from incompatible pointer type
giscanner/giscannermodule.c:211: error: 'symbol_get_const_int' undeclared (first use in this function)
giscanner/giscannermodule.c:211: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:211: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:211: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:211: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:211: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:211: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:211: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:211: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:213: warning: braces around scalar initializer
giscanner/giscannermodule.c:213: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:213: warning: initialization from incompatible pointer type
giscanner/giscannermodule.c:213: error: 'symbol_get_const_double' undeclared (first use in this function)
giscanner/giscannermodule.c:213: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:213: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:213: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:213: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:213: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:213: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:213: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:213: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:214: warning: braces around scalar initializer
giscanner/giscannermodule.c:214: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:214: warning: initialization from incompatible pointer type
giscanner/giscannermodule.c:214: error: 'symbol_get_const_string' undeclared (first use in this function)
giscanner/giscannermodule.c:214: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:214: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:214: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:214: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:214: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:214: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:214: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:214: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:215: warning: braces around scalar initializer
giscanner/giscannermodule.c:215: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:215: warning: initialization from incompatible pointer type
giscanner/giscannermodule.c:215: error: 'symbol_get_source_filename' undeclared (first use in this function)
giscanner/giscannermodule.c:215: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:215: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:215: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:215: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:215: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:215: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:215: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:215: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:216: warning: braces around scalar initializer
giscanner/giscannermodule.c:216: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:216: warning: initialization from incompatible pointer type
giscanner/giscannermodule.c:216: error: 'symbol_get_line' undeclared (first use in this function)
giscanner/giscannermodule.c:216: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:216: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:216: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:216: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:216: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:216: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:216: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:216: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:217: warning: braces around scalar initializer
giscanner/giscannermodule.c:217: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:217: warning: initialization from incompatible pointer type
giscanner/giscannermodule.c:217: error: 'symbol_get_private' undeclared (first use in this function)
giscanner/giscannermodule.c:217: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:217: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:217: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:217: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:217: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:217: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:217: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:217: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:218: warning: braces around scalar initializer
giscanner/giscannermodule.c:218: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:218: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:218: warning: (near initialization for '_PyGISourceSymbol_getsets')
giscanner/giscannermodule.c:227: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
giscanner/giscannermodule.c:243: error: expected ')' before '*' token
giscanner/giscannermodule.c:250: error: expected ')' before '*' token
giscanner/giscannermodule.c:257: error: expected ')' before '*' token
giscanner/giscannermodule.c:264: error: expected ')' before '*' token
giscanner/giscannermodule.c:271: error: expected ')' before '*' token
giscanner/giscannermodule.c:284: error: expected ')' before '*' token
giscanner/giscannermodule.c:291: error: expected ')' before '*' token
giscanner/giscannermodule.c:314: error: expected ')' before '*' token
giscanner/giscannermodule.c:320: error: storage class specified for parameter '_PyGISourceType_getsets'
giscanner/giscannermodule.c:320: error: parameter '_PyGISourceType_getsets' is initialized
giscanner/giscannermodule.c:321: warning: braces around scalar initializer
giscanner/giscannermodule.c:321: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:321: warning: initialization from incompatible pointer type
giscanner/giscannermodule.c:321: error: 'type_get_type' undeclared (first use in this function)
giscanner/giscannermodule.c:321: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:321: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:321: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:321: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:321: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:321: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:322: warning: braces around scalar initializer
giscanner/giscannermodule.c:322: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:322: warning: initialization from incompatible pointer type
giscanner/giscannermodule.c:322: error: 'type_get_storage_class_specifier' undeclared (first use in this function)
giscanner/giscannermodule.c:322: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:322: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:322: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:322: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:322: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:322: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:322: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:322: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:323: warning: braces around scalar initializer
giscanner/giscannermodule.c:323: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:323: warning: initialization from incompatible pointer type
giscanner/giscannermodule.c:323: error: 'type_get_type_qualifier' undeclared (first use in this function)
giscanner/giscannermodule.c:323: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:323: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:323: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:323: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:323: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:323: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:323: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:323: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:324: warning: braces around scalar initializer
giscanner/giscannermodule.c:324: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:324: warning: initialization from incompatible pointer type
giscanner/giscannermodule.c:324: error: 'type_get_function_specifier' undeclared (first use in this function)
giscanner/giscannermodule.c:324: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:324: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:324: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:324: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:324: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:324: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:324: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:324: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:325: warning: braces around scalar initializer
giscanner/giscannermodule.c:325: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:325: warning: initialization from incompatible pointer type
giscanner/giscannermodule.c:325: error: 'type_get_name' undeclared (first use in this function)
giscanner/giscannermodule.c:325: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:325: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:325: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:325: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:325: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:325: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:325: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:325: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:326: warning: braces around scalar initializer
giscanner/giscannermodule.c:326: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:326: warning: initialization from incompatible pointer type
giscanner/giscannermodule.c:326: error: 'type_get_base_type' undeclared (first use in this function)
giscanner/giscannermodule.c:326: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:326: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:326: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:326: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:326: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:326: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:326: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:326: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:327: warning: braces around scalar initializer
giscanner/giscannermodule.c:327: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:327: warning: initialization from incompatible pointer type
giscanner/giscannermodule.c:327: error: 'type_get_child_list' undeclared (first use in this function)
giscanner/giscannermodule.c:327: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:327: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:327: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:327: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:327: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:327: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:327: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:327: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:328: warning: braces around scalar initializer
giscanner/giscannermodule.c:328: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:328: warning: initialization from incompatible pointer type
giscanner/giscannermodule.c:328: error: 'type_get_is_bitfield' undeclared (first use in this function)
giscanner/giscannermodule.c:328: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:328: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:328: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:328: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:328: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:328: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:328: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:328: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:329: warning: braces around scalar initializer
giscanner/giscannermodule.c:329: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:329: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:329: warning: (near initialization for '_PyGISourceType_getsets')
giscanner/giscannermodule.c:337: error: expected ')' before '*' token
giscanner/giscannermodule.c:350: error: expected ')' before '*' token
giscanner/giscannermodule.c:366: error: expected ')' before '*' token
giscanner/giscannermodule.c:401: error: expected ')' before '*' token
giscanner/giscannermodule.c:469: error: expected ')' before '*' token
giscanner/giscannermodule.c:491: error: expected ')' before '*' token
giscanner/giscannermodule.c:506: error: expected ')' before '*' token
giscanner/giscannermodule.c:526: error: expected ')' before '*' token
giscanner/giscannermodule.c:548: error: storage class specified for parameter '_PyGISourceScanner_methods'
giscanner/giscannermodule.c:548: error: parameter '_PyGISourceScanner_methods' is initialized
giscanner/giscannermodule.c:548: error: redefinition of parameter '_PyGISourceScanner_methods'
giscanner/giscannermodule.c:89: error: previous definition of '_PyGISourceScanner_methods' was here
giscanner/giscannermodule.c:549: warning: braces around scalar initializer
giscanner/giscannermodule.c:549: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:549: warning: initialization from incompatible pointer type
giscanner/giscannermodule.c:549: error: 'pygi_source_scanner_get_comments' undeclared (first use in this function)
giscanner/giscannermodule.c:549: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:549: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:549: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:549: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:550: warning: braces around scalar initializer
giscanner/giscannermodule.c:550: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:550: warning: initialization from incompatible pointer type
giscanner/giscannermodule.c:550: error: 'pygi_source_scanner_get_symbols' undeclared (first use in this function)
giscanner/giscannermodule.c:550: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:550: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:550: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:550: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:550: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:550: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:551: warning: braces around scalar initializer
giscanner/giscannermodule.c:551: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:551: warning: initialization from incompatible pointer type
giscanner/giscannermodule.c:551: error: 'pygi_source_scanner_append_filename' undeclared (first use in this function)
giscanner/giscannermodule.c:551: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:551: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:551: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:551: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:551: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:551: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:552: warning: braces around scalar initializer
giscanner/giscannermodule.c:552: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:552: warning: initialization from incompatible pointer type
giscanner/giscannermodule.c:552: error: 'pygi_source_scanner_parse_file' undeclared (first use in this function)
giscanner/giscannermodule.c:552: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:552: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:552: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:552: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:552: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:552: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:553: warning: braces around scalar initializer
giscanner/giscannermodule.c:553: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:553: warning: initialization from incompatible pointer type
giscanner/giscannermodule.c:553: error: 'pygi_source_scanner_parse_macros' undeclared (first use in this function)
giscanner/giscannermodule.c:553: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:553: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:553: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:553: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:553: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:553: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:554: warning: braces around scalar initializer
giscanner/giscannermodule.c:554: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:554: warning: initialization from incompatible pointer type
giscanner/giscannermodule.c:554: error: 'pygi_source_scanner_lex_filename' undeclared (first use in this function)
giscanner/giscannermodule.c:554: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:554: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:554: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:554: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:554: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:554: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:555: warning: braces around scalar initializer
giscanner/giscannermodule.c:555: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:555: warning: initialization from incompatible pointer type
giscanner/giscannermodule.c:555: error: 'pygi_source_scanner_set_macro_scan' undeclared (first use in this function)
giscanner/giscannermodule.c:555: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:555: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:555: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:555: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:555: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:555: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:556: warning: braces around scalar initializer
giscanner/giscannermodule.c:556: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:556: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:556: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:556: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:556: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:556: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:556: warning: (near initialization for '_PyGISourceScanner_methods')
giscanner/giscannermodule.c:562: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
giscanner/giscannermodule.c:612: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
giscanner/giscannermodule.c:711: error: storage class specified for parameter 'pyscanner_functions'
giscanner/giscannermodule.c:711: error: parameter 'pyscanner_functions' is initialized
giscanner/giscannermodule.c:712: warning: braces around scalar initializer
giscanner/giscannermodule.c:712: warning: (near initialization for 'pyscanner_functions')
giscanner/giscannermodule.c:712: warning: initialization from incompatible pointer type
giscanner/giscannermodule.c:713: error: 'pygi_collect_attributes' undeclared (first use in this function)
giscanner/giscannermodule.c:713: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:713: warning: (near initialization for 'pyscanner_functions')
giscanner/giscannermodule.c:713: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:713: warning: (near initialization for 'pyscanner_functions')
giscanner/giscannermodule.c:714: warning: braces around scalar initializer
giscanner/giscannermodule.c:714: warning: (near initialization for 'pyscanner_functions')
giscanner/giscannermodule.c:714: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:714: warning: (near initialization for 'pyscanner_functions')
giscanner/giscannermodule.c:714: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:714: warning: (near initialization for 'pyscanner_functions')
giscanner/giscannermodule.c:714: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:714: warning: (near initialization for 'pyscanner_functions')
giscanner/giscannermodule.c:714: warning: excess elements in scalar initializer
giscanner/giscannermodule.c:714: warning: (near initialization for 'pyscanner_functions')
giscanner/giscannermodule.c:717: error: expected declaration specifiers before 'DL_EXPORT'
giscanner/giscannermodule.c:741: error: old-style parameter declarations in prototyped function definition
giscanner/giscannermodule.c:741: error: expected '{' at end of input
make[2]: *** [_giscanner_la-giscannermodule.lo] Error 1
make[2]: Leaving directory `/initrd/mnt/dev_save/PythonBuild/gobject-introspection-1.31.20'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/initrd/mnt/dev_save/PythonBuild/gobject-introspection-1.31.20'
make: *** [all] Error 2
#
Maybe there is a version of gobject-introspection that works with Python 3??
Tried gobject-introspection-1.31.1
Had to change configure again - configured ok - but make failed with the same error.
Go back to gobect-introspection-1.30.0
Change configure to work with python 3.2.2 again
configured ok - same error
Go back to gobject-introspection-1.29.17
Change configure to work with python 3.2.2 again
configured ok - same error
Can gobject-introspection be built at all with python 3?
[/code]

a full weekend later - I gave up ... let's stick with 2.7 and pygtk for the foreseeable future!!

Grrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr!!!
Back to top
View user's profile Send private message 
growler


Joined: 24 Mar 2008
Posts: 209
Location: Kapiti - New Zealand

PostPosted: Fri 16 Mar 2012, 02:07    Post subject: So Python 2.7.2 with pygtk it is  

I made up a .pet for Puppy Racy (kernel 3.07) of Python 2.7.2 with
gobject-introspection - pycairo, cario, tcl/tk and pygtk

MU is hosting at:

http://dotpups.de/puppy4/dotpups/Programming/Python-pygtk-2.7.2.pet
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Compiling
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1430s ][ Queries: 11 (0.0029s) ][ GZIP on ]