Buongiorno Lista, ho una installazione python della enthought distribution. Vorrei rendere visibile al modulo MySQLdb il mio database mysql. Quando tento di importare MySQLdb, ottengo:
In [7]: import MySQLdb --------------------------------------------------------------------------- ImportError Traceback (most recent call last) /Users/ogabbrie/<ipython console> in <module>() /Library/Frameworks/Python.framework/Versions/4.1.30101/lib/python2.5/ site-packages/MySQL_python-1.2.2.0003-py2.5-macosx-10.3-fat.egg/ MySQLdb/__init__.py in <module>() 20 import _mysql 21 except ImportError: ---> 22 raise ImportError('Cannot load MySQL client libraries. '\ 23 'The MySQL client must be installed before this package '\ 24 'can be used.') ImportError: Cannot load MySQL client libraries. The MySQL client must be installed before this package can be used. Il mysql ovviamente c'è ed è attivo, solo che non è dove dovrebbe, perché l'ho installato utilizzando il pacchetto MAMP (www.mamp.info). Dunque tutti i file si trovano dentro la cartella /Applications/MAMP/... Qualcuno può suggerirmi il modo migliore per risolvere questa - credo - semplice situazione? molte grazie, Simone Gabbriellini _______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python