开发者

Problem importing latest Pyside version

开发者 https://www.devze.com 2023-04-02 05:49 出处:网络
I get: ImportError: /usr/lib/pymodules/pyt开发者_JS百科hon2.6/PySide/QtCore.so: undefined symbol: _ZN8Shiboken4Enum16createGlobalEnumEP7_objectPKcS4_S4_P11_typeobject

I get:

ImportError: /usr/lib/pymodules/pyt开发者_JS百科hon2.6/PySide/QtCore.so: undefined symbol: _ZN8Shiboken4Enum16createGlobalEnumEP7_objectPKcS4_S4_P11_typeobject

when I do

import PySide

After installing the new version of PySide, version 1.0.6 isolino

Is there a work around?


This could be an old shiboken running with a new PySide version. Could you confirm that you're using the latest version (shiboken 1.0.6)? If you're using Ubuntu, the python-pyside package should ensure that all the modules are properly updated - see http://bugs.pyside.org/show_bug.cgi?id=999


I get this error when I was building python libraries against a python version that was using a different unicode encoding ("ucs4" vs "ucs2").

I would make sure that your python interpreter is built the same was as the pyside modules.

How to find out if Python is compiled with UCS-2 or UCS-4?

0

精彩评论

暂无评论...
验证码 换一张
取 消