Spyder hint Valueerror:api ' QString ' have already been set to version 1

Source: Internet
Author: User

Reprinted from: http://wuyuans.com/2013/02/spyder-valueerror-api-qstring-has-already-been-set-to-version-1/

The use of Enthought.mayavi in Ipython is normal, but there are problems in the Spyder, as follows:

ValueError: API ‘QString‘ has already been set to version 1

The problem is in import here,

from enthought.mayavi import mlab

Because Enthought uses the API #2 when calling PYQT, the Spyder uses the API #1 by default and changes him to an API #2即可.

Open Tools-Preferences, choose Console on the left, open the External Modules tab on the right, find pyqt below, put the API selection for QString and qvariant Object: Changed to API #2, OK, it is normal to run again.

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.