【发布时间】:2013-12-07 20:54:05
【问题描述】:
所以我最初在将 PyXML 添加到 Ubuntu 13.1 时遇到了问题。结果我需要对我的 PyConfig.h 文件进行更改,这很痛苦。
最终系统能够成功构建 PyXML,但现在,当我尝试从 adspygoogle 导入 AdWordsClient(之前工作正常)时,我收到此错误:
Warning (from warnings module):
File "/usr/local/lib/python2.7/dist-packages/adspygoogle/__init__.py", line 26
warnings.warn('Can\'t import AdWordsClient: %s' % e)
UserWarning: Can't import AdWordsClient: /usr/local/lib/python2.7/dist-packages/_xmlplus/parsers/pyexpat.so: undefined symbol: PyUnicodeUCS2_DecodeUTF8
Warning (from warnings module):
File "/usr/local/lib/python2.7/dist-packages/adspygoogle/__init__.py", line 31
warnings.warn('Can\'t import DfaClient: %s' % e)
UserWarning: Can't import DfaClient: /usr/local/lib/python2.7/dist-packages/_xmlplus/parsers/pyexpat.so: undefined symbol: PyUnicodeUCS2_DecodeUTF8
Warning (from warnings module):
File "/usr/local/lib/python2.7/dist-packages/adspygoogle/__init__.py", line 36
warnings.warn('Can\'t import DfpClient: %s' % e)
UserWarning: Can't import DfpClient: /usr/local/lib/python2.7/dist-packages/_xmlplus/parsers/pyexpat.so: undefined symbol: PyUnicodeUCS2_DecodeUTF8
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from adspygoogle import AdWordsClient
ImportError: cannot import name AdWordsClient
现在,当我卸载 PyXML 并重新启动空闲时,导入工作正常,非常感谢。
好困惑!
【问题讨论】:
标签: python python-2.7 google-ads-api ubuntu-13.10 pyxml