On Mon, Mar 1, 2010 at 12:52, A.T.Hofkamp <[email protected]> wrote: > goli wrote: >> Hi all, >> >> I am a newbie to the python language, I used pygtk with python2.6 for a >> week, now I want to switch to python3. > > You should not do that, it is too early to use Python 3. > >> I installed python3.1 and wrote a simple app to test it using pygtk. but >> python compiler says that it can't import pygtk. > > Python 3 is at the point where the language is more or less stable, and > library authors can start to > convert their library to the new version. Thus it is quite unlikely that you > will find pygtk for > python 3 in your distribution. > (ie you can run 'python3', but there are no libraries that you can import). > >> I reinstalled python bindings for gtk (python-gtk on ubuntu), but no >> modules added for python3. > > Even if you had pygtk for Python 3, there are lots of other libraries that > are not converted yet, > and thus are not available. > No doubt you are welcome to assist in the conversion effort of pygtk to the > new python 3. > > If you don't want to do that, you should not use Python 3. In particular, > since almost all tutorials > on Python assume Python 2. Also almost all Python code that exists is for > Python 2. > >> Is it really possible to use them together, or am I missing some points? > > I don't know who, but surely some people are working on the conversion, and > they probably welcome > your help. > In that case, it is likely that you will have to build a pygtk installation > from source code, > directly from a checkout of the repository. > > If you don't understand what I am saying, you better switch back to python > 2.6, and enjoy pygtk.
Hi, some links about this: https://bugzilla.gnome.org/show_bug.cgi?id=566641 http://live.gnome.org/Hackfests/Python2010 Regards, Tomeu > > Albert > _______________________________________________ > pygtk mailing list [email protected] > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://faq.pygtk.org/ > _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
