Victor Eijkhout wrote: > Something is messed up in python & mysql installation. > > %% fink list | grep mysql-client > i mysql-client 5.0.38-1005 Open Source SQL database - Client > %% fink list | grep python26 > i python 1:2.6-2 Generic "python" command that invokes python26 > i python26 1:2.6-2 Interpreted, object-oriented language > i python26-shlibs 1:2.6-2 Interpreted, object-oriented language > ("fink list <packagename>" greps for <packagename> rather than trying to match it exactly)
> But I think this directory should contain something: > > %% pwd > /sw/lib/python2.6/site-packages > %% ls > README > %% Nope: dpkg -L python26 | grep site-packages /sw/lib/python2.6/site-packages /sw/lib/python2.6/site-packages/README $ dpkg -L python26-shlibs | grep site-packages > > and in fact > > %% python > Python 2.6 (r26:66714, Mar 2 2009, 13:49:35) > [GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> import MySQLdb > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ImportError: No module named MySQLdb > > At some point this worked. How do I restore it? I've removed and > reinstalled various packages. > > Victor. > -- > Victor Eijkhout -- 865 974 9308 > eijkh...@cs.utk.edu http://www.cs.utk.edu/~eijkhout/ > <http://www.cs.utk.edu/%7Eeijkhout/> > > > Well, one fundamental issue is that we _don't_ have a mysql-python-py26: $ fink list -t mysql-python-py Information about 7955 packages read in 0 seconds. mysql-python-py24 1.2.2-1001 Python interface to MySQL mysql-python-py25 1.2.2-1001 Python interface to MySQL So you need to a) make sure you have one of those two installed, and b) use the python version appropriate to that. The "python" package has multiple versions, so you could do something like "fink install python-1:2.5.2-1" to point the "python" executable to python2.5. That's a bit fragile, since "fink update-all" will update it to 1:2.6-2 -- Alexander Hansen Fink User Liaison ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users