我运行该应用程序并收到此错误。小箭头指向“d”,不知道那是什么意思。此外,我之前也遇到了同样的错误,但在这一行:
from quickly.widgets.dictionary grid import DictionaryGrid
箭头也指向网格中的“d”。然后我将其改为:
from quickly.widgets.dictionary_grid import DictionaryGrid
我在中间添加了一个“_”。现在我的问题出现了语法错误。
感谢您提供的任何帮助!
Traceback (most recent call last):
File "bin/simple-player", line 32, in <module>
import simple_player
File "/home/alex/simple-player/simple_player/__init__.py", line 14, in <module>
from simple_player import SimplePlayerWindow
File "/home/alex/simple-player/simple_player/SimplePlayerWindow.py", line 51
media_grid.show()
^
SyntaxError: invalid syntax
答案1
sudo apt-get install python-quickly.widgets
python
from quickly.widgets.dictionary_grid import DictionaryGrid
报告成功
如果您遇到语法错误,则应更正缩进。该教程是正确的,您应该真正遵循它。