无法启动 CoverGloobus:ImportError

无法启动 CoverGloobus:ImportError

我在我的 ubuntu 10.10 上安装了 CoverGloobus。但每次我尝试运行它时,都会出现此错误:

[WARNING] Using default configuration
Traceback (most recent call last):
  File "covergloobus-config.py", line 32, in <module>
    Configuration.run()
  File "/usr/share/covergloobus/widgets/configuration.py", line 94, in run
    Configuration.__instance = Configuration(cg)
  File "/usr/share/covergloobus/widgets/configuration.py", line 155, in __init__
    self.make_pages()
  File "/usr/share/covergloobus/widgets/configuration.py", line 165, in make_pages
    page = method()
  File "/usr/share/covergloobus/widgets/configuration.py", line 432, in make_lyrics
    for klass in GenericLyric.load():
  File "/usr/share/covergloobus/lyrics/__init__.py", line 34, in load
    __import__('lyrics.' + name[:-3])
  File "/usr/share/covergloobus/lyrics/lyricswikia.py", line 26, in <module>
    from lyrics import GenericLyric
ImportError: cannot import name GenericLyric

有人知道如何解决这个问题吗?

答案1

这看起来像是 Python 包竞争条件,该类确实存在(注意:JanC,这并不总是因为缺少模块)您可以在其中看到 GenericLyric,lyrics/__init__.py但它是在导入 init 时尝试导入 init。竞争条件很糟糕。

修复方法是让程序员参与进来,为此您应该在此处报告该错误:

https://bugs.launchpad.net/covergloobus

另请参阅本指南:

https://help.ubuntu.com/community/ReportingBugs

相关内容