我试着跑快步,我试着写‘快步’命令,但是它给我显示了这样的消息:
/home/quickly_trunk/lightread/__init__.py:40: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk, Gio # pylint: disable=E0611
/home/quickly_trunk/lightread/LightreadWindow.py:44: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded.
from gi.repository import Gtk, Gdk, WebKit, Notify, Soup # pylint: disable=E0611
/home/quickly_trunk/lightread/LightreadWindow.py:44: PyGIWarning: Soup was imported without specifying a version first. Use gi.require_version('Soup', '2.4') before import to ensure that the right version gets loaded.
from gi.repository import Gtk, Gdk, WebKit, Notify, Soup # pylint: disable=E0611
Traceback (most recent call last):
File "/home/quickly_trunk/bin/lightread", line 60, in <module>
import lightread
File "/home/lucifer/Downloads/quickly_trunk/lightread/__init__.py", line 42, in <module>
from lightread import LightreadWindow
File "/home/lucifer/Downloads/quickly_trunk/lightread/LightreadWindow.py", line 44, in <module>
from gi.repository import Gtk, Gdk, WebKit, Notify, Soup # pylint: disable=E0611
ImportError: cannot import name WebKit我今天只是下载Ubuntu,我不知道是怎么回事。谢谢。
发布于 2016-09-03 21:40:09
它已经在错误- ImportError: cannot import name WebKit中提到过了。
要纠正它,请在终端中键入以下命令:
sudo apt-get update && sudo apt-get install python-webkithttps://askubuntu.com/questions/820606
复制相似问题