Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #18682
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <bsk16@case.edu> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.003 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'subject:Error': 0.05; 'importerror:': 0.07; 'python': 0.08; '>>>>': 0.09; 'referenced': 0.09; 'library': 0.13; 'binary': 0.13; 'skip:" 40': 0.15; '"file"': 0.16; 'bootstrap': 0.16; 'installed,': 0.16; 'mode.': 0.16; 'wrote:': 0.18; 'loading': 0.18; 'working.': 0.18; 'jan': 0.19; 'trying': 0.21; '(most': 0.21; 'assume': 0.22; 'header:In- Reply-To:1': 0.22; '64-bit': 0.23; 'command': 0.24; 'library.': 0.24; 'traceback': 0.24; 'architecture': 0.26; 'guess': 0.26; 'import': 0.27; 'message-id:@mail.gmail.com': 0.28; 'error': 0.29; 'pm,': 0.29; 'correct': 0.29; 'skip:/ 80': 0.30; 'sun,': 0.30; 'thanks': 0.31; 'anyone': 0.31; 'to:addr:python-list': 0.34; 'probably': 0.34; 'received:209.85.212': 0.34; 'last):': 0.34; 'skip:" 50': 0.34; 'running': 0.35; 'trouble': 0.35; 'file': 0.36; 'problem.': 0.36; 'david': 0.36; 'received:google.com': 0.37; 'george': 0.38; 'received:209.85': 0.38; 'getting': 0.38; 'client': 0.39; 'from:': 0.39; 'received:209': 0.40; 'to:addr:python.org': 0.40; 'your': 0.61; 'order': 0.62; '2012': 0.67; '19,': 0.68; 'skip:d 90': 0.84 |
| MIME-Version | 1.0 |
| In-Reply-To | <L0oOq.65165$8O1.34287@newsfe07.iad> |
| References | <L0oOq.65165$8O1.34287@newsfe07.iad> |
| Date | Sun, 8 Jan 2012 17:17:15 -0500 |
| Subject | Re: Error Importing MySQLdb |
| From | Benjamin Kaplan <benjamin.kaplan@case.edu> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-Junkmail-Whitelist | YES (by domain whitelist at mpv1.tis.cwru.edu) |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4532.1326061044.27778.python-list@python.org> (permalink) |
| Lines | 27 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1326061044 news.xs4all.nl 6983 [2001:888:2000:d::a6]:44121 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:18682 |
Show key headers only | View raw
On Sun, Jan 8, 2012 at 4:37 PM, David George <dgeorge@daviddgeorge.com> wrote: > Hello there, > I have been trying for awhile now to get MySQLdb working. I am currently > getting this error when trying to import it: > >>>> import MySQLdb > > Traceback (most recent call last): File "", line 1, in File > "build/bdist.macosx-10.7-intel/egg/MySQLdb/init.py", line 19, in File > "build/bdist.macosx-10.7-intel/egg/_mysql.py", line 7, in File > "build/bdist.macosx-10.7-intel/egg/_mysql.py", line 6, in bootstrap > ImportError: > dlopen(/Users/username/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg-tmp/_mysql.so, > 2): Library not loaded: /usr/local/lib/libmysqlclient.18.dylib Referenced > from: > /Users/username/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg-tmp/_mysql.so > Reason: image not found > > Anyone know what I need to do in order to correct these errors. > > Thanks MySQLdb is having trouble loading the MySQL client library. Since I assume MySQL is installed, my best guess is that you have an architecture problem. Your Python is probably running in 64-bit mode. Do you have a 64-bit MySQL install? The "file" command will tell you which architectures are in a binary if you're unsure.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Error Importing MySQLdb David George <dgeorge@daviddgeorge.com> - 2012-01-08 16:37 -0500
Re: Error Importing MySQLdb Benjamin Kaplan <benjamin.kaplan@case.edu> - 2012-01-08 17:17 -0500
Re: Error Importing MySQLdb davidfx <dgeorge29ca@gmail.com> - 2012-01-08 14:37 -0800
Re: Error Importing MySQLdb davidfx <dgeorge29ca@gmail.com> - 2012-01-08 14:37 -0800
Re: Error Importing MySQLdb Dave Angel <d@davea.name> - 2012-01-08 18:08 -0500
Re: Error Importing MySQLdb Benjamin Kaplan <benjamin.kaplan@case.edu> - 2012-01-08 20:23 -0500
Re: Error Importing MySQLdb John Nagle <nagle@animats.com> - 2012-01-08 21:47 -0800
csiph-web