Dan Sommers said:
: 
: I'm glad to see pygtk2 re-appear in fink.
: Sadly, though, it conflicts with pygtk.
: 
: According to the pygtk FAQ, though, the two versions of pygtk can
: coexist:
: 
:     http://www.async.com.br/faq/pygtk/index.py?req=all#2.1
: 
: Other 2.X FAQs also address pieces of this issue.

I set the conflicts not because of anything to do with a python script 
getting confused, but rather because the Fink pygtk package links against 
glib but pygtk2 against glib2. For some reason, when both are installed, 
some 'import' commands pick up a mix of pygtk and pygtk2 binary files 
(either directly or via some underlying loading routing). This results in 
conflicting symbol definitions. I remember seeing this when running 
the atk demo, can't remember where (if anywhere) else. In that case, if 
both are installed in the same python:

% python2.3 /sw/share/pygtk2-py23/examples/atk/atk-demo.py 
Traceback (most recent call last):
  File "/sw/share/pygtk2-py23/examples/atk/atk-demo.py", line 4, in ?
    import atk
ImportError: Failure linking new module: : dyld: python2.3 multiple 
definitions of symbol _g_allocator_free
/sw/lib/libglib-1.2.0.dylib(gmem.lo) definition of _g_allocator_free
/sw/lib/libglib-2.0.0.dylib(libglib-2.0.0.200.1.dylib-master.o) definition 
of _g_allocator_free

Note that this is a problem only if pygtk and pygtk2 are installed in the
same python. The conflicts does not prevent you from having pygtk-py22 and
pygtk2-py23 installed concurrently, and using the #! to pick which python
(and hence, indirectly, which pygtk version) to run.

: Without at least some level of coexistance, migration is going to
: be, um, well, let's say *interesting*.  The applications in
: question are my own, so I don't mind a hack to specify which pygtk
: to use on an application by application basis.

If you want to run both in the same python, you can (as root) say:
  dpkg -i --force-conflicts 
/sw/fink/dists/unstable/main/binary-darwin-powerpc/gnome/pygtk-py23_0.6.9-4_darwin-powerpc.deb
to install pygk-py23while pygtk2-py23 is already installed, overriding the
conflicts. Then you're free to follow the FAQs.

Actually, I just tried FAQ2.4 with the atk demo and that solved the
problem there:) Okay, I'll try to get out a new package without the
conflicts and that has refs to these FAQs in the docs in a couple of days.

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to