public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
From: Tonko Mulder <tonko.mulder@gmail.com>
To: gentoo-amd64@lists.gentoo.org
Subject: Re: [gentoo-amd64] error importing _mysql (mysql-python)
Date: Fri, 1 Feb 2008 11:29:35 +0100	[thread overview]
Message-ID: <200802011129.43153.tonko.mulder@gmail.com> (raw)
In-Reply-To: <1201861238.4199.21.camel@caguiar-linux.local>

[-- Attachment #1: Type: text/plain, Size: 1337 bytes --]

Op Friday 01 February 2008 11:20:38 schreef Clemente Aguiar:
> Sex, 2008-02-01 às 08:53 +0100, Tonko Mulder escreveu:
> > Op Thursday 31 January 2008 19:05:55 schreef Clemente Aguiar:
> > > I have two versions of Python installed, ver 2.3.6 and 2.4.4.
> > >
> > > I also have dev-python/mysql-python version 1.2.2 installed.
> > >
> > > When I try "import _mysql" in version 2.4.4 it works, but in version
> > > 2.3.6 it gives the following error:
> > >
> > > Python 2.3.6 (#1, Jan 30 2008, 14:30:02)
> > > [GCC 4.1.2 (Gentoo 4.1.2)] on linux2
> > > Type "help", "copyright", "credits" or "license" for more information.
> > >
> > > >>> import _mysql
> > >
> > > Traceback (most recent call last):
> > >   File "<stdin>", line 1, in ?
> > > ImportError: No module named _mysql
> >
> > Why are you useing "_mysql", why not use "mysql"?
>
> Because the module name is _mysql.so.
>
I tried it out for myself and installed `python-mysql` and tried the 
following:

root@Pulzzz:/etc/apache2# python
Python 2.5.1 (r251:54863, Oct  5 2007, 13:36:32)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import _mysql
>>>   

So I'm not sure how your version of Python handles mysql, as you can see it 
works for me.

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2008-02-01 10:29 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-29 20:53 [gentoo-amd64] emul-linux-x86-soundlibs/emul-linux-x86-qtlibs emerge loop Mark Knecht
2008-01-29 21:27 ` Sebastian Redl
2008-01-30  0:14 ` Olivier Crête
2008-01-30  1:10   ` Mark Knecht
2008-01-30  2:48     ` David Fellows
2008-01-31 18:05     ` [gentoo-amd64] error importing _mysql (mysql-python) Clemente Aguiar
2008-02-01  7:53       ` Tonko Mulder
2008-02-01 10:20         ` Clemente Aguiar
2008-02-01 10:29           ` Tonko Mulder [this message]
2008-02-01 11:57             ` [SPAM] " Clemente Aguiar
2008-02-01 10:36           ` Steev Klimaszewski
2008-02-01 11:34             ` [SPAM] " Clemente Aguiar
2008-01-30  1:11   ` [gentoo-amd64] emul-linux-x86-soundlibs/emul-linux-x86-qtlibs emerge loop Scott

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200802011129.43153.tonko.mulder@gmail.com \
    --to=tonko.mulder@gmail.com \
    --cc=gentoo-amd64@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox