1 |
Op Thursday 31 January 2008 19:05:55 schreef Clemente Aguiar: |
2 |
> I have two versions of Python installed, ver 2.3.6 and 2.4.4. |
3 |
> |
4 |
> I also have dev-python/mysql-python version 1.2.2 installed. |
5 |
> |
6 |
> When I try "import _mysql" in version 2.4.4 it works, but in version |
7 |
> 2.3.6 it gives the following error: |
8 |
> |
9 |
> Python 2.3.6 (#1, Jan 30 2008, 14:30:02) |
10 |
> [GCC 4.1.2 (Gentoo 4.1.2)] on linux2 |
11 |
> Type "help", "copyright", "credits" or "license" for more information. |
12 |
> |
13 |
> >>> import _mysql |
14 |
> |
15 |
> Traceback (most recent call last): |
16 |
> File "<stdin>", line 1, in ? |
17 |
> ImportError: No module named _mysql |
18 |
> |
19 |
Why are you useing "_mysql", why not use "mysql"? |
20 |
> |
21 |
> Can anybody help with my problem? |
22 |
> |
23 |
> Note: the reason I am trying to use mysql with an older version of |
24 |
> Python its because it is the version that Zope-2.8.91 is configured to |
25 |
> use, so I am stuck. |
26 |
> |
27 |
> Clemente |