Mysqldb installation error description

Source: Internet
Author: User

1. Download the edited overseas documents from http://www.codegood.com /.

2. the following error occurs during import of mysqldb:

Warning ( From Warnings module ):
File " C: \ python26 \ Lib \ Site-packages \ mysqldb \__ init _. py " , Line 34
From Sets Import Immutableset
Deprecationwarning: The sets Module Is Deprecated

 

Solution:

1) in the file "_ init _", you will:

From Sets Import immutableset
Class dbapiset (immutableset ):

Replace

Class dbapiset (frozenset)

2) remove the file "converters. py:

From Sets Import baseset, Set

3) in the file "converters. py", change "set" to "set" (Note: Only two changes are required ):

Line 48: return set ([I for I in S. Split (',') If I])
Line 128: Set: set2str

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.