python - 来自 Itunes 的 EPFImporter 显示 undefined symbol : _PyObject_NextNotImplemented after just installing and running

标签 python centos itunes

我刚刚在新的 Centos 6.6 服务器上安装了 python,因此我可以从 iTunes 运行 EPFImporter。 然后我在命令行上运行命令:./EPFImporter/EPFImporter.py -D mysql itunes20141208

我不确定这是否有帮助,但这些是安装在服务器上的版本: python 2.6.6 Centos6.6 来自/usr/local/lib/python2.7/site-packages (python 2.7) 的 pip 1.5.6

以前有人遇到过这个错误吗?

Traceback (most recent call last):
  File "/root/EPFImporter/EPFImporter.py", line 43, in <module>
    import EPFIngester
  File "/root/EPFImporter/EPFIngester.py", line 40, in <module>
    import psycopg2
  File "/usr/local/lib/python2.7/site-packages/psycopg2/__init__.py", line 50, in <module>
    from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
ImportError: /usr/local/lib/python2.7/site-packages/psycopg2/_psycopg.so: undefined symbol: _PyObject_NextNotImplemented

最佳答案

可能是您的库不匹配:如果您查看 psycopg documents ,它说:

Note The libpq header files used to compile psycopg2 should match the version of the library linked at runtime. If you get errors about missing or mismatching libraries when importing psycopg2 check (e.g. using ldd) if the module psycopg2/_psycopg.so is linked to the right libpq.so.

关于python - 来自 Itunes 的 EPFImporter 显示 undefined symbol : _PyObject_NextNotImplemented after just installing and running,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27586180/

相关文章:

python - BeautifulSoup - 如何排列数据并写入txt?

proxy - mitmproxy 安装错误

cocoa - 远程计算机上带有 iTunes 的 AppleScript

ios - 如何一次从 iTunes 购买所有从 iTunes 搜索 API 返回的歌曲?

python - 如何获取由双叉创建的守护进程的 pid?

python - 有没有办法在 Plone 中重新运行升级步骤?

centos - 如何在 centos 9 流上安装 python2?

bash - 将 Xterm 的输出重定向到日志文件

ios - iOS 9 升级后无法从 diawi 安装 iPhone 应用程序?

python - 行李箱工作标签没有吗? ---导入错误: No module named 2. 1.2