undefined symbol: PyExc_ImportError when embedding Python in C
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm developing a C shared library that makes a call to a python script. When I run the application I get this error: Traceback (most recent call last): File "/home/ubuntu/galaxy-es/lib/galaxy/earthsystem/gridftp_security/gridftp_acl_plugin.py", line 2, in import galaxy.eggs File "/home/ubuntu/galaxy-es/lib/galaxy/eggs/__init__.py", line 5, in import os, sys, shutil, glob, urllib, urllib2, ConfigParser, HTMLParser, zipimport, zipfile File "/usr/lib/python2.7/zipfile.py", line 6, in import io File "/usr/lib/python2.7/io.py", line 60, in import