Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

You will feel hungry again in another hour.


comp / comp.lang.python / Problem using mysql library

SubjectAuthor
* Problem using mysql libraryTobiah
`- Re: Problem using mysql libraryStefan Ram

1
Subject: Problem using mysql library
From: Tobiah
Newsgroups: comp.lang.python
Organization: A noiseless patient Spider
Date: Tue, 9 Jul 2024 13:17 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: toby@tobiah.org (Tobiah)
Newsgroups: comp.lang.python
Subject: Problem using mysql library
Date: Tue, 9 Jul 2024 06:17:32 -0700
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <v6jd9c$1cup4$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 09 Jul 2024 15:17:33 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="ca6f46cd88fdf95a23f94aecf29dcf4b";
logging-data="1473316"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/3xac+cbPV7bPEVtkuF8ll"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:4yu0Z65IH7llW8VHERR1SbAqSzI=
Content-Language: en-US
View all headers

sinewave:toby ~(1)> python
Python 2.7.18 (default, Jul 8 2024, 12:49:12)
[GCC 13.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import MySQLdb
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/site-packages/MySQLdb/__init__.py", line 23, in <module>
(version_info, _mysql.version_info))
ImportError: this is MySQLdb version (1, 2, 5, 'final', 1), but _mysql is version (1, 4, 6, 'final', 0)

I Googled this a lot, and saw many people with the same problem,
but couldn't find an answer that helped.

Thanks!

Toby

Subject: Re: Problem using mysql library
From: Stefan Ram
Newsgroups: comp.lang.python
Organization: Stefan Ram
Date: Tue, 9 Jul 2024 14:02 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: ram@zedat.fu-berlin.de (Stefan Ram)
Newsgroups: comp.lang.python
Subject: Re: Problem using mysql library
Date: 9 Jul 2024 14:02:32 GMT
Organization: Stefan Ram
Lines: 10
Expires: 1 Feb 2025 11:59:58 GMT
Message-ID: <mysql-20240709145951@ram.dialup.fu-berlin.de>
References: <v6jd9c$1cup4$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de +o9IH18u/2ZlWCopOmmfpQEVc8IULX9e6zd/0LzHhfpzpH
Cancel-Lock: sha1:yRZcvbGyfNzGI0gSIh9JeIruAS0= sha256:ESseOOarXUM7ZZMjzEkmIHwQI9McgBJ4UeZpREnpLFQ=
X-Copyright: (C) Copyright 2024 Stefan Ram. All rights reserved.
Distribution through any means other than regular usenet
channels is forbidden. It is forbidden to publish this
article in the Web, to change URIs of this article into links,
and to transfer the body without this notice, but quotations
of parts in other Usenet posts are allowed.
X-No-Archive: Yes
Archive: no
X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some
services to mirror the article in the web. But the article may
be kept on a Usenet archive server with only NNTP access.
X-No-Html: yes
Content-Language: en-US
View all headers

Tobiah <toby@tobiah.org> wrote or quoted:
>ImportError: this is MySQLdb version (1, 2, 5, 'final', 1),
>but _mysql is version (1, 4, 6, 'final', 0)

It seems these versions must match, but do not match, so the
first idea would be to uninstall the libraries and then install
them again explicitly specifying the same version (like "1.2.5")
for all of them. But I'm not an expert here, and doing this
might break even more or might not work due to the deprecation of
Python 2.7, so please proceed with caution and at your own risk.

1

rocksolid light 0.9.8
clearnet tor