python--interface Test--XLWT module using the Times wrong case resolution method

Source: Internet
Author: User
We do interface testing often used to XLRD and XLWT two modules, where the XLRD is also relatively good to get directly installed on the good,

However, the XLWT installation fails, and after downloading the XLWT3 module on the web itself, it then uses the Python setup.py install command to

Installation. When we import this module and use it, we will encounter the following two situations:

1. Error Valueerror:cannot use LOCALE flags with a str pattern

Solution:
Enter Lib in the Python3 installation directory, locate the ser_parse.py file, and modify the No. 832 line of code

Comment on this line, instead:

The operation will not be an error.
2. Error ValueError: 'init' in slots conflicts with class variable

Solution:
Go to the Python3 installation directory lib\site-packages\xlwt3\ find the formula.py file, modify line 7th

Modify to (remove init):

The operation will not be an error.

python--interface Test--XLWT module using the Times wrong case resolution method

Related Article

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.