在制作FireFox Sync 1.5时,Python会出现lib错误

时间:2014-10-09 10:41:45

标签: python python-2.7 sync

我已尝试将自己的服务器设置为FireFox中的新同步服务。 我使用了以下教程:https://docs.services.mozilla.com/howtos/run-sync-1.5.html

当我想使用make test检查时,我收到以下错误:

    Traceback (most recent call last):
  File "/home/jj/syncserver/local/local/lib/python2.7/site-packages/nose/loader.py", line 403, in loadTestsFromName
    module = resolve_name(addr.module)
  File "/home/jj/syncserver/local/local/lib/python2.7/site-packages/nose/util.py", line 311, in resolve_name
    module = __import__('.'.join(parts_copy))
  File "/home/jj/syncserver/local/local/lib/python2.7/site-packages/syncstorage/__init__.py", line 5, in <module>
    import mozsvc.config
  File "/home/jj/syncserver/local/local/lib/python2.7/site-packages/mozsvc/config.py", line 10, in <module>
    from konfig import Config, SettingsDict
  File "/home/jj/syncserver/local/local/lib/python2.7/site-packages/konfig/__init__.py", line 11, in <module>
    from configparser import ConfigParser, ExtendedInterpolation
ImportError: cannot import name ExtendedInterpolation

发生了什么事?

1 个答案:

答案 0 :(得分:0)

Python 2中不存在

configparser.ExtendedInterpolation

您需要使用Python 3。